diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ath9k.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ath9k.h | 35 |
1 files changed, 7 insertions, 28 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h index b5ac32cfbeb8..44d74495c4de 100644 --- a/drivers/net/wireless/ath/ath9k/ath9k.h +++ b/drivers/net/wireless/ath/ath9k/ath9k.h | |||
@@ -30,7 +30,6 @@ | |||
30 | #include "spectral.h" | 30 | #include "spectral.h" |
31 | 31 | ||
32 | struct ath_node; | 32 | struct ath_node; |
33 | struct ath_rate_table; | ||
34 | 33 | ||
35 | extern struct ieee80211_ops ath9k_ops; | 34 | extern struct ieee80211_ops ath9k_ops; |
36 | extern int ath9k_modparam_nohwcrypt; | 35 | extern int ath9k_modparam_nohwcrypt; |
@@ -150,6 +149,11 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd, | |||
150 | #define IS_CCK_RATE(rate) ((rate >= 0x18) && (rate <= 0x1e)) | 149 | #define IS_CCK_RATE(rate) ((rate >= 0x18) && (rate <= 0x1e)) |
151 | #define IS_OFDM_RATE(rate) ((rate >= 0x8) && (rate <= 0xf)) | 150 | #define IS_OFDM_RATE(rate) ((rate >= 0x8) && (rate <= 0xf)) |
152 | 151 | ||
152 | enum { | ||
153 | WLAN_RC_PHY_OFDM, | ||
154 | WLAN_RC_PHY_CCK, | ||
155 | }; | ||
156 | |||
153 | struct ath_txq { | 157 | struct ath_txq { |
154 | int mac80211_qnum; /* mac80211 queue number, -1 means not mac80211 Q */ | 158 | int mac80211_qnum; /* mac80211 queue number, -1 means not mac80211 Q */ |
155 | u32 axq_qnum; /* ath9k hardware queue number */ | 159 | u32 axq_qnum; /* ath9k hardware queue number */ |
@@ -399,21 +403,10 @@ void ath9k_calculate_iter_data(struct ieee80211_hw *hw, | |||
399 | #define ATH_BCBUF 8 | 403 | #define ATH_BCBUF 8 |
400 | #define ATH_DEFAULT_BINTVAL 100 /* TU */ | 404 | #define ATH_DEFAULT_BINTVAL 100 /* TU */ |
401 | #define ATH_DEFAULT_BMISS_LIMIT 10 | 405 | #define ATH_DEFAULT_BMISS_LIMIT 10 |
402 | #define IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024) | ||
403 | 406 | ||
404 | #define TSF_TO_TU(_h,_l) \ | 407 | #define TSF_TO_TU(_h,_l) \ |
405 | ((((u32)(_h)) << 22) | (((u32)(_l)) >> 10)) | 408 | ((((u32)(_h)) << 22) | (((u32)(_l)) >> 10)) |
406 | 409 | ||
407 | struct ath_beacon_config { | ||
408 | int beacon_interval; | ||
409 | u16 listen_interval; | ||
410 | u16 dtim_period; | ||
411 | u16 bmiss_timeout; | ||
412 | u8 dtim_count; | ||
413 | bool enable_beacon; | ||
414 | bool ibss_creator; | ||
415 | }; | ||
416 | |||
417 | struct ath_beacon { | 410 | struct ath_beacon { |
418 | enum { | 411 | enum { |
419 | OK, /* no change needed */ | 412 | OK, /* no change needed */ |
@@ -423,11 +416,9 @@ struct ath_beacon { | |||
423 | 416 | ||
424 | u32 beaconq; | 417 | u32 beaconq; |
425 | u32 bmisscnt; | 418 | u32 bmisscnt; |
426 | u32 bc_tstamp; | ||
427 | struct ieee80211_vif *bslot[ATH_BCBUF]; | 419 | struct ieee80211_vif *bslot[ATH_BCBUF]; |
428 | int slottime; | 420 | int slottime; |
429 | int slotupdate; | 421 | int slotupdate; |
430 | struct ath9k_tx_queue_info beacon_qi; | ||
431 | struct ath_descdma bdma; | 422 | struct ath_descdma bdma; |
432 | struct ath_txq *cabq; | 423 | struct ath_txq *cabq; |
433 | struct list_head bbuf; | 424 | struct list_head bbuf; |
@@ -442,7 +433,8 @@ void ath9k_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif, | |||
442 | void ath9k_beacon_assign_slot(struct ath_softc *sc, struct ieee80211_vif *vif); | 433 | void ath9k_beacon_assign_slot(struct ath_softc *sc, struct ieee80211_vif *vif); |
443 | void ath9k_beacon_remove_slot(struct ath_softc *sc, struct ieee80211_vif *vif); | 434 | void ath9k_beacon_remove_slot(struct ath_softc *sc, struct ieee80211_vif *vif); |
444 | void ath9k_set_beacon(struct ath_softc *sc); | 435 | void ath9k_set_beacon(struct ath_softc *sc); |
445 | bool ath9k_csa_is_finished(struct ath_softc *sc); | 436 | bool ath9k_csa_is_finished(struct ath_softc *sc, struct ieee80211_vif *vif); |
437 | void ath9k_csa_update(struct ath_softc *sc); | ||
446 | 438 | ||
447 | /*******************/ | 439 | /*******************/ |
448 | /* Link Monitoring */ | 440 | /* Link Monitoring */ |
@@ -693,15 +685,6 @@ void ath_ant_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs); | |||
693 | #define ATH_TXPOWER_MAX 100 /* .5 dBm units */ | 685 | #define ATH_TXPOWER_MAX 100 /* .5 dBm units */ |
694 | #define MAX_GTT_CNT 5 | 686 | #define MAX_GTT_CNT 5 |
695 | 687 | ||
696 | enum sc_op_flags { | ||
697 | SC_OP_INVALID, | ||
698 | SC_OP_BEACONS, | ||
699 | SC_OP_ANI_RUN, | ||
700 | SC_OP_PRIM_STA_VIF, | ||
701 | SC_OP_HW_RESET, | ||
702 | SC_OP_SCANNING, | ||
703 | }; | ||
704 | |||
705 | /* Powersave flags */ | 688 | /* Powersave flags */ |
706 | #define PS_WAIT_FOR_BEACON BIT(0) | 689 | #define PS_WAIT_FOR_BEACON BIT(0) |
707 | #define PS_WAIT_FOR_CAB BIT(1) | 690 | #define PS_WAIT_FOR_CAB BIT(1) |
@@ -731,7 +714,6 @@ struct ath_softc { | |||
731 | struct completion paprd_complete; | 714 | struct completion paprd_complete; |
732 | wait_queue_head_t tx_wait; | 715 | wait_queue_head_t tx_wait; |
733 | 716 | ||
734 | unsigned long sc_flags; | ||
735 | unsigned long driver_data; | 717 | unsigned long driver_data; |
736 | 718 | ||
737 | u8 gtt_cnt; | 719 | u8 gtt_cnt; |
@@ -748,7 +730,6 @@ struct ath_softc { | |||
748 | struct ath_rx rx; | 730 | struct ath_rx rx; |
749 | struct ath_tx tx; | 731 | struct ath_tx tx; |
750 | struct ath_beacon beacon; | 732 | struct ath_beacon beacon; |
751 | struct ieee80211_supported_band sbands[IEEE80211_NUM_BANDS]; | ||
752 | 733 | ||
753 | #ifdef CONFIG_MAC80211_LEDS | 734 | #ifdef CONFIG_MAC80211_LEDS |
754 | bool led_registered; | 735 | bool led_registered; |
@@ -757,7 +738,6 @@ struct ath_softc { | |||
757 | #endif | 738 | #endif |
758 | 739 | ||
759 | struct ath9k_hw_cal_data caldata; | 740 | struct ath9k_hw_cal_data caldata; |
760 | int last_rssi; | ||
761 | 741 | ||
762 | #ifdef CONFIG_ATH9K_DEBUGFS | 742 | #ifdef CONFIG_ATH9K_DEBUGFS |
763 | struct ath9k_debug debug; | 743 | struct ath9k_debug debug; |
@@ -774,7 +754,6 @@ struct ath_softc { | |||
774 | #endif | 754 | #endif |
775 | 755 | ||
776 | struct ath_descdma txsdma; | 756 | struct ath_descdma txsdma; |
777 | struct ieee80211_vif *csa_vif; | ||
778 | 757 | ||
779 | struct ath_ant_comb ant_comb; | 758 | struct ath_ant_comb ant_comb; |
780 | u8 ant_tx, ant_rx; | 759 | u8 ant_tx, ant_rx; |