mwifiex: correction in structure name passed to sizeof()
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 14 Mar 2012 02:36:49 +0000 (19:36 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Mar 2012 18:39:40 +0000 (14:39 -0400)
"hscfg" is declared as struct mwifiex_ds_hs_cfg. Use same structure
name for calculating it's size.

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/sta_ioctl.c

index 64e0b10..d7b11de 100644 (file)
@@ -425,7 +425,7 @@ int mwifiex_enable_hs(struct mwifiex_adapter *adapter)
 
        adapter->hs_activate_wait_q_woken = false;
 
-       memset(&hscfg, 0, sizeof(struct mwifiex_hs_config_param));
+       memset(&hscfg, 0, sizeof(struct mwifiex_ds_hs_cfg));
        hscfg.is_invoke_hostcmd = true;
 
        if (mwifiex_set_hs_params(mwifiex_get_priv(adapter,