diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2013-03-04 19:27:57 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-06 16:29:13 -0500 |
commit | cc0b5a64b8e79b7fb73b8dfd4f71ac86d3ac94c7 (patch) | |
tree | aa0052fe3edf03b796d40f202872a97fcda303dd /drivers/net/wireless/mwifiex | |
parent | f553e1aad797540afddd1a99753a348e1c426ffe (diff) |
mwifiex: shorten the host sleep configuration macro names
As we are adding a few more macros in this category in next
patch, this cleanup work is required.
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>
Diffstat (limited to 'drivers/net/wireless/mwifiex')
-rw-r--r-- | drivers/net/wireless/mwifiex/cmdevt.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/fw.h | 8 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/init.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_cmd.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 10 |
5 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wireless/mwifiex/cmdevt.c b/drivers/net/wireless/mwifiex/cmdevt.c index 20a6c5555873..d19a88c47a4d 100644 --- a/drivers/net/wireless/mwifiex/cmdevt.c +++ b/drivers/net/wireless/mwifiex/cmdevt.c | |||
@@ -1139,7 +1139,7 @@ int mwifiex_ret_802_11_hs_cfg(struct mwifiex_private *priv, | |||
1139 | phs_cfg->params.hs_config.gpio, | 1139 | phs_cfg->params.hs_config.gpio, |
1140 | phs_cfg->params.hs_config.gap); | 1140 | phs_cfg->params.hs_config.gap); |
1141 | } | 1141 | } |
1142 | if (conditions != HOST_SLEEP_CFG_CANCEL) { | 1142 | if (conditions != HS_CFG_CANCEL) { |
1143 | adapter->is_hs_configured = true; | 1143 | adapter->is_hs_configured = true; |
1144 | if (adapter->iface_type == MWIFIEX_USB || | 1144 | if (adapter->iface_type == MWIFIEX_USB || |
1145 | adapter->iface_type == MWIFIEX_PCIE) | 1145 | adapter->iface_type == MWIFIEX_PCIE) |
diff --git a/drivers/net/wireless/mwifiex/fw.h b/drivers/net/wireless/mwifiex/fw.h index 25acb0682c56..270685ed53dc 100644 --- a/drivers/net/wireless/mwifiex/fw.h +++ b/drivers/net/wireless/mwifiex/fw.h | |||
@@ -376,10 +376,10 @@ enum P2P_MODES { | |||
376 | #define HostCmd_SCAN_RADIO_TYPE_BG 0 | 376 | #define HostCmd_SCAN_RADIO_TYPE_BG 0 |
377 | #define HostCmd_SCAN_RADIO_TYPE_A 1 | 377 | #define HostCmd_SCAN_RADIO_TYPE_A 1 |
378 | 378 | ||
379 | #define HOST_SLEEP_CFG_CANCEL 0xffffffff | 379 | #define HS_CFG_CANCEL 0xffffffff |
380 | #define HOST_SLEEP_CFG_COND_DEF 0x00000000 | 380 | #define HS_CFG_COND_DEF 0x00000000 |
381 | #define HOST_SLEEP_CFG_GPIO_DEF 0xff | 381 | #define HS_CFG_GPIO_DEF 0xff |
382 | #define HOST_SLEEP_CFG_GAP_DEF 0 | 382 | #define HS_CFG_GAP_DEF 0 |
383 | 383 | ||
384 | #define MWIFIEX_TIMEOUT_FOR_AP_RESP 0xfffc | 384 | #define MWIFIEX_TIMEOUT_FOR_AP_RESP 0xfffc |
385 | #define MWIFIEX_STATUS_CODE_AUTH_TIMEOUT 2 | 385 | #define MWIFIEX_STATUS_CODE_AUTH_TIMEOUT 2 |
diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c index e38aa9b3663d..cab3434d0d52 100644 --- a/drivers/net/wireless/mwifiex/init.c +++ b/drivers/net/wireless/mwifiex/init.c | |||
@@ -318,9 +318,9 @@ static void mwifiex_init_adapter(struct mwifiex_adapter *adapter) | |||
318 | adapter->curr_tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_2K; | 318 | adapter->curr_tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_2K; |
319 | 319 | ||
320 | adapter->is_hs_configured = false; | 320 | adapter->is_hs_configured = false; |
321 | adapter->hs_cfg.conditions = cpu_to_le32(HOST_SLEEP_CFG_COND_DEF); | 321 | adapter->hs_cfg.conditions = cpu_to_le32(HS_CFG_COND_DEF); |
322 | adapter->hs_cfg.gpio = HOST_SLEEP_CFG_GPIO_DEF; | 322 | adapter->hs_cfg.gpio = HS_CFG_GPIO_DEF; |
323 | adapter->hs_cfg.gap = HOST_SLEEP_CFG_GAP_DEF; | 323 | adapter->hs_cfg.gap = HS_CFG_GAP_DEF; |
324 | adapter->hs_activated = false; | 324 | adapter->hs_activated = false; |
325 | 325 | ||
326 | memset(adapter->event_body, 0, sizeof(adapter->event_body)); | 326 | memset(adapter->event_body, 0, sizeof(adapter->event_body)); |
diff --git a/drivers/net/wireless/mwifiex/sta_cmd.c b/drivers/net/wireless/mwifiex/sta_cmd.c index c55c5bb93134..3d51721af2eb 100644 --- a/drivers/net/wireless/mwifiex/sta_cmd.c +++ b/drivers/net/wireless/mwifiex/sta_cmd.c | |||
@@ -334,7 +334,7 @@ mwifiex_cmd_802_11_hs_cfg(struct mwifiex_private *priv, | |||
334 | cmd->command = cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH); | 334 | cmd->command = cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH); |
335 | 335 | ||
336 | if (!hs_activate && | 336 | if (!hs_activate && |
337 | (hscfg_param->conditions != cpu_to_le32(HOST_SLEEP_CFG_CANCEL)) && | 337 | (hscfg_param->conditions != cpu_to_le32(HS_CFG_CANCEL)) && |
338 | ((adapter->arp_filter_size > 0) && | 338 | ((adapter->arp_filter_size > 0) && |
339 | (adapter->arp_filter_size <= ARP_FILTER_MAX_BUF_SIZE))) { | 339 | (adapter->arp_filter_size <= ARP_FILTER_MAX_BUF_SIZE))) { |
340 | dev_dbg(adapter->dev, | 340 | dev_dbg(adapter->dev, |
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index 9f33c92c90f5..76d31deb7b1b 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c | |||
@@ -388,7 +388,7 @@ static int mwifiex_set_hs_params(struct mwifiex_private *priv, u16 action, | |||
388 | break; | 388 | break; |
389 | } | 389 | } |
390 | if (hs_cfg->is_invoke_hostcmd) { | 390 | if (hs_cfg->is_invoke_hostcmd) { |
391 | if (hs_cfg->conditions == HOST_SLEEP_CFG_CANCEL) { | 391 | if (hs_cfg->conditions == HS_CFG_CANCEL) { |
392 | if (!adapter->is_hs_configured) | 392 | if (!adapter->is_hs_configured) |
393 | /* Already cancelled */ | 393 | /* Already cancelled */ |
394 | break; | 394 | break; |
@@ -403,8 +403,8 @@ static int mwifiex_set_hs_params(struct mwifiex_private *priv, u16 action, | |||
403 | adapter->hs_cfg.gpio = (u8)hs_cfg->gpio; | 403 | adapter->hs_cfg.gpio = (u8)hs_cfg->gpio; |
404 | if (hs_cfg->gap) | 404 | if (hs_cfg->gap) |
405 | adapter->hs_cfg.gap = (u8)hs_cfg->gap; | 405 | adapter->hs_cfg.gap = (u8)hs_cfg->gap; |
406 | } else if (adapter->hs_cfg.conditions | 406 | } else if (adapter->hs_cfg.conditions == |
407 | == cpu_to_le32(HOST_SLEEP_CFG_CANCEL)) { | 407 | cpu_to_le32(HS_CFG_CANCEL)) { |
408 | /* Return failure if no parameters for HS | 408 | /* Return failure if no parameters for HS |
409 | enable */ | 409 | enable */ |
410 | status = -1; | 410 | status = -1; |
@@ -420,7 +420,7 @@ static int mwifiex_set_hs_params(struct mwifiex_private *priv, u16 action, | |||
420 | HostCmd_CMD_802_11_HS_CFG_ENH, | 420 | HostCmd_CMD_802_11_HS_CFG_ENH, |
421 | HostCmd_ACT_GEN_SET, 0, | 421 | HostCmd_ACT_GEN_SET, 0, |
422 | &adapter->hs_cfg); | 422 | &adapter->hs_cfg); |
423 | if (hs_cfg->conditions == HOST_SLEEP_CFG_CANCEL) | 423 | if (hs_cfg->conditions == HS_CFG_CANCEL) |
424 | /* Restore previous condition */ | 424 | /* Restore previous condition */ |
425 | adapter->hs_cfg.conditions = | 425 | adapter->hs_cfg.conditions = |
426 | cpu_to_le32(prev_cond); | 426 | cpu_to_le32(prev_cond); |
@@ -454,7 +454,7 @@ int mwifiex_cancel_hs(struct mwifiex_private *priv, int cmd_type) | |||
454 | { | 454 | { |
455 | struct mwifiex_ds_hs_cfg hscfg; | 455 | struct mwifiex_ds_hs_cfg hscfg; |
456 | 456 | ||
457 | hscfg.conditions = HOST_SLEEP_CFG_CANCEL; | 457 | hscfg.conditions = HS_CFG_CANCEL; |
458 | hscfg.is_invoke_hostcmd = true; | 458 | hscfg.is_invoke_hostcmd = true; |
459 | 459 | ||
460 | return mwifiex_set_hs_params(priv, HostCmd_ACT_GEN_SET, | 460 | return mwifiex_set_hs_params(priv, HostCmd_ACT_GEN_SET, |