Hi Paul, Hi Gary, On Mon, Jan 04, 2021 at 08:27:49PM +0300, Paul Fertser wrote: > From: Gary Cooper <g...@bitmessage.de> > > This adds some logic to properly populate defaults in /etc/config/wireless > and support for WPA*-GCMP. TP-Link AD7200, Mikrotik WAP60g, LHGG-60ad, etc
I've split this thing up a bit more and merged it with what lynxis already had in his staging tree. Plus missing PKG_RELEASE bumps added where needed. Please review and test the 80211ad branch of my staging tree: https://git.openwrt.org/?p=openwrt/staging/dangole.git;a=shortlog;h=refs/heads/80211ad Cheers Daniel > > Signed-off-by: Gary Cooper <g...@bitmessage.de> > --- > package/base-files/files/sbin/wifi | 1 + > package/kernel/mac80211/files/lib/wifi/mac80211.sh | 6 ++++++ > package/network/services/hostapd/files/hostapd.sh | 8 ++++++++ > 3 files changed, 15 insertions(+) > > diff --git a/package/base-files/files/sbin/wifi > b/package/base-files/files/sbin/wifi > index a8b4451c60..75759b94f3 100755 > --- a/package/base-files/files/sbin/wifi > +++ b/package/base-files/files/sbin/wifi > @@ -79,6 +79,7 @@ wifi_fixup_hwmode() { > case "$hwmode" in > 11bg) hwmode=bg;; > 11a) hwmode=a;; > + 11ad) hwmode=ad;; > 11b) hwmode=b;; > 11g) hwmode=g;; > 11n*) > diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh > b/package/kernel/mac80211/files/lib/wifi/mac80211.sh > index c0fbfbe5a8..3e99f06693 100644 > --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh > +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh > @@ -88,6 +88,12 @@ detect_mac80211() { > iw phy "$dev" info | grep -q 'VHT Capabilities' && > htmode="VHT80" > } > > + iw phy "$dev" info | grep -q '\* 5.... MHz \[' && { > + mode_band="ad" > + channel=$(iw phy "$dev" info | grep '\* 5.... MHz \[' | > grep '(disabled)' -v -m 1 | sed 's/[^[]*\[\|\|\].*//g') > + iw phy "$dev" info | grep -q 'Capabilities:' && > htmode="HT20" > + } > + > [ -n "$htmode" ] && ht_capab="set > wireless.radio${devidx}.htmode=$htmode" > > path="$(mac80211_phy_to_path "$dev")" > diff --git a/package/network/services/hostapd/files/hostapd.sh > b/package/network/services/hostapd/files/hostapd.sh > index 80e1f7cedf..883b7e0e05 100644 > --- a/package/network/services/hostapd/files/hostapd.sh > +++ b/package/network/services/hostapd/files/hostapd.sh > @@ -1312,6 +1312,14 @@ wpa_supplicant_add_network() { > ;; > esac > > + case "$wpa_cipher" in > + GCMP) > + append network_data "pairwise=GCMP" "$N$T" > + append network_data "group=GCMP" "$N$T" > + ;; > + *) ;; > + esac > + > [ "$mode" = mesh ] || { > case "$wpa" in > 1) > -- > 2.20.1 > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel