diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2012-06-09 18:45:20 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-11 14:29:15 -0400 |
commit | b0fd49b7d7599dc87402df13ab6e571e2222601f (patch) | |
tree | 0c7b860942f9b0ad4da5b7260595f7327bd3aff7 /net | |
parent | a23415fd7ed4bfa8e203ecf141d43da7180193af (diff) | |
download | op-kernel-dev-b0fd49b7d7599dc87402df13ab6e571e2222601f.zip op-kernel-dev-b0fd49b7d7599dc87402df13ab6e571e2222601f.tar.gz |
rndis_wlan: fix matching bssid check in rndis_check_bssid_list()
rndis_check_bssid_list() originally tried to check if bssid->mac and
match_bssid are equal using compare_ether_addr() when it should use
!compare_ether_addr(). This check was added by commit
b5257c952dda24df7078c74b7b811b44c6e49206 as part of workaround for
hardware issue.
Commit 2e42e4747ea72943c21551d8a206b51a9893b1e0 that replaced
compare_ether_addr with ether_addr_equal relieved that this compare
to be inverse of what it should be.
Compare was added as response to hardware bug, where bssid-list does
not contain BSSID and other information of currently connected AP
(spec insists that device must provide this information in the list
when connected). Lack bssid-data on current connection then causes
WARN_ON somewhere in cfg80211. Workaround was to check if bssid-list
returns current bssid and if it does not, manually construct bssid
information in other ways. And this workaround worked, with inverse
check. Which must mean that when hardware is experiencing the problem,
it's actually returning empty bssid-list and this check didn't make
any difference for workaround.
However inverse check causes workaround be activated when bssid-list
returns only entry, currently connected BSSID. That does not cause
problems in itself, just slightly more inaccurate information in
scan-list.
Cc: Joe Perches <joe@perches.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions