]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix ibss join with fixed-bssid
authorFelix Fietkau <nbd@openwrt.org>
Sun, 20 Dec 2009 18:07:09 +0000 (19:07 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 28 Dec 2009 20:56:35 +0000 (15:56 -0500)
commit164391fadd4008bcd638ca366210216c530f5ec3
tree7b2c2aeba62e99ee670d061bc926312050cdee0d
parentafcfdf61c0e5b70d6058f893f26f9da8ca17cd71
mac80211: fix ibss join with fixed-bssid

When fixed bssid is requested when joining an ibss network, incoming
beacons that match the configured bssid cause mac80211 to create new
sta entries, even before the ibss interface is in joined state.
When that happens, it fails to bring up the interface entirely, because
it checks for existing sta entries before joining.
This patch fixes this bug by refusing to create sta info entries before
the interface is fully operational.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/ibss.c