From 80b6af080f3b4220e38396744f2b73d89b69dc97 Mon Sep 17 00:00:00 2001 From: Janusz Dziedzic <janusz.dziedzic@iopsys.eu> Date: Fri, 8 Jan 2021 12:58:44 +0000 Subject: [PATCH] brcm63xx: mac80211.sh: enable radio when add station We should up radio before we will start wpa_supplicant. In other case when we have only one interface - station interface supplicant could not run scan and could not connect to AP. This fix issue where: - we have one station interface for wlX - wpa_cli -i wlX wps_pbc multi_ap=1 failed - reporduced directly after reboot For some reason, when supplicant configure interface brcm driver don't enable radio by default. This patch workaround this problem. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu> --- iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh b/iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh index 8699d7be0..6cccc423e 100755 --- a/iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh +++ b/iopsys-brcm63xx-arm/base-files/lib/netifd/wireless/mac80211.sh @@ -356,6 +356,8 @@ bcm_setup_sta() { echo "bcm_setup_sta $ifname wl $radio restore up" wl -i "$radio" up } + + wl -i "$radio" up } bcm_setup_bss() { -- GitLab