When the channel is manually set with "ifconfig wlanX channel Y" for an Adhoc wifi client, then it does not join an existing IBSS (bssid not set). If the channel was not configured (bssid not set), then it works. How-To-Repeat: Node A: ifconfig wlan0 create wlandev ath0 wlanmode adhoc ifconfig wlan0 inet 192.168.0.1/24 ssid mesh channel 13 bssid 66:98:40:46:b7:0a up ifconfig wlan0 wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:80:48:4f:28:4f inet6 fe80::280:48ff:fe4f:284f%wlan0 prefixlen 64 scopeid 0x7 inet6 fd9c:6829:597c:20:280:48ff:fe4f:284f prefixlen 64 inet6 fd9c:6829:597c:20:: prefixlen 64 anycast nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <adhoc> status: running ssid mesh channel 13 (2472 MHz 11g) bssid 66:98:40:46:b7:0a regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS wme burst Node B: - with channel set (selects random bssid 72:5e:d0:6d:ad:84) ifconfig wlan0 create wlandev ath0 wlanmode adhoc ifconfig wlan0 inet 192.168.0.1/24 ssid mesh channel 13 up wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:80:48:4f:2a:ee inet6 fe80::280:48ff:fe4f:2aee%wlan0 prefixlen 64 scopeid 0x7 inet6 fd9c:6829:597c:20:280:48ff:fe4f:2aee prefixlen 64 inet6 fd9c:6829:597c:20:: prefixlen 64 anycast nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <adhoc> status: running ssid mesh channel 13 (2472 MHz 11g) bssid 72:5e:d0:6d:ad:84 regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS wme burst Node B: - with no channel set (joins existing IBSS - bssid 66:98:40:46:b7:0a) ifconfig wlan0 down ifconfig wlan0 channel - ifconfig wlan0 up ifconfig wlan0 wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:80:48:4f:2a:ee inet6 fe80::280:48ff:fe4f:2aee%wlan0 prefixlen 64 scopeid 0x7 inet6 fd9c:6829:597c:20:280:48ff:fe4f:2aee prefixlen 64 inet6 fd9c:6829:597c:20:: prefixlen 64 anycast nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <adhoc> status: running ssid mesh channel 13 (2472 MHz 11g) bssid 66:98:40:46:b7:0a regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS wme burst Node B: with fixed channel ((selects random bssid 1a:34:1f:0a:b2:a8) ifconfig wlan0 down ifconfig wlan0 channel 13 ifconfig wlan0 up wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 ether 00:80:48:4f:2a:ee inet6 fe80::280:48ff:fe4f:2aee%wlan0 prefixlen 64 scopeid 0x7 inet6 fd9c:6829:597c:20:280:48ff:fe4f:2aee prefixlen 64 inet6 fd9c:6829:597c:20:: prefixlen 64 anycast nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <adhoc> status: running ssid mesh channel 13 (2472 MHz 11g) bssid 1a:34:1f:0a:b2:a8 regdomain NONE country ZA ecm authmode OPEN privacy OFF txpower 30 scanvalid 60 protmode CTS wme burst
Responsible Changed From-To: freebsd-bugs->freebsd-wireless Over to maintainer(s).
hi, this is partially due to how filtering is done. It's not doing a scan and finding the IBSS, so it doesn't bother joining it. Andriy and I worked on fixing this up, and it should work in -HEAD now, but now we're not filtering enough stuff and we end up trying to do IBSS merges and populating the node table with other nodes where it's not appropriate. Please try on -HEAD and let me know. I'm working on this right now!
batch change: For bugs that match the following - Status Is In progress AND - Untouched since 2018-01-01. AND - Affects Base System OR Documentation DO: Reset to open status. Note: I did a quick pass but if you are getting this email it might be worthwhile to double check to see if this bug ought to be closed.
Should be fixed after: net80211(4) part: base r302202, base r306139 ath(4) part: base r291304, base r297729 (for me RTL8188EE and RTL8188EU on a single enforced channel (11) correctly merge into a single ad-hoc network).