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 <open...@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@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel