[OpenWrt-Devel] [PATCH v2 3/3] hostapd: Add uapsd option to netifd.sh
Felix Fietkau
nbd at openwrt.org
Sat Oct 18 16:37:36 EDT 2014
On 2014-10-14 20:05, Vittorio G (VittGam) wrote:
> The uapsd option sets the uapsd_advertisement_enabled flag in hostapd, only if the phy actually supports the option.
>
> Signed-off-by: Vittorio Gambaletta <openwrt at vittgam.net>
>
> ---
> package/network/services/hostapd/files/netifd.sh | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/package/network/services/hostapd/files/netifd.sh b/package/network/services/hostapd/files/netifd.sh
> index ccea5ff..48bcc9d 100644
> --- a/package/network/services/hostapd/files/netifd.sh
> +++ b/package/network/services/hostapd/files/netifd.sh
> @@ -189,6 +190,10 @@ hostapd_set_bss_options() {
> append bss_conf "wmm_enabled=$wmm" "$N"
> append bss_conf "ignore_broadcast_ssid=$hidden" "$N"
>
> + [ -n "$phy" ] && iw phy "$phy" info 2>/dev/null | grep -q 'Device supports AP-side u-APSD.' && {
> + append bss_conf "uapsd_advertisement_enabled=$uapsd" "$N"
> + }
hostapd's netifd.sh should not hardcode cfg80211/mac80211 specific
calls, it may be called from other drivers in the future.
- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list