Please note: This project is no longer active. The website is kept online for historic purposes only.
If you´re looking for a Linux driver for your Atheros WLAN device, you should continue here .

Ticket #195: madwifi-lock-statemachine.diff

File madwifi-lock-statemachine.diff, 0.9 kB (added by svens, 14 years ago)
  • net80211/ieee80211_proto.c

    old new  
    12181218        ostate = vap->iv_state; 
    12191219        IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE, "%s: %s -> %s\n", __func__, 
    12201220                ieee80211_state_name[ostate], ieee80211_state_name[nstate]); 
     1221 
     1222        if((vap->iv_dev->flags & IFF_UP) == 0 && nstate != IEEE80211_S_INIT) { 
     1223                printk(KERN_INFO "%s: %s(): state transition on down device\n", vap->iv_dev->name, __func__); 
     1224                return 1; 
     1225        } 
     1226 
    12211227        vap->iv_state = nstate;                 /* state transition */ 
    12221228        del_timer(&vap->iv_mgtsend); 
    12231229        if (vap->iv_opmode != IEEE80211_M_HOSTAP && ostate != IEEE80211_S_SCAN)