How to set up wifi with an USB WLAN card.



  • I'm having trouble setting up wifi with pfSense. When I attach my USB WLAN adapter it's recognized as ugen0 and not as an interface. The adapter is on the supported hardware list as Zonet ZEW2500P. Could I get some help to put me on the right path to wireless freedom?

    I only have a consumer level knowledge of networking but I'm willing to learn! So bear with me if I don't know how to do some stuff and need further clarification.



  • @lucky13th:

    The adapter is on the supported hardware list as Zonet ZEW2500P.

    Unfortunately some suppliers of networking gear change the chipset brand and/or model number without changing the model number of their equipment. This makes it hard for the buyer who want to use open source software because a (for example) DLink model xyz could have one of 4 different chipsets from 3 different suppliers (for example, TI, Broadcom, Atheros). I don't know if this trouble afflicts the Zonet ZEW2500P. Please post the output of the pfSense shell command dmesg and I'll look for clues to why your interface apparently isn't recognised.



  • Hi, thank you for taking the time to help me.

    I have executed demsg and got :

    
    $ dmesg
    Copyright (c) 1992-2009 The FreeBSD Project.
    Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    	The Regents of the University of California. All rights reserved.
    FreeBSD is a registered trademark of The FreeBSD Foundation.
    FreeBSD 7.2-RELEASE-p5 #0: Sun Dec  6 22:57:48 EST 2009
        sullrich@FreeBSD_7.2_pfSense_1.2.3_snaps.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense.7
    Timecounter "i8254" frequency 1193182 Hz quality 0
    CPU: Intel(R) Celeron(R) CPU 2.00GHz (2000.15-MHz 686-class CPU)
      Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
      Features=0xbfebfbff <fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe>Features2=0x4400 <cnxt-id,xtpr>real memory  = 503300096 (479 MB)
    avail memory = 478130176 (455 MB)
    ACPI APIC Table: <asus  ="" p4sc-ea="">ioapic0 <version 8.0="">irqs 0-23 on motherboard
    wlan: mac acl policy registered
    kbd1 at kbdmux0
    cryptosoft0: <software crypto="">on motherboard
    padlock0: No ACE support.
    acpi0: <asus p4sc-ea="">on motherboard
    acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 20
    acpi0: [ITHREAD]
    acpi0: Power Button (fixed)
    acpi0: reservation of 0, a0000 (3) failed
    acpi0: reservation of 100000, 1df00000 (3) failed
    Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
    acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
    acpi_button0: <power button="">on acpi0
    pcib0: <acpi host-pci="" bridge="">port 0xcf8-0xcff on acpi0
    pci0: <acpi pci="" bus="">on pcib0
    agp0: <sis 651="" host="" to="" agp="" bridge="">on hostb0
    pcib1: <acpi pci-pci="" bridge="">at device 1.0 on pci0
    pci1: <acpi pci="" bus="">on pcib1
    vgapci0: <vga-compatible display="">port 0xd800-0xd87f mem 0xf0000000-0xf7ffffff,0xe7800000-0xe781ffff irq 16 at device 0.0 on pci1
    isab0: <pci-isa bridge="">at device 2.0 on pci0
    isa0: <isa bus="">on isab0
    atapci0: <sis 962="" udma133="" controller="">port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xa400-0xa40f irq 16 at device 2.5 on pci0
    ata0: <ata 0="" channel="">on atapci0
    ata0: [ITHREAD]
    ata1: <ata 1="" channel="">on atapci0
    ata1: [ITHREAD]
    pci0: <multimedia, audio="">at device 2.7 (no driver attached)
    ohci0: <sis 5571="" usb="" controller="">mem 0xe7000000-0xe7000fff irq 20 at device 3.0 on pci0
    ohci0: [GIANT-LOCKED]
    ohci0: [ITHREAD]
    usb0: OHCI version 1.0, legacy support
    usb0: <sis 5571="" usb="" controller="">on ohci0
    usb0: USB revision 1.0
    uhub0: <sis 1="" 9="" ohci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb0
    uhub0: 3 ports with 3 removable, self powered
    ohci1: <sis 5571="" usb="" controller="">mem 0xe6800000-0xe6800fff irq 21 at device 3.1 on pci0
    ohci1: [GIANT-LOCKED]
    ohci1: [ITHREAD]
    usb1: OHCI version 1.0, legacy support
    usb1: <sis 5571="" usb="" controller="">on ohci1
    usb1: USB revision 1.0
    uhub1: <sis 1="" 9="" ohci="" root="" hub,="" class="" 0,="" rev="" 1.00="" 1.00,="" addr="">on usb1
    uhub1: 3 ports with 3 removable, self powered
    ehci0: <ehci (generic)="" usb="" 2.0="" controller="">mem 0xe6000000-0xe6000fff at device 3.3 on pci0
    ehci0: [GIANT-LOCKED]
    ehci0: [ITHREAD]
    usb2: EHCI version 1.0
    usb2: companion controllers, 3 ports each: usb0 usb1
    usb2: <ehci (generic)="" usb="" 2.0="" controller="">on ehci0
    usb2: USB revision 2.0
    uhub2: <sis 1="" 9="" ehci="" root="" hub,="" class="" 0,="" rev="" 2.00="" 1.00,="" addr="">on usb2
    uhub2: 6 ports with 6 removable, self powered
    ugen0: <ralink 0="" 2="" 802.11="" n="" wlan,="" class="" 0,="" rev="" 2.00="" 1.01,="" addr="">on uhub2
    sis0: <sis 10="" 900="" 100basetx="">port 0x8800-0x88ff mem 0xe5800000-0xe5800fff at device 4.0 on pci0
    miibus0: <mii bus="">on sis0
    ukphy0: <generic ieee="" 802.3u="" media="" interface="">PHY 1 on miibus0
    ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
    sis0: Ethernet address: 00:0c:6e:cf:e8:5c
    sis0: [ITHREAD]
    skc0: <d-link dge-530t="" gigabit="" ethernet="">port 0x8400-0x84ff mem 0xe5000000-0xe5003fff at device 14.0 on pci0
    skc0: DGE-530T Gigabit Ethernet Adapter rev. (0x9)
    sk0: <marvell semiconductor,="" inc.="" yukon="">on skc0
    sk0: Ethernet address: 1c:af:f7:0d:fb:21
    miibus1: <mii bus="">on sk0
    e1000phy0: <marvell 88e1011="" gigabit="" phy="">PHY 0 on miibus1
    e1000phy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto
    skc0: [ITHREAD]
    speaker0: <pc speaker="">port 0x61 on acpi0
    sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
    sio0: type 16550A
    sio0: [FILTER]
    atkbdc0: <keyboard controller="" (i8042)="">port 0x60,0x64 irq 1 on acpi0
    atkbd0: <at keyboard="">irq 1 on atkbdc0
    kbd0 at atkbd0
    atkbd0: [GIANT-LOCKED]
    atkbd0: [ITHREAD]
    cpu0: <acpi cpu="">on acpi0
    p4tcc0: <cpu frequency="" thermal="" control="">on cpu0
    pmtimer0 on isa0
    orm0: <isa option="" rom="">at iomem 0xc0000-0xcbfff pnpid ORM0000 on isa0
    fdc0: No FDOUT register!
    sc0: <system console="">at flags 0x100 on isa0
    sc0: VGA <16 virtual consoles, flags=0x300>
    sio1: configured irq 3 not in bitmap of probed irqs 0
    sio1: port may not be enabled
    vga0: <generic isa="" vga="">at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
    Timecounter "TSC" frequency 2000153220 Hz quality 800
    Timecounters tick every 1.000 msec
    IPsec: Initialized Security Association Processing.
    acd0: CDROM <asus cd-s520="" a="" 2.0l="">at ata0-master UDMA33
    ad1: 38166MB <wdc wd400bb-00dea0="" 05.03e05="">at ata0-slave UDMA100
    Trying to mount root from ufs:/dev/ad1s1a
    pflog0: promiscuous mode enabled
    bridge0: Ethernet address: 9a:ee:50:0f:5a:73
    sk0: promiscuous mode enabled
    sis0: promiscuous mode enabled
    sis0: promiscuous mode disabled
    sk0: promiscuous mode disabled
    bridge0: Ethernet address: 2a:84:ab:e8:73:e5
    sk0: promiscuous mode enabled
    sis0: promiscuous mode enabled
    sis0: link state changed to DOWN
    sis0: link state changed to UP
    sis0: link state changed to DOWN
    sis0: link state changed to UP
    sk0: link state changed to DOWN
    sk0: link state changed to UP</wdc></asus></generic></system></isa></cpu></acpi></at></keyboard></pc></marvell></mii></marvell></d-link></generic></mii></sis></ralink></sis></ehci></ehci></sis></sis></sis></sis></sis></sis></multimedia,></ata></ata></sis></isa></pci-isa></vga-compatible></acpi></acpi></sis></acpi></acpi></power></asus></software></version></asus></cnxt-id,xtpr></fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,dts,acpi,mmx,fxsr,sse,sse2,ss,htt,tm,pbe> 
    


  • The line

    ugen0: <ralink 0="" 2="" 802.11="" n="" wlan,="" class="" 0,="" rev="" 2.00="" 1.01,="" addr="">on uhub2</ralink> 
    

    suggests it might be supported by the run driver which is new to pfSense 2.0

    You could try a recent snapshot build of pfSense 2.0 and see if a run device is reported OR you could post the output of the pfSense shell command usbdevs -v which will provide a bit more detail about the USB devices which I could then check against known supported devices.



  • I have updated my pfSense to 2.0 BETA 5. The WLAN adapter still not recognized as an interface. This is the usbdevs -v output before the update. After the update it says no USB controllers found.

    Controller /dev/usb0:output
    addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x0000), rev 1.00
    port 1 powered
    port 2 powered
    port 3 powered
    Controller /dev/usb1:
    addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), SiS(0x0000), rev 1.00
    port 1 powered
    port 2 powered
    port 3 powered
    Controller /dev/usb2:
    addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), SiS(0x0000), rev 1.00
    port 1 addr 2: high speed, power 450 mA, config 1, 802.11 n WLAN(0x3070), Ralink(0x148f), rev 1.01
    port 2 powered
    port 3 powered
    port 4 powered
    port 5 powered
    port 6 powered



  • @lucky13th:

    I have updated my pfSense to 2.0 BETA 5. The WLAN adapter still not recognized as an interface.

    Probably because you still need the tweak to get the firmware loaded.

    @lucky13th:

    This is the usbdevs -v output before the update. After the update it says no USB controllers found.

    Looks like the same chipset the the run driver on my system attaches to.
    FreeBSD 8.x (and hence pfSense 2.0) has a different USB stack from pfSense 1.2.3 and though the usbdevs command is still present it no longer works (probably because the USB stack is different).

    Have a look through the 2.0 BETA forum for strings run0 and runfw to see what you need to do to get the device firmware loaded and how your USB wireless NIC should identify itself at startup or when plugged in.



  • Thank you! I tried runfw like you suggested in past posts and it worked. The adapter is showing up as an interface. Though I have a new problem. Even though the interface is up and running, I can't seem to find the SSID whenever I search for a wireless network.



  • Thanks for the update. Glad you got it working.


Locked