From 7fbd05bcdfc79bb2b685085bb3500e66f5fbcef3 Mon Sep 17 00:00:00 2001 From: Liangbin Lian Date: Thu, 5 Mar 2026 19:21:13 +0800 Subject: [PATCH] package/wifi-scripts: call wifi up once on boot workaround for some drivers (like brcmfmac) take long time to load fw Signed-off-by: Liangbin Lian --- package/network/config/wifi-scripts/Makefile | 2 +- .../files/etc/hotplug.d/ieee80211/11-wifi-up-oneshot | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 package/network/config/wifi-scripts/files/etc/hotplug.d/ieee80211/11-wifi-up-oneshot diff --git a/package/network/config/wifi-scripts/Makefile b/package/network/config/wifi-scripts/Makefile index ae41f74949..f84522d8fd 100644 --- a/package/network/config/wifi-scripts/Makefile +++ b/package/network/config/wifi-scripts/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=wifi-scripts PKG_VERSION:=1.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-2.0 PKG_MAINTAINER:=Felix Fietkau diff --git a/package/network/config/wifi-scripts/files/etc/hotplug.d/ieee80211/11-wifi-up-oneshot b/package/network/config/wifi-scripts/files/etc/hotplug.d/ieee80211/11-wifi-up-oneshot new file mode 100644 index 0000000000..b5570672d8 --- /dev/null +++ b/package/network/config/wifi-scripts/files/etc/hotplug.d/ieee80211/11-wifi-up-oneshot @@ -0,0 +1,8 @@ +#!/bin/sh + +[ "${ACTION}" = "add" ] && { + [ -f /tmp/.wifi-up ] && exit 0 + touch /tmp/.wifi-up + + /sbin/wifi isup || /sbin/wifi up +}