Lines Matching full:mgmt
1038 struct ieee80211_mgmt mgmt; in hostap_sta_deauth() local
1050 memset(&mgmt, 0, sizeof(mgmt)); in hostap_sta_deauth()
1051 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in hostap_sta_deauth()
1053 memcpy(mgmt.da, addr, ETH_ALEN); in hostap_sta_deauth()
1054 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_deauth()
1055 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_deauth()
1056 mgmt.u.deauth.reason_code = host_to_le16(reason); in hostap_sta_deauth()
1057 return hostap_send_mlme(drv, (u8 *) &mgmt, IEEE80211_HDRLEN + in hostap_sta_deauth()
1058 sizeof(mgmt.u.deauth), 0, 0, NULL, 0, 0, 0, -1); in hostap_sta_deauth()
1086 struct ieee80211_mgmt mgmt; in hostap_sta_disassoc() local
1088 memset(&mgmt, 0, sizeof(mgmt)); in hostap_sta_disassoc()
1089 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in hostap_sta_disassoc()
1091 memcpy(mgmt.da, addr, ETH_ALEN); in hostap_sta_disassoc()
1092 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_disassoc()
1093 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_disassoc()
1094 mgmt.u.disassoc.reason_code = host_to_le16(reason); in hostap_sta_disassoc()
1095 return hostap_send_mlme(drv, (u8 *) &mgmt, IEEE80211_HDRLEN + in hostap_sta_disassoc()
1096 sizeof(mgmt.u.disassoc), 0, 0, NULL, 0, 0, 0, in hostap_sta_disassoc()