Skip to contentSkip to conversation

ath9k: Reduce max roc duration

PATCH In review Sujith Manoharan 2 participants 3 messages Oct 15, 2014 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath9k: Reduce max roc duration

From: Sujith Manoharan <[email protected]>

MCC is currently used in CUS227, an Allplay device. Since audio streaming will be affected with long offchannel periods, reduce the max. offchannel duration to 200ms.

---
 drivers/net/wireless/ath/ath9k/init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath9k/init.c +1 -1
index 156a944..8857d9c 100644
@@ -789,7 +789,7 @@ static void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
 		hw->wiphy->n_iface_combinations = ARRAY_SIZE(if_comb_multi);
 		hw->wiphy->max_scan_ssids = 255;
 		hw->wiphy->max_scan_ie_len = IEEE80211_MAX_DATA_LEN;
-		hw->wiphy->max_remain_on_channel_duration = 10000;
+		hw->wiphy->max_remain_on_channel_duration = 200;
 		hw->chanctx_data_size = sizeof(void *);
 		hw->extra_beacon_tailroom =
 			sizeof(struct ieee80211_p2p_noa_attr) + 9;
Signature · 1 line
2.1.2
#1 lore raw

drivers/net/wireless/ath/ath9k/init.c static void ath9k_set_hw_capab(struct ath_softc *sc, · line 790

Quoted 10 lines · Sujith Manoharan

MCC is currently used in CUS227, an Allplay device. Since audio streaming will be affected with long offchannel periods, reduce the max. offchannel duration to 200ms.

drivers/net/wireless/ath/ath9k/init.c +1 -1
@@ -789,7 +789,7 @@ static void ath9k_set_hw_capab(struct ath_softc *sc,
 struct ieee80211_hw *hw)
-		hw->wiphy->max_remain_on_channel_duration = 10000;
+		hw->wiphy->max_remain_on_channel_duration = 200;

This looks like a bad idea as the default value. Wouldn't this break a lot of use cases where longer wait is needed? Please keep in mind that remain-on-channel is used for non-P2P use cases as well and there are known P2P devices that won't be able to reply in 200 ms to messages in many cases. I would not reduce this value below 1000 ms and really, if there is need to reduce remain-on-channel operations while there is a concurrent connection, that should be done dynamically at runtime, e.g., in wpa_supplicant, rather than the driver hardcoding a very small maximum value.

- Jouni

#2 lore raw

John,

Please drop this patch.

Sujith

Quoted 27 lines · Jouni

drivers/net/wireless/ath/ath9k/init.c static void ath9k_set_hw_capab(struct ath_softc *sc, · line 790

Quoted 10 lines · Sujith Manoharan

MCC is currently used in CUS227, an Allplay device. Since audio streaming will be affected with long offchannel periods, reduce the max. offchannel duration to 200ms.

drivers/net/wireless/ath/ath9k/init.c +1 -1
@@ -789,7 +789,7 @@ static void ath9k_set_hw_capab(struct ath_softc *sc,
 struct ieee80211_hw *hw)
-		hw->wiphy->max_remain_on_channel_duration = 10000;
+		hw->wiphy->max_remain_on_channel_duration = 200;

This looks like a bad idea as the default value. Wouldn't this break a lot of use cases where longer wait is needed? Please keep in mind that remain-on-channel is used for non-P2P use cases as well and there are known P2P devices that won't be able to reply in 200 ms to messages in many cases. I would not reduce this value below 1000 ms and really, if there is need to reduce remain-on-channel operations while there is a concurrent connection, that should be done dynamically at runtime, e.g., in wpa_supplicant, rather than the driver hardcoding a very small maximum value.

- Jouni