The pfSense Store

Author Topic: mini PCI express wireless card for hostap mode  (Read 2969 times)

0 Members and 1 Guest are viewing this topic.

Offline woni

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
mini PCI express wireless card for hostap mode
« on: June 18, 2012, 04:01:53 am »
Hi,
I like to build an appliance with pfSense 2.01 (ISO). My hardware only supports on "mini pci express" slot and I'm looking for card which can do hostap. I have tried several cards like Intel 4965, Intel 5100, Atheros AR9287 and Intel 3945 without success.
Please, can anybody suggest me a card (mini pci express) with the ability of hostap mode.

Thanks

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #1 on: June 18, 2012, 07:26:38 am »
Mini PCI-Express slots can have a USB electrical interface OR a PCI-Express electrical interface OR both? What electrical interfaces are available on your mini PCI-Express slot?

Of the chipsets you mentioned only the Atheros is likely to support AP mode and then only if its a PCI-Express chip and the slot provides PCI-Express electrical interface. There are USB WiFi chipsets that support AP mode.



Offline woni

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #2 on: June 18, 2012, 08:47:06 am »
How can I figure it out? I don't know.
It's a MSI I3-945GSE board with 2xLAN.
If it's of interest: All my cards work in client mode perfect.

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #3 on: June 18, 2012, 09:39:19 am »
If it's of interest: All my cards work in client mode perfect.
It is of interest. It means the cards must be compatible with the slot.

Please put the AR9287 card back in and boot the system. Then please post the output of the pfSense command
Code: [Select]
dmesg here so we can see how FreeBSD reports the presence of that card.

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14932
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #4 on: June 18, 2012, 11:45:50 am »
FYI- the 9287 isn't supported even on 8.3 (pfSense 2.1). It's either in 9.x or CURRENT on FreeBSD.

The Intel, if it was a Intel 3945ABG using the wpi driver, should support hostap (but you do need to add the license ACK to loader.conf.local)
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline woni

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #5 on: June 18, 2012, 12:52:10 pm »
Sorry, it was my fault.
The AR9287 was not recogniced at all.

I have seen the advice for ACK in dmesg running Intel 4965 and tried it out, without success.
But, if you think it works with 3945ABG, I will try it tomorrow (at 7 German time) and give feedback.

Thanks for your support.


Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14932
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #6 on: June 18, 2012, 01:56:34 pm »
According to my notes the wpi driver which is used by that card is the only Intel driver that is supposed to support hostap.

As with the other cards, seeing the dmesg output would help once you have that back in place.

I have one of those cards, but I have yet to try it in my net6501 to see if pfSense would use it.
Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline woni

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #7 on: June 19, 2012, 01:29:02 am »
Ok, I have tested the Intel 3945ABG again.
In System Log:

php: /interfaces.php: Cloning new wireless interface wpi0_wlan0
php: /interfaces.php: Failed to clone interface wpi0 with error code 1, output ifconfig: SIOCIFCREATE2: Operation not supported
kernel: wpi0: HOSTAP mode not supported


"ifconfig wpi0_wlan0 list caps" returns

drivercaps=181e001<STA,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,WPA1,WPA2>


My /boot/loader.conf and /boot/loader.conf.local

autoboot_delay="3"
vm.kmem_size="435544320"
vm.kmem_size_max="535544320"
kern.ipc.nmbclusters="0"

legal.intel_wpi.license_ack=1
legal.intel_ipw.license_ack=1



and dmesg

