Hi,
while creating a patch for IEEE802.11n with IBSS, i found that
ieee80211_ibss_add_sta is called way to often by prepare_for_handlers in
net/mac80211/rx.c.
In net/mac80211/rx.c we check if the IBSSs match with ieee80211_bssid_match().
If they dont and we are not scanning, we are leaving.
But ieee80211_bssid_match() will also return true if our BSSID is set to
broadcast. And the interface is set to broadcast if we are scanning witch
happens if we created an IBSS and are still "alone". So we will never return.
So i would change !ieee80211_bssid_match just into compare_ether_addr.
Well, this only affects CPU (and my printk output) as ieee80211_ibss_add_sta
checks the BSSIDs on its own again, but we safe some needless function calls.
Hope i could give a understandable explanation of my patch
Signed-off-by: Alexander Simon <[email protected]>