Bug 167870 - [ath] adhoc wifi client does not join an existing IBSS if channel set manually
Summary: [ath] adhoc wifi client does not join an existing IBSS if channel set manually
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: wireless (show other bugs)
Version: 9.0-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-wireless (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-14 13:20 UTC by Johann Hugo
Modified: 2019-01-27 23:57 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johann Hugo 2012-05-14 13:20:09 UTC
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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2012-05-14 21:27:46 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-wireless

Over to maintainer(s).
Comment 2 Adrian Chadd freebsd_committer freebsd_triage 2016-04-08 23:34:49 UTC
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!
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-28 19:46:26 UTC
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.
Comment 4 Andriy Voskoboinyk freebsd_committer freebsd_triage 2019-01-27 23:57:55 UTC
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).