]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ath9k_htc: Fix station flags
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Tue, 17 May 2011 07:11:31 +0000 (12:41 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 May 2011 17:53:59 +0000 (13:53 -0400)
The FW does absolutely nothing with the station flags,
so remove them. But keep the field around since it might
come in handy in the future.

Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc.h
drivers/net/wireless/ath/ath9k/htc_drv_main.c

index 5ec214c3753005cef811e25c51b9eb8415fb9caf..29dfdf8ebee4dd294b2aac633ee7096a112f75ec 100644 (file)
@@ -116,18 +116,13 @@ struct ath9k_htc_target_vif {
        u8 pad;
 } __packed;
 
-#define ATH_HTC_STA_AUTH  0x0001
-#define ATH_HTC_STA_QOS   0x0002
-#define ATH_HTC_STA_ERP   0x0004
-#define ATH_HTC_STA_HT    0x0008
-
 struct ath9k_htc_target_sta {
        u8 macaddr[ETH_ALEN];
        u8 bssid[ETH_ALEN];
        u8 sta_index;
        u8 vif_index;
        u8 is_vif_sta;
-       __be16 flags; /* ATH_HTC_STA_* */
+       __be16 flags;
        __be16 htcap;
        __be16 maxampdu;
        u8 pad;
index 6065c2fc97f001691228bf17efa71132675c86b2..b1b86135b634786b721b56f07c70baa7dbd44dc1 100644 (file)
@@ -502,9 +502,6 @@ static int ath9k_htc_add_station(struct ath9k_htc_priv *priv,
                tsta.maxampdu = cpu_to_be16(maxampdu);
        }
 
-       if (sta && sta->ht_cap.ht_supported)
-               tsta.flags = cpu_to_be16(ATH_HTC_STA_HT);
-
        WMI_CMD_BUF(WMI_NODE_CREATE_CMDID, &tsta);
        if (ret) {
                if (sta)