]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused ieee802_11_send_deauth()
authorJouni Malinen <j@w1.fi>
Wed, 25 Aug 2010 18:18:54 +0000 (21:18 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 25 Aug 2010 18:18:54 +0000 (21:18 +0300)
src/ap/ieee802_11.c
src/ap/ieee802_11.h

index 166de4492bbca2b341e40f019e84856f3151b435..b9f8564f8f22256324c8b95f21df3ca578de5bf4 100644 (file)
@@ -191,33 +191,6 @@ void ieee802_11_print_ssid(char *buf, const u8 *ssid, u8 len)
 }
 
 
-/**
- * ieee802_11_send_deauth - Send Deauthentication frame
- * @hapd: hostapd BSS data
- * @addr: Address of the destination STA
- * @reason: Reason code for Deauthentication
- */
-void ieee802_11_send_deauth(struct hostapd_data *hapd, const u8 *addr,
-                           u16 reason)
-{
-       struct ieee80211_mgmt mgmt;
-
-       hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211,
-                      HOSTAPD_LEVEL_DEBUG,
-                      "deauthenticate - reason %d", reason);
-       os_memset(&mgmt, 0, sizeof(mgmt));
-       mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
-                                         WLAN_FC_STYPE_DEAUTH);
-       os_memcpy(mgmt.da, addr, ETH_ALEN);
-       os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN);
-       os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN);
-       mgmt.u.deauth.reason_code = host_to_le16(reason);
-       if (hapd->drv.send_mgmt_frame(hapd, &mgmt, IEEE80211_HDRLEN +
-                                      sizeof(mgmt.u.deauth)) < 0)
-               perror("ieee802_11_send_deauth: send");
-}
-
-
 static u16 auth_shared_key(struct hostapd_data *hapd, struct sta_info *sta,
                           u16 auth_transaction, const u8 *challenge,
                           int iswep)
index e4350b1768b79033139ac0a2b12793b9fa5b4185..cfc069c8094ff920b37fbdc7cc032a05dc1280f9 100644 (file)
@@ -21,8 +21,6 @@ struct sta_info;
 struct hostapd_frame_info;
 struct ieee80211_ht_capabilities;
 
-void ieee802_11_send_deauth(struct hostapd_data *hapd, const u8 *addr,
-                           u16 reason);
 void ieee802_11_mgmt(struct hostapd_data *hapd, const u8 *buf, size_t len,
                     struct hostapd_frame_info *fi);
 void ieee802_11_mgmt_cb(struct hostapd_data *hapd, const u8 *buf, size_t len,