aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/sta_cmd.c
diff options
context:
space:
mode:
authorBing Zhao <bzhao@marvell.com>2011-03-28 20:55:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-04 16:20:04 -0400
commiteecd8250e492ffc4e7b72953cda9c2f3ba0e6ccc (patch)
tree1897ca77a7d7746bd6c2fd8f748e06bee971bdfb /drivers/net/wireless/mwifiex/sta_cmd.c
parent6a4c499e86f54ed9316a87e7ddc6b7d33adb4976 (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/sta_cmd.c')
-rw-r--r--drivers/net/wireless/mwifiex/sta_cmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_cmd.c b/drivers/net/wireless/mwifiex/sta_cmd.c
index 795b1eae768d..6fff26153e26 100644
--- a/drivers/net/wireless/mwifiex/sta_cmd.c
+++ b/drivers/net/wireless/mwifiex/sta_cmd.c
@@ -1089,10 +1089,10 @@ int mwifiex_sta_prepare_cmd(struct mwifiex_private *priv, uint16_t cmd_no,
1089 break; 1089 break;
1090 case HostCmd_CMD_SET_BSS_MODE: 1090 case HostCmd_CMD_SET_BSS_MODE:
1091 cmd_ptr->command = cpu_to_le16(cmd_no); 1091 cmd_ptr->command = cpu_to_le16(cmd_no);
1092 if (priv->bss_mode == MWIFIEX_BSS_MODE_IBSS) 1092 if (priv->bss_mode == NL80211_IFTYPE_ADHOC)
1093 cmd_ptr->params.bss_mode.con_type = 1093 cmd_ptr->params.bss_mode.con_type =
1094 CONNECTION_TYPE_ADHOC; 1094 CONNECTION_TYPE_ADHOC;
1095 else if (priv->bss_mode == MWIFIEX_BSS_MODE_INFRA) 1095 else if (priv->bss_mode == NL80211_IFTYPE_STATION)
1096 cmd_ptr->params.bss_mode.con_type = 1096 cmd_ptr->params.bss_mode.con_type =
1097 CONNECTION_TYPE_INFRA; 1097 CONNECTION_TYPE_INFRA;
1098 cmd_ptr->size = cpu_to_le16(sizeof(struct 1098 cmd_ptr->size = cpu_to_le16(sizeof(struct