ath9k: enable u-apsd support
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39685
This commit is contained in:
parent
b44e9bff9d
commit
fc0a51c2e1
5 changed files with 27 additions and 5 deletions
|
@ -1,3 +1,15 @@
|
||||||
|
commit 6514c93afede55284e2cb63359aadedb85884c80
|
||||||
|
Author: Jouni Malinen <jouni@qca.qualcomm.com>
|
||||||
|
Date: Tue Feb 18 20:41:08 2014 +0200
|
||||||
|
|
||||||
|
ath9k: Enable U-APSD AP mode support
|
||||||
|
|
||||||
|
mac80211 handles the actual operations, so ath9k can just indicate
|
||||||
|
support for this. Based on initial tests, this combination seems to
|
||||||
|
work fine.
|
||||||
|
|
||||||
|
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
|
||||||
|
|
||||||
commit a63caf0a357ad5c1f08d6b7827dc76c451445017
|
commit a63caf0a357ad5c1f08d6b7827dc76c451445017
|
||||||
Author: Stanislaw Gruszka <sgruszka@redhat.com>
|
Author: Stanislaw Gruszka <sgruszka@redhat.com>
|
||||||
Date: Wed Feb 19 13:15:17 2014 +0100
|
Date: Wed Feb 19 13:15:17 2014 +0100
|
||||||
|
@ -2794,3 +2806,13 @@ Date: Thu Jan 23 20:06:34 2014 +0100
|
||||||
buffered = ath_tid_has_buffered(tid);
|
buffered = ath_tid_has_buffered(tid);
|
||||||
|
|
||||||
tid->sched = false;
|
tid->sched = false;
|
||||||
|
--- a/drivers/net/wireless/ath/ath9k/init.c
|
||||||
|
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
||||||
|
@@ -943,6 +943,7 @@ static void ath9k_set_hw_capab(struct at
|
||||||
|
hw->wiphy->flags |= WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL;
|
||||||
|
hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_5_10_MHZ;
|
||||||
|
hw->wiphy->flags |= WIPHY_FLAG_HAS_CHANNEL_SWITCH;
|
||||||
|
+ hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
|
||||||
|
|
||||||
|
hw->queues = 4;
|
||||||
|
hw->max_rates = 4;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/drivers/net/wireless/ath/ath9k/init.c
|
--- a/drivers/net/wireless/ath/ath9k/init.c
|
||||||
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
||||||
@@ -1111,23 +1111,23 @@ static int __init ath9k_init(void)
|
@@ -1112,23 +1112,23 @@ static int __init ath9k_init(void)
|
||||||
goto err_out;
|
goto err_out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -162,7 +162,7 @@
|
||||||
void ath_fill_led_pin(struct ath_softc *sc)
|
void ath_fill_led_pin(struct ath_softc *sc)
|
||||||
--- a/drivers/net/wireless/ath/ath9k/init.c
|
--- a/drivers/net/wireless/ath/ath9k/init.c
|
||||||
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
+++ b/drivers/net/wireless/ath/ath9k/init.c
|
||||||
@@ -1017,7 +1017,7 @@ int ath9k_init_device(u16 devid, struct
|
@@ -1018,7 +1018,7 @@ int ath9k_init_device(u16 devid, struct
|
||||||
|
|
||||||
#ifdef CPTCFG_MAC80211_LEDS
|
#ifdef CPTCFG_MAC80211_LEDS
|
||||||
/* must be initialized before ieee80211_register_hw */
|
/* must be initialized before ieee80211_register_hw */
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
void ath9k_reload_chainmask_settings(struct ath_softc *sc)
|
void ath9k_reload_chainmask_settings(struct ath_softc *sc)
|
||||||
@@ -979,6 +980,18 @@ static void ath9k_set_hw_capab(struct at
|
@@ -980,6 +981,18 @@ static void ath9k_set_hw_capab(struct at
|
||||||
SET_IEEE80211_PERM_ADDR(hw, common->macaddr);
|
SET_IEEE80211_PERM_ADDR(hw, common->macaddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
int ath9k_init_device(u16 devid, struct ath_softc *sc,
|
int ath9k_init_device(u16 devid, struct ath_softc *sc,
|
||||||
const struct ath_bus_ops *bus_ops)
|
const struct ath_bus_ops *bus_ops)
|
||||||
{
|
{
|
||||||
@@ -1024,6 +1037,8 @@ int ath9k_init_device(u16 devid, struct
|
@@ -1025,6 +1038,8 @@ int ath9k_init_device(u16 devid, struct
|
||||||
ARRAY_SIZE(ath9k_tpt_blink));
|
ARRAY_SIZE(ath9k_tpt_blink));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -223,7 +223,7 @@ Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
||||||
ath9k_cmn_init_crypto(sc->sc_ah);
|
ath9k_cmn_init_crypto(sc->sc_ah);
|
||||||
ath9k_init_misc(sc);
|
ath9k_init_misc(sc);
|
||||||
ath_fill_led_pin(sc);
|
ath_fill_led_pin(sc);
|
||||||
@@ -1081,6 +1084,9 @@ static void ath9k_deinit_softc(struct at
|
@@ -1082,6 +1085,9 @@ static void ath9k_deinit_softc(struct at
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue