diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2011-07-13 23:51:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-21 14:52:04 -0400 |
commit | a0490936007bacf5bf6f4fb27788550c89c2c70d (patch) | |
tree | 1d24768db0a6e98336bf0b344d5a3a28b87d0b33 /drivers/net/wireless/mwifiex/sta_ioctl.c | |
parent | df3b124bdb6fe2459625443bd3dc0dbd020932da (diff) |
mwifiex: disable auto deep sleep before unloading the driver
Since the auto deep sleep mode has been enabled at driver init time
we should disable it at driver unloading to shutdown the function
gracefully.
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/sta_ioctl.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_ioctl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_ioctl.c b/drivers/net/wireless/mwifiex/sta_ioctl.c index d05907d05039..c34ff8c4f4f8 100644 --- a/drivers/net/wireless/mwifiex/sta_ioctl.c +++ b/drivers/net/wireless/mwifiex/sta_ioctl.c | |||
@@ -487,6 +487,20 @@ int mwifiex_set_radio_band_cfg(struct mwifiex_private *priv, | |||
487 | } | 487 | } |
488 | 488 | ||
489 | /* | 489 | /* |
490 | * The function disables auto deep sleep mode. | ||
491 | */ | ||
492 | int mwifiex_disable_auto_ds(struct mwifiex_private *priv) | ||
493 | { | ||
494 | struct mwifiex_ds_auto_ds auto_ds; | ||
495 | |||
496 | auto_ds.auto_ds = DEEP_SLEEP_OFF; | ||
497 | |||
498 | return mwifiex_send_cmd_sync(priv, HostCmd_CMD_802_11_PS_MODE_ENH, | ||
499 | DIS_AUTO_PS, BITMAP_AUTO_DS, &auto_ds); | ||
500 | } | ||
501 | EXPORT_SYMBOL_GPL(mwifiex_disable_auto_ds); | ||
502 | |||
503 | /* | ||
490 | * IOCTL request handler to set/get active channel. | 504 | * IOCTL request handler to set/get active channel. |
491 | * | 505 | * |
492 | * This function performs validity checking on channel/frequency | 506 | * This function performs validity checking on channel/frequency |