diff options
author | Bing Zhao <bzhao@marvell.com> | 2011-03-28 20:55:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-04 16:20:04 -0400 |
commit | eecd8250e492ffc4e7b72953cda9c2f3ba0e6ccc (patch) | |
tree | 1897ca77a7d7746bd6c2fd8f748e06bee971bdfb /drivers/net/wireless/mwifiex/join.c | |
parent | 6a4c499e86f54ed9316a87e7ddc6b7d33adb4976 (diff) |
mwifiex: remove MWIFIEX_BSS_MODE_ macros
replace them with NL80211_IFTYPE_ macros
Also remove redundant functions mwifiex_drv_get_mode()
and mwifiex_bss_ioctl_mode().
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/join.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/join.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c index 08fa721580cb..d8c7c5f8464e 100644 --- a/drivers/net/wireless/mwifiex/join.c +++ b/drivers/net/wireless/mwifiex/join.c | |||
@@ -808,7 +808,7 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv, | |||
808 | 808 | ||
809 | /* Set the BSS mode */ | 809 | /* Set the BSS mode */ |
810 | adhoc_start->bss_mode = HostCmd_BSS_MODE_IBSS; | 810 | adhoc_start->bss_mode = HostCmd_BSS_MODE_IBSS; |
811 | bss_desc->bss_mode = MWIFIEX_BSS_MODE_IBSS; | 811 | bss_desc->bss_mode = NL80211_IFTYPE_ADHOC; |
812 | adhoc_start->beacon_period = cpu_to_le16(priv->beacon_period); | 812 | adhoc_start->beacon_period = cpu_to_le16(priv->beacon_period); |
813 | bss_desc->beacon_period = priv->beacon_period; | 813 | bss_desc->beacon_period = priv->beacon_period; |
814 | 814 | ||
@@ -1289,8 +1289,8 @@ int mwifiex_associate(struct mwifiex_private *priv, | |||
1289 | u8 current_bssid[ETH_ALEN]; | 1289 | u8 current_bssid[ETH_ALEN]; |
1290 | 1290 | ||
1291 | /* Return error if the adapter or table entry is not marked as infra */ | 1291 | /* Return error if the adapter or table entry is not marked as infra */ |
1292 | if ((priv->bss_mode != MWIFIEX_BSS_MODE_INFRA) || | 1292 | if ((priv->bss_mode != NL80211_IFTYPE_STATION) || |
1293 | (bss_desc->bss_mode != MWIFIEX_BSS_MODE_INFRA)) | 1293 | (bss_desc->bss_mode != NL80211_IFTYPE_STATION)) |
1294 | return -1; | 1294 | return -1; |
1295 | 1295 | ||
1296 | memcpy(¤t_bssid, | 1296 | memcpy(¤t_bssid, |
@@ -1358,7 +1358,7 @@ int mwifiex_adhoc_join(struct mwifiex_private *priv, | |||
1358 | !mwifiex_ssid_cmp(&bss_desc->ssid, | 1358 | !mwifiex_ssid_cmp(&bss_desc->ssid, |
1359 | &priv->curr_bss_params.bss_descriptor.ssid) && | 1359 | &priv->curr_bss_params.bss_descriptor.ssid) && |
1360 | (priv->curr_bss_params.bss_descriptor.bss_mode == | 1360 | (priv->curr_bss_params.bss_descriptor.bss_mode == |
1361 | MWIFIEX_BSS_MODE_IBSS)) { | 1361 | NL80211_IFTYPE_ADHOC)) { |
1362 | dev_dbg(priv->adapter->dev, "info: ADHOC_J_CMD: new ad-hoc SSID" | 1362 | dev_dbg(priv->adapter->dev, "info: ADHOC_J_CMD: new ad-hoc SSID" |
1363 | " is the same as current; not attempting to re-join\n"); | 1363 | " is the same as current; not attempting to re-join\n"); |
1364 | return -1; | 1364 | return -1; |
@@ -1421,9 +1421,9 @@ int mwifiex_deauthenticate(struct mwifiex_private *priv, | |||
1421 | int ret = 0; | 1421 | int ret = 0; |
1422 | 1422 | ||
1423 | if (priv->media_connected) { | 1423 | if (priv->media_connected) { |
1424 | if (priv->bss_mode == MWIFIEX_BSS_MODE_INFRA) { | 1424 | if (priv->bss_mode == NL80211_IFTYPE_STATION) { |
1425 | ret = mwifiex_deauthenticate_infra(priv, wait, mac); | 1425 | ret = mwifiex_deauthenticate_infra(priv, wait, mac); |
1426 | } else if (priv->bss_mode == MWIFIEX_BSS_MODE_IBSS) { | 1426 | } else if (priv->bss_mode == NL80211_IFTYPE_ADHOC) { |
1427 | ret = mwifiex_prepare_cmd(priv, | 1427 | ret = mwifiex_prepare_cmd(priv, |
1428 | HostCmd_CMD_802_11_AD_HOC_STOP, | 1428 | HostCmd_CMD_802_11_AD_HOC_STOP, |
1429 | HostCmd_ACT_GEN_SET, 0, wait, NULL); | 1429 | HostCmd_ACT_GEN_SET, 0, wait, NULL); |