padlock0: No ACE support.
acpi0: <102109 RSDT1632> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3f700000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
ACPI Warning: Incorrect checksum in table [OEMB] - 0x53, should be 0x52 (20100331/tbutils-354)
cpu1: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xcc80-0xcc87 mem 0xfe880000-0xfe8fffff,0xd0000000-0xdfffffff,0xfe840000-0xfe87ffff irq 16 at device 2.0 on pci0
agp0: <Intel 945GME SVGA controller> on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
vgapci1: <VGA-compatible display> mem 0xfe780000-0xfe7fffff at device 2.1 on pci0
pci0: <multimedia, HDA> at device 27.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci1: <ACPI PCI bus> on pcib1
em0: <Intel(R) PRO/1000 Network Connection 7.2.3> port 0xdc80-0xdc9f mem 0xfe9e0000-0xfe9fffff,0xfe9dc000-0xfe9dffff irq 16 at device 0.0 on pci1
em0: Using MSIX interrupts with 3 vectors
em0: [ITHREAD]
em0: [ITHREAD]
em0: [ITHREAD]
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
pci2: <ACPI PCI bus> on pcib2
em1: <Intel(R) PRO/1000 Network Connection 7.2.3> port 0xec80-0xec9f mem 0xfeae0000-0xfeafffff,0xfeadc000-0xfeadffff irq 17 at device 0.0 on pci2
em1: Using MSIX interrupts with 3 vectors
em1: [ITHREAD]
em1: [ITHREAD]
em1: [ITHREAD]
pcib3: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
pci3: <ACPI PCI bus> on pcib3
wpi0: <Intel(R) PRO/Wireless 3945ABG> mem 0xfebff000-0xfebfffff irq 18 at device 0.0 on pci3
wpi0: Driver Revision 20071127
wpi0: Hardware Revision (0x1)
adding chan 1 (2412MHz) flags=0x2b maxpwr=15 passive=0, offset 2
adding chan 2 (2417MHz) flags=0x2b maxpwr=15 passive=0, offset 4
adding chan 3 (2422MHz) flags=0x2b maxpwr=15 passive=0, offset 6
adding chan 4 (2427MHz) flags=0x2b maxpwr=15 passive=0, offset 8
adding chan 5 (2432MHz) flags=0x2b maxpwr=15 passive=0, offset 10
adding chan 6 (2437MHz) flags=0x2b maxpwr=15 passive=0, offset 12
adding chan 7 (2442MHz) flags=0x2b maxpwr=15 passive=0, offset 14
adding chan 8 (2447MHz) flags=0x2b maxpwr=15 passive=0, offset 16
adding chan 9 (2452MHz) flags=0x2b maxpwr=15 passive=0, offset 18
adding chan 10 (2457MHz) flags=0x2b maxpwr=15 passive=0, offset 20
adding chan 11 (2462MHz) flags=0x2b maxpwr=15 passive=0, offset 22
adding chan 12 (2467MHz) flags=0x21 maxpwr=15 passive=1, offset 24
adding chan 13 (2472MHz) flags=0x21 maxpwr=15 passive=1, offset 26
adding chan 34 (5170MHz) flags=0x21 maxpwr=15 passive=1, offset 27
adding chan 36 (5180MHz) flags=0xab maxpwr=15 passive=0, offset 28
adding chan 38 (5190MHz) flags=0x21 maxpwr=15 passive=1, offset 29
adding chan 40 (5200MHz) flags=0xab maxpwr=15 passive=0, offset 30
adding chan 42 (5210MHz) flags=0x21 maxpwr=15 passive=1, offset 31
adding chan 44 (5220MHz) flags=0xab maxpwr=15 passive=0, offset 32
adding chan 46 (5230MHz) flags=0x21 maxpwr=15 passive=1, offset 33
adding chan 48 (5240MHz) flags=0xab maxpwr=15 passive=0, offset 34
adding chan 52 (5260MHz) flags=0xb1 maxpwr=15 passive=1, offset 35
adding chan 56 (5280MHz) flags=0xb1 maxpwr=15 passive=1, offset 36
adding chan 60 (5300MHz) flags=0xb1 maxpwr=15 passive=1, offset 37
adding chan 64 (5320MHz) flags=0xb1 maxpwr=15 passive=1, offset 38
adding chan 100 (5500MHz) flags=0xb1 maxpwr=16 passive=1, offset 39
adding chan 104 (5520MHz) flags=0xb1 maxpwr=16 passive=1, offset 40
adding chan 108 (5540MHz) flags=0xb1 maxpwr=16 passive=1, offset 41
adding chan 112 (5560MHz) flags=0xb1 maxpwr=16 passive=1, offset 42
adding chan 116 (5580MHz) flags=0xb1 maxpwr=16 passive=1, offset 43
adding chan 120 (5600MHz) flags=0xb1 maxpwr=16 passive=1, offset 44
adding chan 124 (5620MHz) flags=0xb1 maxpwr=16 passive=1, offset 45
adding chan 128 (5640MHz) flags=0xb1 maxpwr=16 passive=1, offset 46
adding chan 132 (5660MHz) flags=0xb1 maxpwr=16 passive=1, offset 47
adding chan 136 (5680MHz) flags=0xb1 maxpwr=16 passive=1, offset 48
adding chan 140 (5700MHz) flags=0xb1 maxpwr=16 passive=1, offset 49
power group 0: chan=1 maxpwr=50 temp=-171
        sample 0: index=13 power=47
        sample 1: index=29 power=37
        sample 2: index=47 power=16
        sample 3: index=58 power=6
        sample 4: index=77 power=-13
power group 1: chan=44 maxpwr=53 temp=-174
        sample 0: index=12 power=46
        sample 1: index=19 power=40
        sample 2: index=32 power=27
        sample 3: index=43 power=17
        sample 4: index=77 power=-15
power group 2: chan=64 maxpwr=55 temp=-173
        sample 0: index=12 power=50
        sample 1: index=20 power=43
        sample 2: index=33 power=30
        sample 3: index=44 power=20
        sample 4: index=77 power=-11
power group 3: chan=116 maxpwr=53 temp=-171
        sample 0: index=12 power=40
        sample 1: index=20 power=31
        sample 2: index=36 power=15
        sample 3: index=48 power=4
        sample 4: index=77 power=-23
power group 4: chan=153 maxpwr=50 temp=-171
        sample 0: index=10 power=38
        sample 1: index=20 power=26
        sample 2: index=32 power=14
        sample 3: index=42 power=5
        sample 4: index=77 power=-26
wpi0: Regulatory Domain: MoW2
wpi0: Hardware Type: B
wpi0: Hardware Revision: ?
wpi0: SKU does support 802.11a
wpi0: [ITHREAD]
uhci0: <Intel 82801G (ICH7) USB controller USB-A> port 0xcc00-0xcc1f irq 23 at device 29.0 on pci0
uhci0: [ITHREAD]
uhci0: LegSup = 0x2f00
usbus0: <Intel 82801G (ICH7) USB controller USB-A> on uhci0
uhci1: <Intel 82801G (ICH7) USB controller USB-B> port 0xc880-0xc89f irq 19 at device 29.1 on pci0
uhci1: [ITHREAD]
uhci1: LegSup = 0x2f00
usbus1: <Intel 82801G (ICH7) USB controller USB-B> on uhci1
uhci2: <Intel 82801G (ICH7) USB controller USB-C> port 0xc800-0xc81f irq 18 at device 29.2 on pci0
uhci2: [ITHREAD]
uhci2: LegSup = 0x2f00
usbus2: <Intel 82801G (ICH7) USB controller USB-C> on uhci2
uhci3: <Intel 82801G (ICH7) USB controller USB-D> port 0xc480-0xc49f irq 16 at device 29.3 on pci0
uhci3: [ITHREAD]
uhci3: LegSup = 0x2f00
usbus3: <Intel 82801G (ICH7) USB controller USB-D> on uhci3
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xfe837c00-0xfe837fff irq 23 at device 29.7 on pci0
ehci0: [ITHREAD]
usbus4: EHCI version 1.0
usbus4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci4: <ACPI PCI bus> on pcib4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
atapci1: <Intel ICH7M SATA150 controller> port 0xc400-0xc407,0xc080-0xc083,0xc000-0xc007,0xbc80-0xbc83,0xbc00-0xbc0f mem 0xfe837800-0xfe837bff irq 19 at device 31.2 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_button0: <Power Button> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
ppc0: parallel port not found.
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 480Mbps High Speed USB v2.0
ad4: 305245MB <WDC WD3200BPVT-22JJ5T0 01.01A01> at ata2-master UDMA100 SATA
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
SMP: AP CPU #1 Launched!
Root mount waiting for: usbus4
uhub4: 8 ports with 8 removable, self powered
Root mount waiting for: usbus4
Trying to mount root from ufs:/dev/ad4s1a
ugen1.2: <CHICONY> at usbus1
ukbd0: <CHICONY HP Basic USB Keyboard, class 0/0, rev 2.00/1.30, addr 2> on usbus1
kbd2 at ukbd0
wpi0: HOSTAP mode not supported
wpi0: timeout resetting Tx ring 1
wpi0: timeout resetting Tx ring 3
wpi0: timeout resetting Tx ring 4
microcode alive notification version 10e02 alive 1
microcode alive notification version 10e02 alive 1
pflog0: promiscuous mode enabled
em1: link state changed to UP
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding enabled, default to accept, logging disabled
load_dn_sched dn_sched FIFO loaded
load_dn_sched dn_sched QFQ loaded
load_dn_sched dn_sched RR loaded
load_dn_sched dn_sched WF2Q+ loaded
load_dn_sched dn_sched PRIO loaded
pid 24232 (squid), uid 62: exited on signal 6
wpi0: HOSTAP mode not supported

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #8 on: June 19, 2012, 04:26:35 am »
wpi0: HOSTAP mode not supported
This "agrees" with the FreeBSD wpi man page which doesn't mention hostap support.
 

