diff options
author | Edward Lu <elu@qca.qualcomm.com> | 2011-08-30 14:58:00 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-31 03:13:01 -0400 |
commit | 1276c9ef6db2bc856579bc7f02e4cc710b089f0d (patch) | |
tree | 6dbead3c751d349ab40c6a8e9f22a8bf116fdbc4 /drivers/net/wireless/ath/ath6kl/wmi.c | |
parent | b84da8c738681b96e7691d985191ebf9ee4a21e8 (diff) |
ath6kl: Support channel set request for startscan command
Signed-off-by: Edward Lu <elu@qca.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/wmi.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/wmi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index 2d80bdb2d912..bbe3e8d214c8 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c | |||
@@ -1709,7 +1709,7 @@ int ath6kl_wmi_startscan_cmd(struct wmi *wmi, enum wmi_scan_type scan_type, | |||
1709 | struct sk_buff *skb; | 1709 | struct sk_buff *skb; |
1710 | struct wmi_start_scan_cmd *sc; | 1710 | struct wmi_start_scan_cmd *sc; |
1711 | s8 size; | 1711 | s8 size; |
1712 | int ret; | 1712 | int i, ret; |
1713 | 1713 | ||
1714 | size = sizeof(struct wmi_start_scan_cmd); | 1714 | size = sizeof(struct wmi_start_scan_cmd); |
1715 | 1715 | ||
@@ -1734,8 +1734,8 @@ int ath6kl_wmi_startscan_cmd(struct wmi *wmi, enum wmi_scan_type scan_type, | |||
1734 | sc->force_scan_intvl = cpu_to_le32(force_scan_interval); | 1734 | sc->force_scan_intvl = cpu_to_le32(force_scan_interval); |
1735 | sc->num_ch = num_chan; | 1735 | sc->num_ch = num_chan; |
1736 | 1736 | ||
1737 | if (num_chan) | 1737 | for (i = 0; i < num_chan; i++) |
1738 | memcpy(sc->ch_list, ch_list, num_chan * sizeof(u16)); | 1738 | sc->ch_list[i] = cpu_to_le16(ch_list[i]); |
1739 | 1739 | ||
1740 | ret = ath6kl_wmi_cmd_send(wmi, skb, WMI_START_SCAN_CMDID, | 1740 | ret = ath6kl_wmi_cmd_send(wmi, skb, WMI_START_SCAN_CMDID, |
1741 | NO_SYNC_WMIFLAG); | 1741 | NO_SYNC_WMIFLAG); |