|
@@ -1993,7 +1993,7 @@ static void ath10k_mac_handle_beacon_iter(void *data, u8 *mac,
|
|
{
|
|
{
|
|
struct sk_buff *skb = data;
|
|
struct sk_buff *skb = data;
|
|
struct ieee80211_mgmt *mgmt = (void *)skb->data;
|
|
struct ieee80211_mgmt *mgmt = (void *)skb->data;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
|
|
|
|
if (vif->type != NL80211_IFTYPE_STATION)
|
|
if (vif->type != NL80211_IFTYPE_STATION)
|
|
return;
|
|
return;
|
|
@@ -2016,7 +2016,7 @@ static void ath10k_mac_handle_beacon_miss_iter(void *data, u8 *mac,
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
{
|
|
{
|
|
u32 *vdev_id = data;
|
|
u32 *vdev_id = data;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ath10k *ar = arvif->ar;
|
|
struct ath10k *ar = arvif->ar;
|
|
struct ieee80211_hw *hw = ar->hw;
|
|
struct ieee80211_hw *hw = ar->hw;
|
|
|
|
|
|
@@ -2083,7 +2083,7 @@ static void ath10k_peer_assoc_h_basic(struct ath10k *ar,
|
|
struct ieee80211_sta *sta,
|
|
struct ieee80211_sta *sta,
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
u32 aid;
|
|
u32 aid;
|
|
|
|
|
|
lockdep_assert_held(&ar->conf_mutex);
|
|
lockdep_assert_held(&ar->conf_mutex);
|
|
@@ -2159,7 +2159,7 @@ static void ath10k_peer_assoc_h_rates(struct ath10k *ar,
|
|
struct ieee80211_sta *sta,
|
|
struct ieee80211_sta *sta,
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct wmi_rate_set_arg *rateset = &arg->peer_legacy_rates;
|
|
struct wmi_rate_set_arg *rateset = &arg->peer_legacy_rates;
|
|
struct cfg80211_chan_def def;
|
|
struct cfg80211_chan_def def;
|
|
const struct ieee80211_supported_band *sband;
|
|
const struct ieee80211_supported_band *sband;
|
|
@@ -2222,7 +2222,7 @@ static void ath10k_peer_assoc_h_ht(struct ath10k *ar,
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
{
|
|
{
|
|
const struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap;
|
|
const struct ieee80211_sta_ht_cap *ht_cap = &sta->ht_cap;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct cfg80211_chan_def def;
|
|
struct cfg80211_chan_def def;
|
|
enum nl80211_band band;
|
|
enum nl80211_band band;
|
|
const u8 *ht_mcs_mask;
|
|
const u8 *ht_mcs_mask;
|
|
@@ -2446,7 +2446,7 @@ static void ath10k_peer_assoc_h_vht(struct ath10k *ar,
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
{
|
|
{
|
|
const struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap;
|
|
const struct ieee80211_sta_vht_cap *vht_cap = &sta->vht_cap;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct cfg80211_chan_def def;
|
|
struct cfg80211_chan_def def;
|
|
enum nl80211_band band;
|
|
enum nl80211_band band;
|
|
const u16 *vht_mcs_mask;
|
|
const u16 *vht_mcs_mask;
|
|
@@ -2507,7 +2507,7 @@ static void ath10k_peer_assoc_h_qos(struct ath10k *ar,
|
|
struct ieee80211_sta *sta,
|
|
struct ieee80211_sta *sta,
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
|
|
|
|
switch (arvif->vdev_type) {
|
|
switch (arvif->vdev_type) {
|
|
case WMI_VDEV_TYPE_AP:
|
|
case WMI_VDEV_TYPE_AP:
|
|
@@ -2574,7 +2574,7 @@ static void ath10k_peer_assoc_h_phymode(struct ath10k *ar,
|
|
struct ieee80211_sta *sta,
|
|
struct ieee80211_sta *sta,
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
struct wmi_peer_assoc_complete_arg *arg)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct cfg80211_chan_def def;
|
|
struct cfg80211_chan_def def;
|
|
enum nl80211_band band;
|
|
enum nl80211_band band;
|
|
const u8 *ht_mcs_mask;
|
|
const u8 *ht_mcs_mask;
|
|
@@ -2689,7 +2689,7 @@ static int ath10k_mac_vif_recalc_txbf(struct ath10k *ar,
|
|
struct ieee80211_vif *vif,
|
|
struct ieee80211_vif *vif,
|
|
struct ieee80211_sta_vht_cap vht_cap)
|
|
struct ieee80211_sta_vht_cap vht_cap)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
int ret;
|
|
int ret;
|
|
u32 param;
|
|
u32 param;
|
|
u32 value;
|
|
u32 value;
|
|
@@ -2756,7 +2756,7 @@ static void ath10k_bss_assoc(struct ieee80211_hw *hw,
|
|
struct ieee80211_bss_conf *bss_conf)
|
|
struct ieee80211_bss_conf *bss_conf)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ieee80211_sta_ht_cap ht_cap;
|
|
struct ieee80211_sta_ht_cap ht_cap;
|
|
struct ieee80211_sta_vht_cap vht_cap;
|
|
struct ieee80211_sta_vht_cap vht_cap;
|
|
struct wmi_peer_assoc_complete_arg peer_arg;
|
|
struct wmi_peer_assoc_complete_arg peer_arg;
|
|
@@ -2849,7 +2849,7 @@ static void ath10k_bss_disassoc(struct ieee80211_hw *hw,
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ieee80211_sta_vht_cap vht_cap = {};
|
|
struct ieee80211_sta_vht_cap vht_cap = {};
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -2882,7 +2882,7 @@ static int ath10k_station_assoc(struct ath10k *ar,
|
|
struct ieee80211_sta *sta,
|
|
struct ieee80211_sta *sta,
|
|
bool reassoc)
|
|
bool reassoc)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct wmi_peer_assoc_complete_arg peer_arg;
|
|
struct wmi_peer_assoc_complete_arg peer_arg;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
|
|
@@ -2949,7 +2949,7 @@ static int ath10k_station_disassoc(struct ath10k *ar,
|
|
struct ieee80211_vif *vif,
|
|
struct ieee80211_vif *vif,
|
|
struct ieee80211_sta *sta)
|
|
struct ieee80211_sta *sta)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
|
|
lockdep_assert_held(&ar->conf_mutex);
|
|
lockdep_assert_held(&ar->conf_mutex);
|
|
@@ -3175,7 +3175,7 @@ static void ath10k_mac_tx_unlock_iter(void *data, u8 *mac,
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
{
|
|
{
|
|
struct ath10k *ar = data;
|
|
struct ath10k *ar = data;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
|
|
|
|
if (arvif->tx_paused)
|
|
if (arvif->tx_paused)
|
|
return;
|
|
return;
|
|
@@ -3262,7 +3262,7 @@ struct ath10k_mac_tx_pause {
|
|
static void ath10k_mac_handle_tx_pause_iter(void *data, u8 *mac,
|
|
static void ath10k_mac_handle_tx_pause_iter(void *data, u8 *mac,
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ath10k_mac_tx_pause *arg = data;
|
|
struct ath10k_mac_tx_pause *arg = data;
|
|
|
|
|
|
if (arvif->vdev_id != arg->vdev_id)
|
|
if (arvif->vdev_id != arg->vdev_id)
|
|
@@ -3358,7 +3358,7 @@ static bool ath10k_tx_h_use_hwcrypto(struct ieee80211_vif *vif,
|
|
return false;
|
|
return false;
|
|
|
|
|
|
if (vif)
|
|
if (vif)
|
|
- return !ath10k_vif_to_arvif(vif)->nohwcrypt;
|
|
|
|
|
|
+ return !((struct ath10k_vif *)vif->drv_priv)->nohwcrypt;
|
|
|
|
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -3423,7 +3423,7 @@ static void ath10k_tx_h_add_p2p_noa_ie(struct ath10k *ar,
|
|
struct sk_buff *skb)
|
|
struct sk_buff *skb)
|
|
{
|
|
{
|
|
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
|
|
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
|
|
|
|
/* This is case only for P2P_GO */
|
|
/* This is case only for P2P_GO */
|
|
if (vif->type != NL80211_IFTYPE_AP || !vif->p2p)
|
|
if (vif->type != NL80211_IFTYPE_AP || !vif->p2p)
|
|
@@ -4849,7 +4849,7 @@ static int ath10k_add_interface(struct ieee80211_hw *hw,
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ath10k_peer *peer;
|
|
struct ath10k_peer *peer;
|
|
enum wmi_sta_powersave_param param;
|
|
enum wmi_sta_powersave_param param;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
@@ -5185,7 +5185,7 @@ static void ath10k_remove_interface(struct ieee80211_hw *hw,
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ath10k_peer *peer;
|
|
struct ath10k_peer *peer;
|
|
int ret;
|
|
int ret;
|
|
int i;
|
|
int i;
|
|
@@ -5320,7 +5320,7 @@ static void ath10k_bss_info_changed(struct ieee80211_hw *hw,
|
|
u32 changed)
|
|
u32 changed)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
u32 vdev_param, pdev_param, slottime, preamble;
|
|
u32 vdev_param, pdev_param, slottime, preamble;
|
|
|
|
|
|
@@ -5512,7 +5512,7 @@ static int ath10k_hw_scan(struct ieee80211_hw *hw,
|
|
struct ieee80211_scan_request *hw_req)
|
|
struct ieee80211_scan_request *hw_req)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct cfg80211_scan_request *req = &hw_req->req;
|
|
struct cfg80211_scan_request *req = &hw_req->req;
|
|
struct wmi_start_scan_arg arg;
|
|
struct wmi_start_scan_arg arg;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
@@ -5644,7 +5644,7 @@ static int ath10k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
|
|
struct ieee80211_key_conf *key)
|
|
struct ieee80211_key_conf *key)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ath10k_peer *peer;
|
|
struct ath10k_peer *peer;
|
|
const u8 *peer_addr;
|
|
const u8 *peer_addr;
|
|
bool is_wep = key->cipher == WLAN_CIPHER_SUITE_WEP40 ||
|
|
bool is_wep = key->cipher == WLAN_CIPHER_SUITE_WEP40 ||
|
|
@@ -5783,7 +5783,7 @@ static void ath10k_set_default_unicast_key(struct ieee80211_hw *hw,
|
|
int keyidx)
|
|
int keyidx)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
mutex_lock(&arvif->ar->conf_mutex);
|
|
mutex_lock(&arvif->ar->conf_mutex);
|
|
@@ -5964,7 +5964,7 @@ static int ath10k_mac_tdls_vif_stations_count(struct ieee80211_hw *hw,
|
|
static void ath10k_mac_tdls_vifs_count_iter(void *data, u8 *mac,
|
|
static void ath10k_mac_tdls_vifs_count_iter(void *data, u8 *mac,
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
int *num_tdls_vifs = data;
|
|
int *num_tdls_vifs = data;
|
|
|
|
|
|
if (vif->type != NL80211_IFTYPE_STATION)
|
|
if (vif->type != NL80211_IFTYPE_STATION)
|
|
@@ -5992,7 +5992,7 @@ static int ath10k_sta_state(struct ieee80211_hw *hw,
|
|
enum ieee80211_sta_state new_state)
|
|
enum ieee80211_sta_state new_state)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv;
|
|
struct ath10k_sta *arsta = (struct ath10k_sta *)sta->drv_priv;
|
|
struct ath10k_peer *peer;
|
|
struct ath10k_peer *peer;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
@@ -6227,7 +6227,7 @@ exit:
|
|
static int ath10k_conf_tx_uapsd(struct ath10k *ar, struct ieee80211_vif *vif,
|
|
static int ath10k_conf_tx_uapsd(struct ath10k *ar, struct ieee80211_vif *vif,
|
|
u16 ac, bool enable)
|
|
u16 ac, bool enable)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct wmi_sta_uapsd_auto_trig_arg arg = {};
|
|
struct wmi_sta_uapsd_auto_trig_arg arg = {};
|
|
u32 prio = 0, acc = 0;
|
|
u32 prio = 0, acc = 0;
|
|
u32 value = 0;
|
|
u32 value = 0;
|
|
@@ -6335,7 +6335,7 @@ static int ath10k_conf_tx(struct ieee80211_hw *hw,
|
|
const struct ieee80211_tx_queue_params *params)
|
|
const struct ieee80211_tx_queue_params *params)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct wmi_wmm_params_arg *p = NULL;
|
|
struct wmi_wmm_params_arg *p = NULL;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -6409,7 +6409,7 @@ static int ath10k_remain_on_channel(struct ieee80211_hw *hw,
|
|
enum ieee80211_roc_type type)
|
|
enum ieee80211_roc_type type)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct wmi_start_scan_arg arg;
|
|
struct wmi_start_scan_arg arg;
|
|
int ret = 0;
|
|
int ret = 0;
|
|
u32 scan_time_msec;
|
|
u32 scan_time_msec;
|
|
@@ -6909,7 +6909,7 @@ static int ath10k_mac_op_set_bitrate_mask(struct ieee80211_hw *hw,
|
|
struct ieee80211_vif *vif,
|
|
struct ieee80211_vif *vif,
|
|
const struct cfg80211_bitrate_mask *mask)
|
|
const struct cfg80211_bitrate_mask *mask)
|
|
{
|
|
{
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct cfg80211_chan_def def;
|
|
struct cfg80211_chan_def def;
|
|
struct ath10k *ar = arvif->ar;
|
|
struct ath10k *ar = arvif->ar;
|
|
enum nl80211_band band;
|
|
enum nl80211_band band;
|
|
@@ -7060,7 +7060,7 @@ static void ath10k_offset_tsf(struct ieee80211_hw *hw,
|
|
struct ieee80211_vif *vif, s64 tsf_offset)
|
|
struct ieee80211_vif *vif, s64 tsf_offset)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
u32 offset, vdev_param;
|
|
u32 offset, vdev_param;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
@@ -7085,7 +7085,7 @@ static int ath10k_ampdu_action(struct ieee80211_hw *hw,
|
|
struct ieee80211_ampdu_params *params)
|
|
struct ieee80211_ampdu_params *params)
|
|
{
|
|
{
|
|
struct ath10k *ar = hw->priv;
|
|
struct ath10k *ar = hw->priv;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
struct ieee80211_sta *sta = params->sta;
|
|
struct ieee80211_sta *sta = params->sta;
|
|
enum ieee80211_ampdu_mlme_action action = params->action;
|
|
enum ieee80211_ampdu_mlme_action action = params->action;
|
|
u16 tid = params->tid;
|
|
u16 tid = params->tid;
|
|
@@ -7183,7 +7183,7 @@ ath10k_mac_update_vif_chan(struct ath10k *ar,
|
|
ath10k_monitor_stop(ar);
|
|
ath10k_monitor_stop(ar);
|
|
|
|
|
|
for (i = 0; i < n_vifs; i++) {
|
|
for (i = 0; i < n_vifs; i++) {
|
|
- arvif = ath10k_vif_to_arvif(vifs[i].vif);
|
|
|
|
|
|
+ arvif = (void *)vifs[i].vif->drv_priv;
|
|
|
|
|
|
ath10k_dbg(ar, ATH10K_DBG_MAC,
|
|
ath10k_dbg(ar, ATH10K_DBG_MAC,
|
|
"mac chanctx switch vdev_id %i freq %hu->%hu width %d->%d\n",
|
|
"mac chanctx switch vdev_id %i freq %hu->%hu width %d->%d\n",
|
|
@@ -7216,7 +7216,7 @@ ath10k_mac_update_vif_chan(struct ath10k *ar,
|
|
spin_unlock_bh(&ar->data_lock);
|
|
spin_unlock_bh(&ar->data_lock);
|
|
|
|
|
|
for (i = 0; i < n_vifs; i++) {
|
|
for (i = 0; i < n_vifs; i++) {
|
|
- arvif = ath10k_vif_to_arvif(vifs[i].vif);
|
|
|
|
|
|
+ arvif = (void *)vifs[i].vif->drv_priv;
|
|
|
|
|
|
if (WARN_ON(!arvif->is_started))
|
|
if (WARN_ON(!arvif->is_started))
|
|
continue;
|
|
continue;
|
|
@@ -7873,7 +7873,7 @@ static void ath10k_get_arvif_iter(void *data, u8 *mac,
|
|
struct ieee80211_vif *vif)
|
|
struct ieee80211_vif *vif)
|
|
{
|
|
{
|
|
struct ath10k_vif_iter *arvif_iter = data;
|
|
struct ath10k_vif_iter *arvif_iter = data;
|
|
- struct ath10k_vif *arvif = ath10k_vif_to_arvif(vif);
|
|
|
|
|
|
+ struct ath10k_vif *arvif = (void *)vif->drv_priv;
|
|
|
|
|
|
if (arvif->vdev_id == arvif_iter->vdev_id)
|
|
if (arvif->vdev_id == arvif_iter->vdev_id)
|
|
arvif_iter->arvif = arvif;
|
|
arvif_iter->arvif = arvif;
|