diff options
author | Aarthi Thiruvengadam <aarthi.thiruvengadam@qca.qualcomm.com> | 2012-03-08 15:25:02 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-12 03:46:56 -0400 |
commit | 17a7b16df4ba8e71e149fcf31e0b639ff45ddf84 (patch) | |
tree | 8ad77d9a7f26c779485af2b56a9c263d27b8d7d6 /drivers/net/wireless/ath/ath6kl | |
parent | b51f92e09ab63f49bb32769cc3a7d0d49ffefcdf (diff) |
ath6kl: Fix merge error in ath6kl_set_ies()
Portion of the commit id 080eec4fb4 ("ath6kl: Clear the IE in firmware
if not set") was overwritten by mistake due to a merge
conflict. This patch fixes the code back to how it should be.
kvalo: more details to the commit log
Signed-off-by: Aarthi Thiruvengadam <athiruve@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 37908e60e863..5ecc53af3ac6 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -2366,30 +2366,27 @@ static int ath6kl_set_ies(struct ath6kl_vif *vif, | |||
2366 | struct ath6kl *ar = vif->ar; | 2366 | struct ath6kl *ar = vif->ar; |
2367 | int res; | 2367 | int res; |
2368 | 2368 | ||
2369 | if (info->beacon_ies) { | 2369 | /* this also clears IE in fw if it's not set */ |
2370 | res = ath6kl_wmi_set_appie_cmd(ar->wmi, vif->fw_vif_idx, | 2370 | res = ath6kl_wmi_set_appie_cmd(ar->wmi, vif->fw_vif_idx, |
2371 | WMI_FRAME_BEACON, | 2371 | WMI_FRAME_BEACON, |
2372 | info->beacon_ies, | 2372 | info->beacon_ies, |
2373 | info->beacon_ies_len); | 2373 | info->beacon_ies_len); |
2374 | if (res) | 2374 | if (res) |
2375 | return res; | 2375 | return res; |
2376 | } | 2376 | |
2377 | 2377 | /* this also clears IE in fw if it's not set */ | |
2378 | if (info->proberesp_ies) { | 2378 | res = ath6kl_set_ap_probe_resp_ies(vif, info->proberesp_ies, |
2379 | res = ath6kl_set_ap_probe_resp_ies(vif, info->proberesp_ies, | 2379 | info->proberesp_ies_len); |
2380 | info->proberesp_ies_len); | 2380 | if (res) |
2381 | if (res) | 2381 | return res; |
2382 | return res; | 2382 | |
2383 | } | 2383 | /* this also clears IE in fw if it's not set */ |
2384 | 2384 | res = ath6kl_wmi_set_appie_cmd(ar->wmi, vif->fw_vif_idx, | |
2385 | if (info->assocresp_ies) { | 2385 | WMI_FRAME_ASSOC_RESP, |
2386 | res = ath6kl_wmi_set_appie_cmd(ar->wmi, vif->fw_vif_idx, | 2386 | info->assocresp_ies, |
2387 | WMI_FRAME_ASSOC_RESP, | 2387 | info->assocresp_ies_len); |
2388 | info->assocresp_ies, | 2388 | if (res) |
2389 | info->assocresp_ies_len); | 2389 | return res; |
2390 | if (res) | ||
2391 | return res; | ||
2392 | } | ||
2393 | 2390 | ||
2394 | return 0; | 2391 | return 0; |
2395 | } | 2392 | } |