diff options
author | Vladimir Koutny <vlado@work.ksp.sk> | 2008-07-07 14:23:01 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-07 15:31:40 -0400 |
commit | 6e43829bb69bf1d584a592075f1357590eb49b1a (patch) | |
tree | e3c6b3e0e84998f2fdcfec0f36cdbe0141aa7331 /net | |
parent | 9e095a687b3561972272063260e14ab1bc21de08 (diff) | |
download | linux-6e43829bb69bf1d584a592075f1357590eb49b1a.tar.gz linux-6e43829bb69bf1d584a592075f1357590eb49b1a.tar.bz2 linux-6e43829bb69bf1d584a592075f1357590eb49b1a.zip |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/mlme.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a7018540ae89..b404537c0bcd 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -3614,8 +3614,10 @@ static int ieee80211_sta_find_ibss(struct net_device *dev, spin_unlock_bh(&local->sta_bss_lock); #ifdef CONFIG_MAC80211_IBSS_DEBUG - printk(KERN_DEBUG " sta_find_ibss: selected %s current " - "%s\n", print_mac(mac, bssid), print_mac(mac2, ifsta->bssid)); + if (found) + 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 */ if (found && memcmp(ifsta->bssid, bssid, ETH_ALEN) != 0 && (bss = ieee80211_rx_bss_get(dev, bssid, |