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>
Thu, 30 Sep 2021 09:33:37 +0000 (11:33 +0200)
In some cases, spurious failures might be cleared by teardown and retry

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

index 4574a9881a3010026340b6de56f49906f6a429d4..c3cc65d3aa1dbf19f7eff57809a52ff1b9277382 100644 (file)
@@ -625,7 +625,7 @@ mac80211_iw_interface_add() {
                rc="$?"
        }
 
-       [ "$rc" != 0 ] && wireless_setup_failed INTERFACE_CREATION_FAILED
+       [ "$rc" != 0 ] && echo "Failed to create interface $ifname"
        return $rc
 }