mac80211: allow retry of wifi setup if an iw interface add command fails
authorFelix Fietkau <nbd@nbd.name>
Thu, 30 Sep 2021 09:31:19 +0000 (11:31 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 23 Nov 2021 17:30:04 +0000 (18:30 +0100)
In some cases, spurious failures might be cleared by teardown and retry

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit 42dda0ed3e941bc36661e29b990e2ee2adf7f508)

package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

index 07e0758c4f3ab02e92fa58ee3673cfa0c8fcf7b6..17db5a003570055392128b6ffe5954171710ec68 100644 (file)
@@ -626,7 +626,7 @@ mac80211_iw_interface_add() {
                rc="$?"
        }
 
-       [ "$rc" != 0 ] && wireless_setup_failed INTERFACE_CREATION_FAILED
+       [ "$rc" != 0 ] && echo "Failed to create interface $ifname"
        return $rc
 }