mwifiex: remove some macro definitions
authorAmitkumar Karwar <akarwar@marvell.com>
Sat, 16 Apr 2011 03:50:41 +0000 (20:50 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 19 Apr 2011 19:38:04 +0000 (15:38 -0400)
use corresponding macros defined in include/linux/ieee80211.h

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11n.c
drivers/net/wireless/mwifiex/fw.h
drivers/net/wireless/mwifiex/ioctl.h
drivers/net/wireless/mwifiex/join.c
drivers/net/wireless/mwifiex/sta_ioctl.c

index d64065ff235c1bb025994b6f4f6e9a3dac94f582..e22d761f2ef22f560fcc4c08696e94afbddda768 100644 (file)
@@ -115,7 +115,7 @@ mwifiex_fill_cap_info(struct mwifiex_private *priv,
                SETHT_MCS32(ht_cap->ht_cap.mcs.rx_mask);
 
        /* Clear RD responder bit */
-       RESETHT_EXTCAP_RDG(ht_ext_cap);
+       ht_ext_cap &= ~IEEE80211_HT_EXT_CAP_RD_RESPONDER;
 
        ht_cap->ht_cap.cap_info = cpu_to_le16(ht_cap_info);
        ht_cap->ht_cap.extended_ht_cap_info = cpu_to_le16(ht_ext_cap);
index f8c008f8f4761d4af274e6f8fd4e0d17cdc2e229..6d1c4545eda6129c57de5da53198bceac0eb7a81 100644 (file)
@@ -134,7 +134,6 @@ enum MWIFIEX_802_11_WEP_STATUS {
 
 #define MWIFIEX_TX_DATA_BUF_SIZE_4K        4096
 #define MWIFIEX_TX_DATA_BUF_SIZE_8K        8192
-#define NON_GREENFIELD_STAS     0x04
 
 #define ISSUPP_11NENABLED(FwCapInfo) (FwCapInfo & BIT(11))
 
@@ -159,7 +158,6 @@ enum MWIFIEX_802_11_WEP_STATUS {
 #define ISSUPP_GREENFIELD(Dot11nDevCap) (Dot11nDevCap & BIT(29))
 
 #define GET_RXMCSSUPP(DevMCSSupported) (DevMCSSupported & 0x0f)
-#define RESETHT_EXTCAP_RDG(HTExtCap) (HTExtCap &= ~BIT(11))
 #define SETHT_MCS32(x) (x[4] |= 1)
 
 #define SET_SECONDARYCHAN(RadioType, SECCHAN) (RadioType |= (SECCHAN << 4))
index 703a6d12ebf37ee3001c39894304d7745217a489..5488e111fd2c69f46d6618a11e4072683724247a 100644 (file)
@@ -268,14 +268,13 @@ struct mwifiex_debug_info {
 };
 
 #define MWIFIEX_KEY_INDEX_UNICAST      0x40000000
-#define MWIFIEX_MAX_KEY_LENGTH         32
 #define WAPI_RXPN_LEN                  16
 
 struct mwifiex_ds_encrypt_key {
        u32 key_disable;
        u32 key_index;
        u32 key_len;
-       u8 key_material[MWIFIEX_MAX_KEY_LENGTH];
+       u8 key_material[WLAN_MAX_KEY_LEN];
        u8 mac_addr[ETH_ALEN];
        u32 is_wapi_key;
        u8 wapi_rxpn[WAPI_RXPN_LEN];
index 8e1cb4b3fbea744a875bd6a33db07e0c2a0d35e5..23d2d0b9a52784531fafb86e4e8d72a6befaa7cf 100644 (file)
@@ -995,7 +995,7 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,
                                        IEEE80211_HT_PARAM_CHAN_WIDTH_ANY;
                        }
                        ht_info->ht_info.operation_mode =
-                               cpu_to_le16(NON_GREENFIELD_STAS);
+                            cpu_to_le16(IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT);
                        ht_info->ht_info.basic_set[0] = 0xff;
                        pos += sizeof(struct mwifiex_ie_types_htinfo);
                        cmd_append_size +=
index 03085a3b20dbdbf27e19b6e9dda21925beb2c0df..e7adaab352266c71bcd033c22c1d25e3ca92e1f7 100644 (file)
@@ -1147,7 +1147,7 @@ static int mwifiex_sec_ioctl_set_wpa_key(struct mwifiex_private *priv,
        struct host_cmd_ds_802_11_key_material *ibss_key;
 
        /* Current driver only supports key length of up to 32 bytes */
-       if (encrypt_key->key_len > MWIFIEX_MAX_KEY_LENGTH) {
+       if (encrypt_key->key_len > WLAN_MAX_KEY_LEN) {
                dev_err(priv->adapter->dev, "key length too long\n");
                return -1;
        }