The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
--- Begin Message ---
>From 72829ea7effdf39b9d27dac21dffcf1b6e34a484 Mon Sep 17 00:00:00 2001
From: Gary Cooper <[email protected]>
Date: Fri, 15 Oct 2020 12:40:50 +0000
Subject: 802.11ad support

1: Daniel: As requested.
2: Robert: Your if/then-logic seems to also do the trick, this patch
achieves the same by referencing the existing logic for 802.11a/ac.

Signed-off-by: Gary Cooper <[email protected]>
---
 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 3290358ed2..b5563d88a6 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -1163,6 +1163,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.17.1



--- End Message ---
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to