Home | History | Annotate | Download | only in ap

Lines Matching defs:hapd

26 	struct hostapd_data *hapd = eloop_ctx;
27 hapd->tkip_countermeasures = 0;
28 hostapd_drv_set_countermeasures(hapd, 0);
29 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
34 static void ieee80211_tkip_countermeasures_start(struct hostapd_data *hapd)
38 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211,
41 wpa_auth_countermeasures_start(hapd->wpa_auth);
42 hapd->tkip_countermeasures = 1;
43 hostapd_drv_set_countermeasures(hapd, 1);
44 wpa_gtk_rekey(hapd->wpa_auth);
45 eloop_cancel_timeout(ieee80211_tkip_countermeasures_stop, hapd, NULL);
47 hapd, NULL);
48 while ((sta = hapd->sta_list)) {
53 hapd, sta,
56 hostapd_drv_sta_deauth(hapd, sta->addr,
58 ap_free_sta(hapd, sta);
63 void ieee80211_tkip_countermeasures_deinit(struct hostapd_data *hapd)
65 eloop_cancel_timeout(ieee80211_tkip_countermeasures_stop, hapd, NULL);
69 int michael_mic_failure(struct hostapd_data *hapd, const u8 *addr, int local)
75 struct sta_info *sta = ap_get_sta(hapd, addr);
78 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211,
82 mlme_michaelmicfailure_indication(hapd, addr);
93 if (os_reltime_expired(&now, &hapd->michael_mic_failure, 60)) {
94 hapd->michael_mic_failures = 1;
96 hapd->michael_mic_failures++;
97 if (hapd->michael_mic_failures > 1) {
98 ieee80211_tkip_countermeasures_start(hapd);
102 hapd->michael_mic_failure = now;