Although this thread is way old, I thought that I would post a solution to the problem throughout this thread.
First, FreeBSD-8.0 would not configure my WPN111 (Atheros chipset) wireless usb device. I executed the following and still would not connect.
1) Apply the patch ...
The snippet from the .diff file further up removes one line containing a WPN111 firmware installed. When the device is inserted into a usb slot, a 'usbconfig -u 4 -a 2 dump_device_desc' yields "...0x5f01..." and it is associated in "usbdevs" as WPN111 (no firmware).
Executing 'uathload -d /dev/ugen4.2' should cause the device to decrement to 0x5f00; however, it does the opposite.
Applying the patch (diff file), it removes the line "product NETGEAR3 WPN111 0x5f00 WPN111" and adds the line "product NETGEAR3 WPN111 0x5f02" to /usr/src/sys/dev/usb/usbdevs -- a file containing usb definitions.
2) Rebuild the kernel...
In the directory "/usr/src," I executed 'make kernel.' After several minutes, the kernel had been installed and I then rebooted.
3) Enabling 'devd'...
In my /etc/rc.conf file, I added these two lines to provide KDE4 the facilities to work...
Code:
hald_enable="YES"
dbus_enable="YES"
devd is enabled within the kernel already.
4) Corrected /etc/devd/uath.conf ...
From this ...
Code:
# Netgear
# WG111T and WPN111
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x1385";
match "product" "(0x4251|0x5f01)";
action "/usr/sbin/uathload -d /dev/$cdev";
};
To this ...
Code:
# Netgear
# WG111T and WPN111
attach 100 {
device-name "ugen[0-9]+";
match "vendor" "0x1385";
match "product" "(0x4251|0x5f01)";
action "/usr/sbin/uathload -d /dev/$device-name";
};
5) Test ...
Inserted the WPN111 Wireless USB 2.0 into an open USB slot and shazzam the lights are on...
... but it turns out that no one is home.
6) Added to rc.conf...
Code:
wlans_ath0="wlan0"
ifconfig_wlan0="SYNCDHCP bssid 0a:1b:2c:3e:4d:5e wepmode on wepkey MY_KEY weptxkey 1"
7) We have a connection ...
"ifconfig wlan0" produces
"...inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255...
media: associated Wireless Ethernet OFDM/54Mbps mode 11g..."
Okay ... try "dhclient wlan0"
"DHCPDISCOVER media wlan0 broadcast 255.255.255.255 interval #
...No leases in database - sleeping"
"ifconfig wlan0" again produces the above.
In conclusion, I retired the whole notion of getting that NIC working on FreeBSD 8.0-RELEASE. I worked on the solution for a whole week (of my free time) and I tried virtually every angle.
I did manage to get my WPN111 (Atheros chipset) Wireless USB 2.0 NIC to work, but I shifted it over to an OpenBSD 4.9 system. Once the firmware was placed into "/etc/firmware" as "uath-ar5523," inserted the USB NIC, and executed "ifconfig uath0 nwid MY_WLAN nwkey MY_KEY up"
... and inet address 192.168.1.106.