Commit a099874e authored by Oleksij Rempel's avatar Oleksij Rempel Committed by John W. Linville

ath9k_htc: move beaconq to struct htc_beacon

Signed-off-by: default avatarOleksij Rempel <linux@rempel-privat.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3c4816d9
...@@ -409,6 +409,7 @@ static inline void ath9k_htc_err_stat_rx(struct ath9k_htc_priv *priv, ...@@ -409,6 +409,7 @@ static inline void ath9k_htc_err_stat_rx(struct ath9k_htc_priv *priv,
struct htc_beacon { struct htc_beacon {
struct ieee80211_vif *bslot[ATH9K_HTC_MAX_BCN_VIF]; struct ieee80211_vif *bslot[ATH9K_HTC_MAX_BCN_VIF];
u32 bmisscnt; u32 bmisscnt;
u32 beaconq;
}; };
struct ath_btcoex { struct ath_btcoex {
...@@ -512,7 +513,6 @@ struct ath9k_htc_priv { ...@@ -512,7 +513,6 @@ struct ath9k_htc_priv {
struct work_struct led_work; struct work_struct led_work;
#endif #endif
int beaconq;
int cabq; int cabq;
int hwq_map[IEEE80211_NUM_ACS]; int hwq_map[IEEE80211_NUM_ACS];
......
...@@ -26,7 +26,7 @@ void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv) ...@@ -26,7 +26,7 @@ void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv)
memset(&qi, 0, sizeof(struct ath9k_tx_queue_info)); memset(&qi, 0, sizeof(struct ath9k_tx_queue_info));
memset(&qi_be, 0, sizeof(struct ath9k_tx_queue_info)); memset(&qi_be, 0, sizeof(struct ath9k_tx_queue_info));
ath9k_hw_get_txq_props(ah, priv->beaconq, &qi); ath9k_hw_get_txq_props(ah, priv->beacon.beaconq, &qi);
if (priv->ah->opmode == NL80211_IFTYPE_AP || if (priv->ah->opmode == NL80211_IFTYPE_AP ||
priv->ah->opmode == NL80211_IFTYPE_MESH_POINT) { priv->ah->opmode == NL80211_IFTYPE_MESH_POINT) {
...@@ -54,11 +54,11 @@ void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv) ...@@ -54,11 +54,11 @@ void ath9k_htc_beaconq_config(struct ath9k_htc_priv *priv)
} }
if (!ath9k_hw_set_txq_props(ah, priv->beaconq, &qi)) { if (!ath9k_hw_set_txq_props(ah, priv->beacon.beaconq, &qi)) {
ath_err(ath9k_hw_common(ah), ath_err(ath9k_hw_common(ah),
"Unable to update beacon queue %u!\n", priv->beaconq); "Unable to update beacon queue %u!\n", priv->beacon.beaconq);
} else { } else {
ath9k_hw_resettxqueue(ah, priv->beaconq); ath9k_hw_resettxqueue(ah, priv->beacon.beaconq);
} }
} }
......
...@@ -405,8 +405,8 @@ static int ath9k_init_queues(struct ath9k_htc_priv *priv) ...@@ -405,8 +405,8 @@ static int ath9k_init_queues(struct ath9k_htc_priv *priv)
for (i = 0; i < ARRAY_SIZE(priv->hwq_map); i++) for (i = 0; i < ARRAY_SIZE(priv->hwq_map); i++)
priv->hwq_map[i] = -1; priv->hwq_map[i] = -1;
priv->beaconq = ath9k_hw_beaconq_setup(priv->ah); priv->beacon.beaconq = ath9k_hw_beaconq_setup(priv->ah);
if (priv->beaconq == -1) { if (priv->beacon.beaconq == -1) {
ath_err(common, "Unable to setup BEACON xmit queue\n"); ath_err(common, "Unable to setup BEACON xmit queue\n");
goto err; goto err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment