mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 05:36:24 +00:00
mac80211: don't report selected IBSS when not found
Don't report a 'selected' IBSS in sta_find_ibss when none was found. Signed-off-by: Vladimir Koutny <vlado@ksp.sk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
9e095a687b
commit
6e43829bb6
1 changed files with 4 additions and 2 deletions
|
@ -3614,8 +3614,10 @@ static int ieee80211_sta_find_ibss(struct net_device *dev,
|
||||||
spin_unlock_bh(&local->sta_bss_lock);
|
spin_unlock_bh(&local->sta_bss_lock);
|
||||||
|
|
||||||
#ifdef CONFIG_MAC80211_IBSS_DEBUG
|
#ifdef CONFIG_MAC80211_IBSS_DEBUG
|
||||||
printk(KERN_DEBUG " sta_find_ibss: selected %s current "
|
if (found)
|
||||||
"%s\n", print_mac(mac, bssid), print_mac(mac2, ifsta->bssid));
|
printk(KERN_DEBUG " sta_find_ibss: selected %s current "
|
||||||
|
"%s\n", print_mac(mac, bssid),
|
||||||
|
print_mac(mac2, ifsta->bssid));
|
||||||
#endif /* CONFIG_MAC80211_IBSS_DEBUG */
|
#endif /* CONFIG_MAC80211_IBSS_DEBUG */
|
||||||
if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0 &&
|
if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0 &&
|
||||||
(bss = ieee80211_rx_bss_get(dev, bssid,
|
(bss = ieee80211_rx_bss_get(dev, bssid,
|
||||||
|
|
Loading…
Reference in a new issue