aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-08-25 18:18:54 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-05 14:31:50 (GMT)
commitda71db71243352969fcbc3f3fd97eacd292826a6 (patch)
tree9627745016eb4e1983449350578f1ed9e7757e91
parentcf375f646e364d2da0c66bb42898ed98e65060d1 (diff)
downloadhostap-07-da71db71243352969fcbc3f3fd97eacd292826a6.zip
hostap-07-da71db71243352969fcbc3f3fd97eacd292826a6.tar.gz
hostap-07-da71db71243352969fcbc3f3fd97eacd292826a6.tar.bz2
Remove unused ieee802_11_send_deauth()
(cherry picked from commit 31fa4c6d98bf7a5da304117c77a075fb4bf19626)
-rw-r--r--src/ap/ieee802_11.c27
-rw-r--r--src/ap/ieee802_11.h2
2 files changed, 0 insertions, 29 deletions
diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 4d7d885..3375aa2 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -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)
diff --git a/src/ap/ieee802_11.h b/src/ap/ieee802_11.h
index e4350b1..cfc069c 100644
--- a/src/ap/ieee802_11.h
+++ b/src/ap/ieee802_11.h
@@ -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,