diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-10-25 10:03:57 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-11-11 05:58:45 -0500 |
commit | be98e3a48cb9b9e63da8537a378f656af2a9f2c6 (patch) | |
tree | 44c0b5c04895d8164757315b6814357ae31f4aeb /drivers/net/wireless/ath/ath6kl/wmi.c | |
parent | 521dffcc8ae90ad08e9d9f12d9f9acc9db562194 (diff) |
ath6kl: Keep wiphy reference in ath6kl structure
This is to avoid using ar->wdev to get wiphy pointer, this
may need further cleanup for multi vif support.
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@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 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index 7b6bfdde119c..7f4c2c2ab71b 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c | |||
@@ -431,7 +431,7 @@ static int ath6kl_wmi_remain_on_chnl_event_rx(struct wmi *wmi, u8 *datap, | |||
431 | dur = le32_to_cpu(ev->duration); | 431 | dur = le32_to_cpu(ev->duration); |
432 | ath6kl_dbg(ATH6KL_DBG_WMI, "remain_on_chnl: freq=%u dur=%u\n", | 432 | ath6kl_dbg(ATH6KL_DBG_WMI, "remain_on_chnl: freq=%u dur=%u\n", |
433 | freq, dur); | 433 | freq, dur); |
434 | chan = ieee80211_get_channel(ar->wdev->wiphy, freq); | 434 | chan = ieee80211_get_channel(ar->wiphy, freq); |
435 | if (!chan) { | 435 | if (!chan) { |
436 | ath6kl_dbg(ATH6KL_DBG_WMI, "remain_on_chnl: Unknown channel " | 436 | ath6kl_dbg(ATH6KL_DBG_WMI, "remain_on_chnl: Unknown channel " |
437 | "(freq=%u)\n", freq); | 437 | "(freq=%u)\n", freq); |
@@ -460,7 +460,7 @@ static int ath6kl_wmi_cancel_remain_on_chnl_event_rx(struct wmi *wmi, | |||
460 | dur = le32_to_cpu(ev->duration); | 460 | dur = le32_to_cpu(ev->duration); |
461 | ath6kl_dbg(ATH6KL_DBG_WMI, "cancel_remain_on_chnl: freq=%u dur=%u " | 461 | ath6kl_dbg(ATH6KL_DBG_WMI, "cancel_remain_on_chnl: freq=%u dur=%u " |
462 | "status=%u\n", freq, dur, ev->status); | 462 | "status=%u\n", freq, dur, ev->status); |
463 | chan = ieee80211_get_channel(ar->wdev->wiphy, freq); | 463 | chan = ieee80211_get_channel(ar->wiphy, freq); |
464 | if (!chan) { | 464 | if (!chan) { |
465 | ath6kl_dbg(ATH6KL_DBG_WMI, "cancel_remain_on_chnl: Unknown " | 465 | ath6kl_dbg(ATH6KL_DBG_WMI, "cancel_remain_on_chnl: Unknown " |
466 | "channel (freq=%u)\n", freq); | 466 | "channel (freq=%u)\n", freq); |
@@ -878,7 +878,7 @@ static void ath6kl_wmi_regdomain_event(struct wmi *wmi, u8 *datap, int len) | |||
878 | alpha2[0] = country->isoName[0]; | 878 | alpha2[0] = country->isoName[0]; |
879 | alpha2[1] = country->isoName[1]; | 879 | alpha2[1] = country->isoName[1]; |
880 | 880 | ||
881 | regulatory_hint(wmi->parent_dev->wdev->wiphy, alpha2); | 881 | regulatory_hint(wmi->parent_dev->wiphy, alpha2); |
882 | 882 | ||
883 | ath6kl_dbg(ATH6KL_DBG_WMI, "Country alpha2 being used: %c%c\n", | 883 | ath6kl_dbg(ATH6KL_DBG_WMI, "Country alpha2 being used: %c%c\n", |
884 | alpha2[0], alpha2[1]); | 884 | alpha2[0], alpha2[1]); |
@@ -974,7 +974,7 @@ static int ath6kl_wmi_bssinfo_event_rx(struct wmi *wmi, u8 *datap, int len) | |||
974 | ath6kl_wmi_bssfilter_cmd(ar->wmi, NONE_BSS_FILTER, 0); | 974 | ath6kl_wmi_bssfilter_cmd(ar->wmi, NONE_BSS_FILTER, 0); |
975 | } | 975 | } |
976 | 976 | ||
977 | channel = ieee80211_get_channel(ar->wdev->wiphy, le16_to_cpu(bih->ch)); | 977 | channel = ieee80211_get_channel(ar->wiphy, le16_to_cpu(bih->ch)); |
978 | if (channel == NULL) | 978 | if (channel == NULL) |
979 | return -EINVAL; | 979 | return -EINVAL; |
980 | 980 | ||
@@ -1021,7 +1021,7 @@ static int ath6kl_wmi_bssinfo_event_rx(struct wmi *wmi, u8 *datap, int len) | |||
1021 | 1021 | ||
1022 | memcpy(&mgmt->u.beacon, buf, len); | 1022 | memcpy(&mgmt->u.beacon, buf, len); |
1023 | 1023 | ||
1024 | bss = cfg80211_inform_bss_frame(ar->wdev->wiphy, channel, mgmt, | 1024 | bss = cfg80211_inform_bss_frame(ar->wiphy, channel, mgmt, |
1025 | 24 + len, (bih->snr - 95) * 100, | 1025 | 24 + len, (bih->snr - 95) * 100, |
1026 | GFP_ATOMIC); | 1026 | GFP_ATOMIC); |
1027 | kfree(mgmt); | 1027 | kfree(mgmt); |