madwifi: fix race condition on ibss init (#5935)
[openwrt.git] / package / madwifi / patches / 369-mlme_assoc.patch
1 --- a/net80211/ieee80211_wireless.c
2 +++ b/net80211/ieee80211_wireless.c
3 @@ -3723,6 +3723,7 @@ ieee80211_ioctl_setmlme(struct net_devic
4                 if (vap->iv_opmode == IEEE80211_M_STA) {
5                         struct scanlookup lookup;
6  
7 +                       preempt_scan(dev, 100, 100);
8                         lookup.se = NULL;
9                         lookup.mac = mlme->im_macaddr;
10                         /* XXX use revised api w/ explicit ssid */