diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2013-05-17 20:50:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-05-22 15:08:58 -0400 |
commit | 388ec385d5ce4916f0677918a42e592ba423092d (patch) | |
tree | 35aa5dc7b8bad196817c6558aec08cbd7a4fa013 /drivers/net/wireless/mwifiex/sta_cmdresp.c | |
parent | 013a492ecf2e6e1dd424d589fb27170e2481733f (diff) |
mwifiex: add calibration data download feature
User can provide a text file containing calibration data in hex
format while loading mwifiex module. It will be downloaded to
firmware.
eg. insmod mwifiex.ko cal_data_cfg=cal_data.conf
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_cmdresp.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sta_cmdresp.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/sta_cmdresp.c b/drivers/net/wireless/mwifiex/sta_cmdresp.c index c710a1bb05ce..d85df158cc6c 100644 --- a/drivers/net/wireless/mwifiex/sta_cmdresp.c +++ b/drivers/net/wireless/mwifiex/sta_cmdresp.c | |||
@@ -818,6 +818,18 @@ static int mwifiex_ret_subsc_evt(struct mwifiex_private *priv, | |||
818 | return 0; | 818 | return 0; |
819 | } | 819 | } |
820 | 820 | ||
821 | /* This function handles the command response of set_cfg_data */ | ||
822 | static int mwifiex_ret_cfg_data(struct mwifiex_private *priv, | ||
823 | struct host_cmd_ds_command *resp) | ||
824 | { | ||
825 | if (resp->result != HostCmd_RESULT_OK) { | ||
826 | dev_err(priv->adapter->dev, "Cal data cmd resp failed\n"); | ||
827 | return -1; | ||
828 | } | ||
829 | |||
830 | return 0; | ||
831 | } | ||
832 | |||
821 | /* | 833 | /* |
822 | * This function handles the command responses. | 834 | * This function handles the command responses. |
823 | * | 835 | * |
@@ -841,6 +853,9 @@ int mwifiex_process_sta_cmdresp(struct mwifiex_private *priv, u16 cmdresp_no, | |||
841 | case HostCmd_CMD_GET_HW_SPEC: | 853 | case HostCmd_CMD_GET_HW_SPEC: |
842 | ret = mwifiex_ret_get_hw_spec(priv, resp); | 854 | ret = mwifiex_ret_get_hw_spec(priv, resp); |
843 | break; | 855 | break; |
856 | case HostCmd_CMD_CFG_DATA: | ||
857 | ret = mwifiex_ret_cfg_data(priv, resp); | ||
858 | break; | ||
844 | case HostCmd_CMD_MAC_CONTROL: | 859 | case HostCmd_CMD_MAC_CONTROL: |
845 | break; | 860 | break; |
846 | case HostCmd_CMD_802_11_MAC_ADDRESS: | 861 | case HostCmd_CMD_802_11_MAC_ADDRESS: |