1 --- a/drivers/net/wireless/ath/ath9k/ath9k.h
2 +++ b/drivers/net/wireless/ath/ath9k/ath9k.h
9 /* Macro to expand scalars to 64-bit objects */
11 @@ -391,7 +390,7 @@ struct ath_beacon {
13 void ath_beacon_tasklet(unsigned long data);
14 void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif);
15 -int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif);
16 +int ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_vif *vif);
17 void ath_beacon_return(struct ath_softc *sc, struct ath_vif *avp);
18 int ath_beaconq_config(struct ath_softc *sc);
20 @@ -611,6 +610,9 @@ struct ath_softc {
21 struct led_classdev led_cdev;
24 + struct ath9k_hw_cal_data caldata;
29 #ifdef CONFIG_ATH9K_DEBUGFS
30 @@ -627,13 +629,6 @@ struct ath_softc {
31 struct pm_qos_request_list pm_qos_req;
35 - struct ath_softc *sc; /* shared for all virtual wiphys */
36 - struct ieee80211_hw *hw;
37 - struct ath9k_hw_cal_data caldata;
41 void ath9k_tasklet(unsigned long data);
42 int ath_reset(struct ath_softc *sc, bool retry_tx);
43 int ath_cabq_update(struct ath_softc *);
44 --- a/drivers/net/wireless/ath/ath9k/ahb.c
45 +++ b/drivers/net/wireless/ath/ath9k/ahb.c
46 @@ -54,7 +54,6 @@ static struct ath_bus_ops ath_ahb_bus_op
47 static int ath_ahb_probe(struct platform_device *pdev)
50 - struct ath_wiphy *aphy;
52 struct ieee80211_hw *hw;
54 @@ -92,8 +91,7 @@ static int ath_ahb_probe(struct platform
58 - hw = ieee80211_alloc_hw(sizeof(struct ath_wiphy) +
59 - sizeof(struct ath_softc), &ath9k_ops);
60 + hw = ieee80211_alloc_hw(sizeof(struct ath_softc), &ath9k_ops);
62 dev_err(&pdev->dev, "no memory for ieee80211_hw\n");
64 @@ -103,10 +101,7 @@ static int ath_ahb_probe(struct platform
65 SET_IEEE80211_DEV(hw, &pdev->dev);
66 platform_set_drvdata(pdev, hw);
69 - sc = (struct ath_softc *) (aphy + 1);
76 @@ -150,8 +145,7 @@ static int ath_ahb_remove(struct platfor
77 struct ieee80211_hw *hw = platform_get_drvdata(pdev);
80 - struct ath_wiphy *aphy = hw->priv;
81 - struct ath_softc *sc = aphy->sc;
82 + struct ath_softc *sc = hw->priv;
83 void __iomem *mem = sc->mem;
85 ath9k_deinit_device(sc);
86 --- a/drivers/net/wireless/ath/ath9k/pci.c
87 +++ b/drivers/net/wireless/ath/ath9k/pci.c
88 @@ -126,7 +126,6 @@ static const struct ath_bus_ops ath_pci_
89 static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
92 - struct ath_wiphy *aphy;
94 struct ieee80211_hw *hw;
96 @@ -198,8 +197,7 @@ static int ath_pci_probe(struct pci_dev
100 - hw = ieee80211_alloc_hw(sizeof(struct ath_wiphy) +
101 - sizeof(struct ath_softc), &ath9k_ops);
102 + hw = ieee80211_alloc_hw(sizeof(struct ath_softc), &ath9k_ops);
104 dev_err(&pdev->dev, "No memory for ieee80211_hw\n");
106 @@ -209,10 +207,7 @@ static int ath_pci_probe(struct pci_dev
107 SET_IEEE80211_DEV(hw, &pdev->dev);
108 pci_set_drvdata(pdev, hw);
111 - sc = (struct ath_softc *) (aphy + 1);
116 sc->dev = &pdev->dev;
118 @@ -259,8 +254,7 @@ err_dma:
119 static void ath_pci_remove(struct pci_dev *pdev)
121 struct ieee80211_hw *hw = pci_get_drvdata(pdev);
122 - struct ath_wiphy *aphy = hw->priv;
123 - struct ath_softc *sc = aphy->sc;
124 + struct ath_softc *sc = hw->priv;
125 void __iomem *mem = sc->mem;
127 if (!is_ath9k_unloaded)
128 @@ -280,8 +274,7 @@ static int ath_pci_suspend(struct device
130 struct pci_dev *pdev = to_pci_dev(device);
131 struct ieee80211_hw *hw = pci_get_drvdata(pdev);
132 - struct ath_wiphy *aphy = hw->priv;
133 - struct ath_softc *sc = aphy->sc;
134 + struct ath_softc *sc = hw->priv;
136 ath9k_hw_set_gpio(sc->sc_ah, sc->sc_ah->led_pin, 1);
138 @@ -292,8 +285,7 @@ static int ath_pci_resume(struct device
140 struct pci_dev *pdev = to_pci_dev(device);
141 struct ieee80211_hw *hw = pci_get_drvdata(pdev);
142 - struct ath_wiphy *aphy = hw->priv;
143 - struct ath_softc *sc = aphy->sc;
144 + struct ath_softc *sc = hw->priv;
148 --- a/drivers/net/wireless/ath/ath9k/beacon.c
149 +++ b/drivers/net/wireless/ath/ath9k/beacon.c
150 @@ -112,8 +112,7 @@ static void ath_beacon_setup(struct ath_
152 static void ath_tx_cabq(struct ieee80211_hw *hw, struct sk_buff *skb)
154 - struct ath_wiphy *aphy = hw->priv;
155 - struct ath_softc *sc = aphy->sc;
156 + struct ath_softc *sc = hw->priv;
157 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
158 struct ath_tx_control txctl;
160 @@ -132,8 +131,7 @@ static void ath_tx_cabq(struct ieee80211
161 static struct ath_buf *ath_beacon_generate(struct ieee80211_hw *hw,
162 struct ieee80211_vif *vif)
164 - struct ath_wiphy *aphy = hw->priv;
165 - struct ath_softc *sc = aphy->sc;
166 + struct ath_softc *sc = hw->priv;
167 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
170 @@ -222,9 +220,8 @@ static struct ath_buf *ath_beacon_genera
174 -int ath_beacon_alloc(struct ath_wiphy *aphy, struct ieee80211_vif *vif)
175 +int ath_beacon_alloc(struct ath_softc *sc, struct ieee80211_vif *vif)
177 - struct ath_softc *sc = aphy->sc;
178 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
181 --- a/drivers/net/wireless/ath/ath9k/gpio.c
182 +++ b/drivers/net/wireless/ath/ath9k/gpio.c
183 @@ -88,8 +88,7 @@ static bool ath_is_rfkill_set(struct ath
185 void ath9k_rfkill_poll_state(struct ieee80211_hw *hw)
187 - struct ath_wiphy *aphy = hw->priv;
188 - struct ath_softc *sc = aphy->sc;
189 + struct ath_softc *sc = hw->priv;
190 bool blocked = !!ath_is_rfkill_set(sc);
192 wiphy_rfkill_set_hw_state(hw->wiphy, blocked);
193 --- a/drivers/net/wireless/ath/ath9k/init.c
194 +++ b/drivers/net/wireless/ath/ath9k/init.c
195 @@ -270,8 +270,7 @@ static int ath9k_reg_notifier(struct wip
196 struct regulatory_request *request)
198 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
199 - struct ath_wiphy *aphy = hw->priv;
200 - struct ath_softc *sc = aphy->sc;
201 + struct ath_softc *sc = hw->priv;
202 struct ath_regulatory *reg = ath9k_hw_regulatory(sc->sc_ah);
204 return ath_reg_notifier_apply(wiphy, request, reg);
205 @@ -724,7 +723,6 @@ int ath9k_init_device(u16 devid, struct
206 const struct ath_bus_ops *bus_ops)
208 struct ieee80211_hw *hw = sc->hw;
209 - struct ath_wiphy *aphy = hw->priv;
210 struct ath_common *common;
213 @@ -786,7 +784,7 @@ int ath9k_init_device(u16 devid, struct
215 INIT_WORK(&sc->hw_check_work, ath_hw_check);
216 INIT_WORK(&sc->paprd_work, ath_paprd_calibrate);
217 - aphy->last_rssi = ATH_RSSI_DUMMY_MARKER;
218 + sc->last_rssi = ATH_RSSI_DUMMY_MARKER;
221 ath_start_rfkill_poll(sc);
222 --- a/drivers/net/wireless/ath/ath9k/main.c
223 +++ b/drivers/net/wireless/ath/ath9k/main.c
224 @@ -215,7 +215,6 @@ static void ath_update_survey_stats(stru
225 int ath_set_channel(struct ath_softc *sc, struct ieee80211_hw *hw,
226 struct ath9k_channel *hchan)
228 - struct ath_wiphy *aphy = hw->priv;
229 struct ath_hw *ah = sc->sc_ah;
230 struct ath_common *common = ath9k_hw_common(ah);
231 struct ieee80211_conf *conf = &common->hw->conf;
232 @@ -262,7 +261,7 @@ int ath_set_channel(struct ath_softc *sc
235 if (!(sc->sc_flags & SC_OP_OFFCHANNEL))
236 - caldata = &aphy->caldata;
237 + caldata = &sc->caldata;
239 ath_dbg(common, ATH_DBG_CONFIG,
240 "(%u MHz) -> (%u MHz), conf_is_ht40: %d fastcc: %d\n",
241 @@ -841,7 +840,6 @@ static void ath9k_bss_assoc_info(struct
242 struct ieee80211_vif *vif,
243 struct ieee80211_bss_conf *bss_conf)
245 - struct ath_wiphy *aphy = hw->priv;
246 struct ath_hw *ah = sc->sc_ah;
247 struct ath_common *common = ath9k_hw_common(ah);
249 @@ -865,7 +863,7 @@ static void ath9k_bss_assoc_info(struct
250 ath_beacon_config(sc, vif);
252 /* Reset rssi stats */
253 - aphy->last_rssi = ATH_RSSI_DUMMY_MARKER;
254 + sc->last_rssi = ATH_RSSI_DUMMY_MARKER;
255 sc->sc_ah->stats.avgbrssi = ATH_RSSI_DUMMY_MARKER;
257 sc->sc_flags |= SC_OP_ANI_RUN;
258 @@ -1062,8 +1060,7 @@ void ath9k_update_ichannel(struct ath_so
260 static int ath9k_start(struct ieee80211_hw *hw)
262 - struct ath_wiphy *aphy = hw->priv;
263 - struct ath_softc *sc = aphy->sc;
264 + struct ath_softc *sc = hw->priv;
265 struct ath_hw *ah = sc->sc_ah;
266 struct ath_common *common = ath9k_hw_common(ah);
267 struct ieee80211_channel *curchan = hw->conf.channel;
268 @@ -1180,8 +1177,7 @@ mutex_unlock:
269 static int ath9k_tx(struct ieee80211_hw *hw,
272 - struct ath_wiphy *aphy = hw->priv;
273 - struct ath_softc *sc = aphy->sc;
274 + struct ath_softc *sc = hw->priv;
275 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
276 struct ath_tx_control txctl;
277 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
278 @@ -1244,8 +1240,7 @@ exit:
280 static void ath9k_stop(struct ieee80211_hw *hw)
282 - struct ath_wiphy *aphy = hw->priv;
283 - struct ath_softc *sc = aphy->sc;
284 + struct ath_softc *sc = hw->priv;
285 struct ath_hw *ah = sc->sc_ah;
286 struct ath_common *common = ath9k_hw_common(ah);
288 @@ -1377,8 +1372,7 @@ void ath9k_calculate_iter_data(struct ie
289 struct ieee80211_vif *vif,
290 struct ath9k_vif_iter_data *iter_data)
292 - struct ath_wiphy *aphy = hw->priv;
293 - struct ath_softc *sc = aphy->sc;
294 + struct ath_softc *sc = hw->priv;
295 struct ath_hw *ah = sc->sc_ah;
296 struct ath_common *common = ath9k_hw_common(ah);
298 @@ -1402,8 +1396,7 @@ void ath9k_calculate_iter_data(struct ie
299 static void ath9k_calculate_summary_state(struct ieee80211_hw *hw,
300 struct ieee80211_vif *vif)
302 - struct ath_wiphy *aphy = hw->priv;
303 - struct ath_softc *sc = aphy->sc;
304 + struct ath_softc *sc = hw->priv;
305 struct ath_hw *ah = sc->sc_ah;
306 struct ath_common *common = ath9k_hw_common(ah);
307 struct ath9k_vif_iter_data iter_data;
308 @@ -1459,8 +1452,7 @@ static void ath9k_calculate_summary_stat
309 static void ath9k_do_vif_add_setup(struct ieee80211_hw *hw,
310 struct ieee80211_vif *vif)
312 - struct ath_wiphy *aphy = hw->priv;
313 - struct ath_softc *sc = aphy->sc;
314 + struct ath_softc *sc = hw->priv;
316 ath9k_calculate_summary_state(hw, vif);
318 @@ -1473,7 +1465,7 @@ static void ath9k_do_vif_add_setup(struc
319 * in the info_changed method and set up beacons properly
322 - error = ath_beacon_alloc(aphy, vif);
323 + error = ath_beacon_alloc(sc, vif);
325 ath9k_reclaim_beacon(sc, vif);
327 @@ -1485,8 +1477,7 @@ static void ath9k_do_vif_add_setup(struc
328 static int ath9k_add_interface(struct ieee80211_hw *hw,
329 struct ieee80211_vif *vif)
331 - struct ath_wiphy *aphy = hw->priv;
332 - struct ath_softc *sc = aphy->sc;
333 + struct ath_softc *sc = hw->priv;
334 struct ath_hw *ah = sc->sc_ah;
335 struct ath_common *common = ath9k_hw_common(ah);
336 struct ath_vif *avp = (void *)vif->drv_priv;
337 @@ -1546,8 +1537,7 @@ static int ath9k_change_interface(struct
338 enum nl80211_iftype new_type,
341 - struct ath_wiphy *aphy = hw->priv;
342 - struct ath_softc *sc = aphy->sc;
343 + struct ath_softc *sc = hw->priv;
344 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
347 @@ -1589,8 +1579,7 @@ out:
348 static void ath9k_remove_interface(struct ieee80211_hw *hw,
349 struct ieee80211_vif *vif)
351 - struct ath_wiphy *aphy = hw->priv;
352 - struct ath_softc *sc = aphy->sc;
353 + struct ath_softc *sc = hw->priv;
354 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
356 ath_dbg(common, ATH_DBG_CONFIG, "Detach Interface\n");
357 @@ -1644,8 +1633,7 @@ static void ath9k_disable_ps(struct ath_
359 static int ath9k_config(struct ieee80211_hw *hw, u32 changed)
361 - struct ath_wiphy *aphy = hw->priv;
362 - struct ath_softc *sc = aphy->sc;
363 + struct ath_softc *sc = hw->priv;
364 struct ath_hw *ah = sc->sc_ah;
365 struct ath_common *common = ath9k_hw_common(ah);
366 struct ieee80211_conf *conf = &hw->conf;
367 @@ -1789,8 +1777,7 @@ static void ath9k_configure_filter(struc
368 unsigned int *total_flags,
371 - struct ath_wiphy *aphy = hw->priv;
372 - struct ath_softc *sc = aphy->sc;
373 + struct ath_softc *sc = hw->priv;
376 changed_flags &= SUPPORTED_FILTERS;
377 @@ -1810,8 +1797,7 @@ static int ath9k_sta_add(struct ieee8021
378 struct ieee80211_vif *vif,
379 struct ieee80211_sta *sta)
381 - struct ath_wiphy *aphy = hw->priv;
382 - struct ath_softc *sc = aphy->sc;
383 + struct ath_softc *sc = hw->priv;
385 ath_node_attach(sc, sta);
387 @@ -1822,8 +1808,7 @@ static int ath9k_sta_remove(struct ieee8
388 struct ieee80211_vif *vif,
389 struct ieee80211_sta *sta)
391 - struct ath_wiphy *aphy = hw->priv;
392 - struct ath_softc *sc = aphy->sc;
393 + struct ath_softc *sc = hw->priv;
395 ath_node_detach(sc, sta);
397 @@ -1833,8 +1818,7 @@ static int ath9k_sta_remove(struct ieee8
398 static int ath9k_conf_tx(struct ieee80211_hw *hw, u16 queue,
399 const struct ieee80211_tx_queue_params *params)
401 - struct ath_wiphy *aphy = hw->priv;
402 - struct ath_softc *sc = aphy->sc;
403 + struct ath_softc *sc = hw->priv;
404 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
406 struct ath9k_tx_queue_info qi;
407 @@ -1878,8 +1862,7 @@ static int ath9k_set_key(struct ieee8021
408 struct ieee80211_sta *sta,
409 struct ieee80211_key_conf *key)
411 - struct ath_wiphy *aphy = hw->priv;
412 - struct ath_softc *sc = aphy->sc;
413 + struct ath_softc *sc = hw->priv;
414 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
417 @@ -1923,8 +1906,7 @@ static void ath9k_bss_info_changed(struc
418 struct ieee80211_bss_conf *bss_conf,
421 - struct ath_wiphy *aphy = hw->priv;
422 - struct ath_softc *sc = aphy->sc;
423 + struct ath_softc *sc = hw->priv;
424 struct ath_hw *ah = sc->sc_ah;
425 struct ath_common *common = ath9k_hw_common(ah);
426 struct ath_vif *avp = (void *)vif->drv_priv;
427 @@ -1954,7 +1936,7 @@ static void ath9k_bss_info_changed(struc
428 if ((changed & BSS_CHANGED_BEACON) ||
429 ((changed & BSS_CHANGED_BEACON_ENABLED) && bss_conf->enable_beacon)) {
430 ath9k_hw_stoptxdma(sc->sc_ah, sc->beacon.beaconq);
431 - error = ath_beacon_alloc(aphy, vif);
432 + error = ath_beacon_alloc(sc, vif);
434 ath_beacon_config(sc, vif);
436 @@ -1991,7 +1973,7 @@ static void ath9k_bss_info_changed(struc
437 if (vif->type == NL80211_IFTYPE_AP) {
438 sc->sc_flags |= SC_OP_TSF_RESET;
439 ath9k_hw_stoptxdma(sc->sc_ah, sc->beacon.beaconq);
440 - error = ath_beacon_alloc(aphy, vif);
441 + error = ath_beacon_alloc(sc, vif);
443 ath_beacon_config(sc, vif);
445 @@ -2029,9 +2011,8 @@ static void ath9k_bss_info_changed(struc
447 static u64 ath9k_get_tsf(struct ieee80211_hw *hw)
449 + struct ath_softc *sc = hw->priv;
451 - struct ath_wiphy *aphy = hw->priv;
452 - struct ath_softc *sc = aphy->sc;
454 mutex_lock(&sc->mutex);
456 @@ -2044,8 +2025,7 @@ static u64 ath9k_get_tsf(struct ieee8021
458 static void ath9k_set_tsf(struct ieee80211_hw *hw, u64 tsf)
460 - struct ath_wiphy *aphy = hw->priv;
461 - struct ath_softc *sc = aphy->sc;
462 + struct ath_softc *sc = hw->priv;
464 mutex_lock(&sc->mutex);
466 @@ -2056,8 +2036,7 @@ static void ath9k_set_tsf(struct ieee802
468 static void ath9k_reset_tsf(struct ieee80211_hw *hw)
470 - struct ath_wiphy *aphy = hw->priv;
471 - struct ath_softc *sc = aphy->sc;
472 + struct ath_softc *sc = hw->priv;
474 mutex_lock(&sc->mutex);
476 @@ -2074,8 +2053,7 @@ static int ath9k_ampdu_action(struct iee
477 struct ieee80211_sta *sta,
478 u16 tid, u16 *ssn, u8 buf_size)
480 - struct ath_wiphy *aphy = hw->priv;
481 - struct ath_softc *sc = aphy->sc;
482 + struct ath_softc *sc = hw->priv;
486 @@ -2120,8 +2098,7 @@ static int ath9k_ampdu_action(struct iee
487 static int ath9k_get_survey(struct ieee80211_hw *hw, int idx,
488 struct survey_info *survey)
490 - struct ath_wiphy *aphy = hw->priv;
491 - struct ath_softc *sc = aphy->sc;
492 + struct ath_softc *sc = hw->priv;
493 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
494 struct ieee80211_supported_band *sband;
495 struct ieee80211_channel *chan;
496 @@ -2157,8 +2134,7 @@ static int ath9k_get_survey(struct ieee8
498 static void ath9k_set_coverage_class(struct ieee80211_hw *hw, u8 coverage_class)
500 - struct ath_wiphy *aphy = hw->priv;
501 - struct ath_softc *sc = aphy->sc;
502 + struct ath_softc *sc = hw->priv;
503 struct ath_hw *ah = sc->sc_ah;
505 mutex_lock(&sc->mutex);
506 --- a/drivers/net/wireless/ath/ath9k/rc.c
507 +++ b/drivers/net/wireless/ath/ath9k/rc.c
508 @@ -1560,8 +1560,7 @@ static void ath_rate_add_sta_debugfs(voi
510 static void *ath_rate_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir)
512 - struct ath_wiphy *aphy = hw->priv;
517 static void ath_rate_free(void *priv)
518 --- a/drivers/net/wireless/ath/ath9k/recv.c
519 +++ b/drivers/net/wireless/ath/ath9k/recv.c
520 @@ -927,7 +927,7 @@ static void ath9k_process_rssi(struct at
521 struct ieee80211_hdr *hdr,
522 struct ath_rx_status *rx_stats)
524 - struct ath_wiphy *aphy = hw->priv;
525 + struct ath_softc *sc = hw->priv;
526 struct ath_hw *ah = common->ah;
529 @@ -947,9 +947,9 @@ static void ath9k_process_rssi(struct at
532 if (rx_stats->rs_rssi != ATH9K_RSSI_BAD && !rx_stats->rs_moreaggr)
533 - ATH_RSSI_LPF(aphy->last_rssi, rx_stats->rs_rssi);
534 + ATH_RSSI_LPF(sc->last_rssi, rx_stats->rs_rssi);
536 - last_rssi = aphy->last_rssi;
537 + last_rssi = sc->last_rssi;
538 if (likely(last_rssi != ATH_RSSI_DUMMY_MARKER))
539 rx_stats->rs_rssi = ATH_EP_RND(last_rssi,
540 ATH_RSSI_EP_MULTIPLIER);
541 --- a/drivers/net/wireless/ath/ath9k/xmit.c
542 +++ b/drivers/net/wireless/ath/ath9k/xmit.c
543 @@ -1440,8 +1440,7 @@ static enum ath9k_pkt_type get_hw_packet
544 static void setup_frame_info(struct ieee80211_hw *hw, struct sk_buff *skb,
547 - struct ath_wiphy *aphy = hw->priv;
548 - struct ath_softc *sc = aphy->sc;
549 + struct ath_softc *sc = hw->priv;
550 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
551 struct ieee80211_sta *sta = tx_info->control.sta;
552 struct ieee80211_key_conf *hw_key = tx_info->control.hw_key;
553 @@ -1659,8 +1658,7 @@ static struct ath_buf *ath_tx_setup_buff
557 - struct ath_wiphy *aphy = hw->priv;
558 - struct ath_softc *sc = aphy->sc;
559 + struct ath_softc *sc = hw->priv;
560 struct ath_hw *ah = sc->sc_ah;
561 struct ath_common *common = ath9k_hw_common(sc->sc_ah);
562 struct ath_frame_info *fi = get_frame_info(skb);
563 @@ -1761,8 +1759,7 @@ int ath_tx_start(struct ieee80211_hw *hw
564 struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
565 struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
566 struct ieee80211_sta *sta = info->control.sta;
567 - struct ath_wiphy *aphy = hw->priv;
568 - struct ath_softc *sc = aphy->sc;
569 + struct ath_softc *sc = hw->priv;
570 struct ath_txq *txq = txctl->txq;