$ lspci -knn | grep Net -A2
01:00.0 Network controller [0280]: Intel Corporation Wireless 8260 [8086:24f3] (rev 3a)
Subsystem: Intel Corporation Dual Band Wireless-AC 8260 [8086:0010]
Kernel driver in use: iwlwifi
ieee80211_load_module: load the wlan_amrr module by hand for now.
Created wlan(4) interfaces: wlan0.
Starting wpa_supplicant.
Apr 9 01:11:15 generic wpa_supplicant[1488]: ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
Apr 9 01:11:15 generic syslogd: last message repeated 1 times
Apr 9 01:11:17 generic wpa_supplicant[1489]: Failed to add supported operating classes IE
Apr 9 01:11:17 generic dhclient[1533]: send_packet: No buffer space available
I have a couple of these:
They work, but have limited range. Presumably due to the lack of a real antenna. I don't know whether there are similar size adapters with better reception.
Strange, I have one associated right now.Doesn't work for me. Same errors as above.
Show me out out of these commands.Doesn't work. It associates with network in ifconfig but can't get an IP address via DHCP.
# cp /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf.ORG
# killall -9 wpa_supplicant dhclient
# ifconfig wlan0 destroy
# ifconfig wlan0 create wlandev rtwn0
# ifconfig wlan0 up
# ifconfig wlan0 scan
# wpa_passphrase YOURWIFINETWORK YOURWIFIPASSWORD > /etc/wpa_supplicant.conf
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
The machine is just a few feet from the AP, direct line of sight. It associates just fine. Can't get DHCP due to errors. The AP sees the request and gives it IP address.Strange, I have one associated right now.
Did you try right next to the hub to rule out weak signal? I have your symptoms far away from the hub.
Show me out out of these commands.
Just do not paste YOURWIFIPASSWORD here.
Code:# cp /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf.ORG # killall -9 wpa_supplicant dhclient # ifconfig wlan0 destroy # ifconfig wlan0 create wlandev rtwn0 # ifconfig wlan0 up # ifconfig wlan0 scan # wpa_passphrase YOURWIFINETWORK YOURWIFIPASSWORD > /etc/wpa_supplicant.conf # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
# ifconfig wlan0 create wlandev rtwn0
ieee80211_load_module: load the wlan_amrr module by hand for now.
root@generic:~ # ifconfig wlan0 up
root@generic:~ # ifconfig wlan0 scan
SSID/MESH ID BSSID CHAN RATE S:N INT CAPS
myssid xx:xx:xx:xx:xx:xx 6 54M -61:-95 100 EPS RSN HTCAP WME
# wpa_passphrase myssid mypsk > /etc/wpa_supplicant.conf
# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
Apr 9 03:08:31 generic dhclient[1037]: My address (10.10.123.4) was deleted, dhclient exiting
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
Apr 9 03:08:31 generic dhclient[1037]: connection closed
Apr 9 03:08:31 generic dhclient[1037]: exiting.
wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='myssid' freq=2437 MHz)
Failed to add supported operating classes IE
wlan0: Associated with xx:xx:xx:xx:xx:xx
Apr 9 03:08:33 generic dhclient[1168]: send_packet: No buffer space available
wlan0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
hanging forever
Very good. We wanted that CTRL-EVENT-CONNECTED message - you have connected to your myssid network over WiFi - that is layer 2 of the OSI/ISO model. We will now focus on layer 3.Code:# ifconfig wlan0 create wlandev rtwn0 ieee80211_load_module: load the wlan_amrr module by hand for now. root@generic:~ # ifconfig wlan0 up root@generic:~ # ifconfig wlan0 scan SSID/MESH ID BSSID CHAN RATE S:N INT CAPS myssid xx:xx:xx:xx:xx:xx 6 54M -61:-95 100 EPS RSN HTCAP WME # wpa_passphrase myssid mypsk > /etc/wpa_supplicant.conf # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf Successfully initialized wpa_supplicant Apr 9 03:08:31 generic dhclient[1037]: My address (10.10.123.4) was deleted, dhclient exiting ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument Apr 9 03:08:31 generic dhclient[1037]: connection closed Apr 9 03:08:31 generic dhclient[1037]: exiting. wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='myssid' freq=2437 MHz) Failed to add supported operating classes IE wlan0: Associated with xx:xx:xx:xx:xx:xx Apr 9 03:08:33 generic dhclient[1168]: send_packet: No buffer space available wlan0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP] wlan0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=] hanging forever
So for this USB stick add this to /boot/loader.confload the wlan_amrr module by hand for now.
wlan_amrr_load="YES"
You didn't see the errors?Very good. We wanted that CTRL-EVENT-CONNECTED message - you have connected to your myssid network over WiFi - that is layer 2 of the OSI/ISO model. We will now focus on layer 3.
Now as its connected - and as you said its 'hanging forever' do these:
1. Press [CTRL]+[Z] keys - you will get info on the screen that wpa_supplicant(8) process is 'suspended'.
2. Type bg and press [ENTER] - you will get info 'continued' info.
3. Type dhclient wlan0 - you should get IP address.
4. type netstat -rn - to see if you have default gateway.
5. type ping -c 3 1.1.1.1 to see if you have network connectivity.
Let me know how it went.
I have it in.So for this USB stick add this to /boot/loader.conf
Some USB sticks don't load it and its needed.Code:wlan_amrr_load="YES"
wlan_amrr(4)
man.freebsd.org
Seems its Layer 7 actually ... and WiFi being layer 1You didn't see the errors?
Also DHCP is Layer 2 not 3.
# dhclient wlan0
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument
ioctl[SIOCS80211, op=20, val=0, arg_len=7]: Invalid argument