Ticket #880: madwifi_ibss_auth_frame_crash.patch

File madwifi_ibss_auth_frame_crash.patch, 0.7 kB (added by jal2@gmx.de, 2 years ago)

Fixes a crash when an IBSS node receives an AUTH frame. Signed-off-by: Joerg Albert <jal2@gmx.de>

  • madwifi-0.9.2/net80211/ieee80211_proto.c

    old new  
    13621362                } 
    13631363                break; 
    13641364        case IEEE80211_S_AUTH: 
    1365                 KASSERT(vap->iv_opmode == IEEE80211_M_STA, 
     1365                /* auth frames are possible between IBSS nodes, see 802.11-1999, chapter 5.7.6 */ 
     1366                KASSERT(vap->iv_opmode == IEEE80211_M_STA || vap->iv_opmode == IEEE80211_M_IBSS, 
    13661367                        ("switch to %s state when operating in mode %u", 
    13671368                         ieee80211_state_name[nstate], vap->iv_opmode)); 
    13681369                switch (ostate) {