]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
atheros: Remove unused variables
authorJouni Malinen <j@w1.fi>
Sat, 23 Jun 2012 17:34:29 +0000 (20:34 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 23 Jun 2012 17:34:29 +0000 (20:34 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

src/drivers/driver_atheros.c

index 6690bbbe8093727a1a4a6d7e4abdb2bc3e96579e..980c29ee8a2e610da6fe984ab673e1fbea7bd0e0 100644 (file)
@@ -1654,16 +1654,12 @@ static int atheros_send_mgmt(void *priv, const u8 *frm, size_t data_len,
 {
        struct atheros_driver_data *drv = priv;
        u8 buf[1510];
-       u16 fc;
-       u16 stype;
        const struct ieee80211_mgmt *mgmt;
        struct ieee80211req_mgmtbuf *mgmt_frm;
 
        mgmt = (const struct ieee80211_mgmt *) frm;
        wpa_printf(MSG_DEBUG, "%s frmlen = %lu " MACSTR, __func__,
                   (unsigned long) data_len, MAC2STR(mgmt->da));
-       fc = le_to_host16(mgmt->frame_control);
-       stype = WLAN_FC_GET_STYPE(fc);
        mgmt_frm = (struct ieee80211req_mgmtbuf *) buf;
        memcpy(mgmt_frm->macaddr, (u8 *)mgmt->da, IEEE80211_ADDR_LEN);
        mgmt_frm->buflen = data_len;