]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix cmp_hidden_bss
authorJohannes Berg <johannes.berg@intel.com>
Wed, 28 Nov 2012 21:42:34 +0000 (22:42 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 30 Nov 2012 12:41:26 +0000 (13:41 +0100)
commitf6a773c661d8ad6d530c8dd60dd5dcbe673c9556
tree44c5efcf76dce5438bd078744e6a695b3a40e478
parent4200873c3a381bc31a2eb8b97610dc93f588938b
cfg80211: fix cmp_hidden_bss

The cmp_bss() comparator function uses memcmp() to
compare the SSID. This means that cmp_hidden_bss()
needs to similarly return a number bigger than zero
(use 1) instead of -1 when ie1 is bigger than ie2,
which is the case if an ie2 byte is non-zero.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/scan.c