[openwrt/openwrt] mac80211: Re-enable encrypted 11s meshpoint

LEDE Commits lede-commits at lists.infradead.org
Mon May 14 09:37:49 PDT 2018


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/547042398afac3ce702adab28c753e7c9ebed452

commit 547042398afac3ce702adab28c753e7c9ebed452
Author: Sven Eckelmann <sven.eckelmann at openmesh.com>
AuthorDate: Mon May 14 15:11:45 2018 +0200

    mac80211: Re-enable encrypted 11s meshpoint
    
    The commit 574e4377fad5 ("mac80211: properly setup mesh interface") uses
    the variable $wpa to decide whether encrypted meshpoint is requested by the
    user or not. But the variable $wpa will only be set correctly after the
    function wireless_vif_parse_encryption is called.
    
    Fixes: 574e4377fad5 ("mac80211: properly setup mesh interface")
    Signed-off-by: Sven Eckelmann <sven.eckelmann at openmesh.com>
---
 package/kernel/mac80211/Makefile                              | 2 +-
 package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/kernel/mac80211/Makefile b/package/kernel/mac80211/Makefile
index 499de2f..2effbf1 100644
--- a/package/kernel/mac80211/Makefile
+++ b/package/kernel/mac80211/Makefile
@@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
 PKG_NAME:=mac80211
 
 PKG_VERSION:=2017-11-01
-PKG_RELEASE:=6
+PKG_RELEASE:=7
 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
 PKG_HASH:=8437ab7886b988c8152e7a4db30b7f41009e49a3b2cb863edd05da1ecd7eb05a
 
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index dbe4aac..70def75 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -634,8 +634,8 @@ mac80211_setup_vif() {
 	case "$mode" in
 		mesh)
 			json_get_vars key
+			wireless_vif_parse_encryption
 			if [ "$wpa" -gt 0 -o "$auto_channel" -gt 0 ] || chan_is_dfs "$phy" "$channel"; then
-				wireless_vif_parse_encryption
 				freq="$(get_freq "$phy" "$channel")"
 				mac80211_setup_supplicant || failed=1
 			else



More information about the lede-commits mailing list