mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
[PATCH] mac80211: Fix SSID matching in AP selection
The length of the SSID desired should also be compared in addition to the memcmp of the SSIDs. Thanks to Andrea Merello <[email protected]> for finding this issue. Signed-off-by: Michael Wu <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
c9927c2bf4
commit
48225709be
1 changed files with 2 additions and 1 deletions
|
|
@ -2096,7 +2096,8 @@ static int ieee80211_sta_match_ssid(struct ieee80211_if_sta *ifsta,
|
|||
{
|
||||
int tmp, hidden_ssid;
|
||||
|
||||
if (!memcmp(ifsta->ssid, ssid, ssid_len))
|
||||
if (ssid_len == ifsta->ssid_len &&
|
||||
!memcmp(ifsta->ssid, ssid, ssid_len))
|
||||
return 1;
|
||||
|
||||
if (ifsta->flags & IEEE80211_STA_AUTO_BSSID_SEL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue