summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/wmi.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeusz.slawinski@tieto.com>2017-02-13 11:38:37 +0100
committerKalle Valo <kvalo@qca.qualcomm.com>2017-02-14 18:38:15 +0100
commit56ac13bfc703d5189e8b91c5c2f512830d1cb013 (patch)
tree61b3e6612dfe7851046077004317fac972f41c19 /drivers/net/wireless/ath/ath10k/wmi.c
parentnet: natsemi: ns83820: use new api ethtool_{get|set}_link_ksettings (diff)
downloadlinux-56ac13bfc703d5189e8b91c5c2f512830d1cb013.tar.xz
linux-56ac13bfc703d5189e8b91c5c2f512830d1cb013.zip
ath10k: remove ath10k_vif_to_arvif()
it adds unnecessary level of indirection, while we just access structure field Signed-off-by: Amadeusz Sławiński <amadeusz.slawinski@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/wmi.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index 414ad3e1eed4..2f1743e60fa1 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -1779,7 +1779,7 @@ unlock:
static void ath10k_wmi_tx_beacons_iter(void *data, u8 *mac,
struct ieee80211_vif *vif)
{
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
ath10k_wmi_tx_beacon_nowait(arvif);
}