Offline jimp

  • Administrator
  • Hero Member
  • *****
  • Posts: 14932
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #9 on: June 19, 2012, 06:37:32 am »
Hmm, OK. Not sure where the note I had about hostap for wpi came from then, since I had it marked a Yes.

I changed it to No in the spreadsheet.

Need help fast? Commercial Support!

Co-Author of pfSense: The Definitive Guide. - Check the Doc Wiki for FAQs.

Do not PM for help!

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8084
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #10 on: June 19, 2012, 06:50:13 am »
We discussed this before, here.
The wpi(4) driver has code to support a hostap mode.
Perhaps it's limited to certain cards or firmware?

Steve

Edit: Reading it again, perhaps the code references hostap but doesn't actually support it?
« Last Edit: June 19, 2012, 07:02:43 am by stephenw10 »

Offline wallabybob

  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #11 on: June 19, 2012, 07:40:39 am »
Edit: Reading it again, perhaps the code references hostap but doesn't actually support it?
I found a number of occurrences of the string HOSTAP inside #if 0/#endif blocks. In particular, the code that sets "HOSTAP supported" in the device capabilities bitmap is enclosed in a #if 0/#endif block.


Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8084
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #12 on: June 19, 2012, 09:22:22 am »
Exactly, like it was an intended feature but was never implemented.

Steve

Offline woni

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #13 on: June 20, 2012, 01:53:08 am »
I have ordered a new card with Atheros chipset.
I will give feedback next week.

Thanks so far

Offline woni

  • Jr. Member
  • **
  • Posts: 26
    • View Profile
Re: mini PCI express wireless card for hostap mode
« Reply #14 on: June 21, 2012, 01:58:53 am »
Ok, now I have installed Atheros 5416 and what a surprise , it works in hostap mode.
But, next problem, I can't see this AP from a WiFi-Client.
Code: [Select]
ifconfig ath0_wlan0 list caps
drivercaps=6f85ed01<STA,IBSS,[b]HOSTAP[/b],AHDEMO,TXPMGT,SHSLOT,SHPREAMBLE,MONITOR,MBSS,WPA1,WPA2,BURST,WME,WDS,BGSCAN,TXFRAG>
cryptocaps=1f<WEP,TKIP,AES,AES_CCM,TKIPMIC>
This the pert from my config.xml
Code: [Select]
<opt1>
<if>ath0</if>
<wireless>
<standard>11g</standard>
<mode>hostap</mode>
<protmode>off</protmode>
<ssid>i-access.woni</ssid>
<channel>0</channel>
<authmode/>
<txpower>99</txpower>
<distance/>
<regdomain/>
<regcountry/>
<reglocation/>
<wpa>
<macaddr_acl/>
<auth_algs>1</auth_algs>
<wpa_mode>3</wpa_mode>
<wpa_key_mgmt>WPA-PSK</wpa_key_mgmt>
<wpa_pairwise>CCMP TKIP</wpa_pairwise>
<wpa_group_rekey>60</wpa_group_rekey>
<wpa_gmk_rekey>3600</wpa_gmk_rekey>
<passphrase/>
<ext_wpa_sw/>
</wpa>
<auth_server_addr/>
<auth_server_port/>
<auth_server_shared_secret/>
<wep/>
</wireless>
<descr><![CDATA[WIFI]]></descr>
<spoofmac/>
<enable/>
<ipaddr>192.168.2.1</ipaddr>
<subnet>24</subnet>
</opt1>

Any idea? Thanks a lot.