]> git.karo-electronics.de Git - linux-beck.git/commit
rndis_wlan: workaround device not returning bss for currently connected AP
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Tue, 9 Nov 2010 17:25:47 +0000 (19:25 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Nov 2010 21:37:04 +0000 (16:37 -0500)
commitb5257c952dda24df7078c74b7b811b44c6e49206
treec6d3f9c13344d1ed74aedec0b8a59e4e7716ad23
parentf23a478075659db8a4fd62fa6e264a8bb052cc5b
rndis_wlan: workaround device not returning bss for currently connected AP

BCM4320a devices do not return bss for currently connected AP in bss-list,
althought this is required by NDIS specs. Missing bss leads to warning at
net/wireless/sme.c:__cfg80211_connect_result(), WARN_ON(!bss).

Workaround this by crafting bss manually with information we can read from
device. Workaround is only used when device bss-list does not return current
bss, and so is only used with BCM4320a devices and not newer BCM4320b ones.

Fixes bug #20152.

Reported-by: Luís Picciochi <Pitxyoki@gmail.com>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rndis_wlan.c