Skip to content

Commit d7a5c7c

Browse files
Jeff Johnsonkvalo
authored andcommitted
wifi: ath11k: Really consistently use ath11k_vif_to_arvif()
Commit 9476cda ("wifi: ath11k: Consistently use ath11k_vif_to_arvif()") previously replaced all open coding of the ath11k_vif_to_arvif() functionality. Subsequently two more instances of open coding were introduced, one in commit 92425f7 ("wifi: ath11k: fill parameters for vdev set tpc power WMI command") and one in commit 6f4e235 ("wifi: ath11k: add parse of transmit power envelope element"), so fix those as well. No functional changes, compile tested only. Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://msgid.link/20240205-ath11k_vif_to_arvif-v1-1-7c41313c8318@quicinc.com
1 parent e65a639 commit d7a5c7c

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/wireless/ath/ath11k

1 file changed

+2
-2
lines changed

drivers/net/wireless/ath/ath11k/mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7590,7 +7590,7 @@ void ath11k_mac_fill_reg_tpc_info(struct ath11k *ar,
75907590
struct ieee80211_chanctx_conf *ctx)
75917591
{
75927592
struct ath11k_base *ab = ar->ab;
7593-
struct ath11k_vif *arvif = (void *)vif->drv_priv;
7593+
struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
75947594
struct ieee80211_bss_conf *bss_conf = &vif->bss_conf;
75957595
struct ath11k_reg_tpc_power_info *reg_tpc_info = &arvif->reg_tpc_info;
75967596
struct ieee80211_channel *chan, *temp_chan;
@@ -7764,7 +7764,7 @@ static void ath11k_mac_parse_tx_pwr_env(struct ath11k *ar,
77647764
struct ieee80211_chanctx_conf *ctx)
77657765
{
77667766
struct ath11k_base *ab = ar->ab;
7767-
struct ath11k_vif *arvif = (void *)vif->drv_priv;
7767+
struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif);
77687768
struct ieee80211_bss_conf *bss_conf = &vif->bss_conf;
77697769
struct ieee80211_tx_pwr_env *single_tpe;
77707770
enum wmi_reg_6ghz_client_type client_type;

0 commit comments

Comments
 (0)