ath9k: Remove TIM from the interrupt mask
PATCH 11/17 ath9k: Remove TIM from the interrupt mask
We never handle TIM, TIM_TIMER is used instead. Remove this and the unnecessary swBeaconProcess variable.
--- drivers/net/wireless/ath9k/ath9k.h | 1 - drivers/net/wireless/ath9k/main.c | 14 -------------- 2 files changed, 0 insertions(+), 15 deletions(-)
drivers/net/wireless/ath9k/ath9k.h +0 -1
@@ -70,7 +70,6 @@ struct ath_config {u32 ath_aggr_prot;u16 txpowlimit;u8 cabqReadytime; -u8 swBeaconProcess; };/*************************/
drivers/net/wireless/ath9k/main.c +0 -14
@@ -1543,9 +1543,6 @@ static int ath_init(u16 devid, struct ath_softc *sc) sc->beacon.bslot_aphy[i] =NULL ; } -/* save MISC configurations */ - sc->config.swBeaconProcess =1 ; -/* setup channels and rates */ sc->sbands[IEEE80211_BAND_2GHZ ].channels = ath9k_2ghz_chantable;
@@ -2254,17 +2251,6 @@ static int ath9k_add_interface(struct ieee80211_hw *hw, sc->imask |=ATH9K_INT_TSFOOR ; } -/* -* Some hardware processes the TIM IE and fires an -* interrupt when the TIM bit is set. For hardware -* that does, if not overridden by configuration, -* enable the TIM interrupt when operating as station. -*/ -if ((sc->sc_ah->caps.hw_caps &ATH9K_HW_CAP_ENHANCEDPM ) && - (conf->type ==NL80211_IFTYPE_STATION ) && - !sc->config.swBeaconProcess) - sc->imask |=ATH9K_INT_TIM ; -ath9k_hw_set_interrupts (sc->sc_ah, sc->imask);if (conf->type ==NL80211_IFTYPE_AP ) {
Signature · 1 line
1.6.2.1
drivers/net/wireless/ath9k/main.c static int ath9k_add_interface(struct ieee80211_hw *hw, · line 2262
Quoted 6 lines · Sujith
drivers/net/wireless/ath9k/main.c +0
-6-/* -* Some hardware processes the TIM IE and fires an -* interrupt when the TIM bit is set. For hardware -* that does, if not overridden by configuration, -* enable the TIM interrupt when operating as station. -*/
This might be useful for beacon filtering. Does the hardware know to parse the beacons in more detail, for example ERP protection or WMM settings?
Signature · 1 line
Kalle Valo
Quoted 9 lines · Kalle Valo
Quoted 6 lines · Sujith
- =A0 =A0 /*
- =A0 =A0 =A0* Some hardware processes the TIM IE and fires an
- =A0 =A0 =A0* interrupt when the TIM bit is set. =A0For hardware
- =A0 =A0 =A0* that does, if not overridden by configuration,
- =A0 =A0 =A0* enable the TIM interrupt when operating as station.
- =A0 =A0 =A0*/
Quoted 3 lines
This might be useful for beacon filtering. Does the hardware know to parse the beacons in more detail, for example ERP protection or WMM settings?
After a quick glance into the datasheet, I understand that the current = version
of hardware supports reading TIM, TSF and some more bits related to D= TIM
from a beacon.
As far as this patch is concerned, since ath9k can use mac80211 for sen= ding
a null data frame, it is quite redundant to enable the TIM interrupt as it can be
parsed in mac80211 itself.
Vivek.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles= s" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Vivek Natarajan
Quoted 3 lines
This might be useful for beacon filtering. Does the hardware know to parse the beacons in more detail, for example ERP protection or WMM settings?
After a quick glance into the datasheet, I understand that the current version of hardware supports reading TIM, TSF and some more bits related to DTIM from a beacon.
Is the datasheet available somewhere?
Quoted 3 lines
As far as this patch is concerned, since ath9k can use mac80211 for sending a null data frame, it is quite redundant to enable the TIM interrupt as it can be parsed in mac80211 itself.
Sure. But I was thinking the possibility of having beacon filtering in ath9k and then mac80211 wouldn't receive the beacons.
Signature · 1 line
Kalle Valo
Quoted 11 lines · Kalle Valo
Quoted 7 lines · Vivek Natarajan
Quoted 3 lines
This might be useful for beacon filtering. Does the hardware know to parse the beacons in more detail, for example ERP protection or WMM settings?
After a quick glance into the datasheet, I understand that the current version of hardware supports reading TIM, TSF and some more bits related to DTIM from a beacon.
Is the datasheet available somewhere?
Sorry, the datasheets are not available outside. :)
Quoted 6 lines
Quoted 3 lines
As far as this patch is concerned, since ath9k can use mac80211 for sending a null data frame, it is quite redundant to enable the TIM interrupt as it can be parsed in mac80211 itself.
Sure. But I was thinking the possibility of having beacon filtering in ath9k and then mac80211 wouldn't receive the beacons.
Atheros HW can't currently support beacon filtering, so there is no need to handle TIM interrupt anyway.
Sujith