Ticket #756: foreign_ap_assoc_fix.diff
File foreign_ap_assoc_fix.diff, 1.3 kB (added by tomas@simek.info, 16 years ago) |
---|
-
madwifi/net80211/ieee80211_input.c
old new 3031 3031 FREE(ni->ni_challenge, M_DEVBUF); 3032 3032 ni->ni_challenge = NULL; 3033 3033 } 3034 3034 3035 /* 802.11 spec says to ignore station's privacy bit */ 3036 3037 /* this code was disabled (changed to debug warning only) 3038 * due to incompatibility with many hardware access points 3039 * in client modes. 3040 * I don't know if this is okay, but we need it 3041 */ 3035 3042 if ((capinfo & IEEE80211_CAPINFO_ESS) == 0) { 3036 3043 IEEE80211_NOTE_MAC(vap, IEEE80211_MSG_ANY, wh->i_addr2, 3037 " deny %s request, capability mismatch 0x%x",3044 "%s request, capability mismatch 0x%x, continuing anyway", 3038 3045 reassoc ? "reassoc" : "assoc", capinfo); 3039 IEEE80211_SEND_MGMT(ni, resp, IEEE80211_STATUS_CAPINFO);3040 ieee80211_node_leave(ni);3041 vap->iv_stats.is_rx_assoc_capmismatch++;3042 return;3043 3046 } 3047 3048 /* IEEE80211_SEND_MGMT(ni, resp, IEEE80211_STATUS_CAPINFO); 3049 * ieee80211_node_leave(ni); 3050 * vap->iv_stats.is_rx_assoc_capmismatch++; 3051 * return; 3052 * } 3053 */ 3044 3054 rate = ieee80211_setup_rates(ni, rates, xrates, 3045 3055 IEEE80211_F_DOSORT | IEEE80211_F_DOFRATE | 3046 3056 IEEE80211_F_DONEGO | IEEE80211_F_DODEL);