[rdkb][mt7986][app][Refactor hostapd service]
[Description]
Refactor hostapd service
1. move mac80211.sh from init-filogic to hostapd, and will run before hostapd.service
2. refactor hostapd-init.sh, it will accroding to uci wireless config to gen config and bring up interface
3. remove unused hostapd config, such like hostapd-bhaul2G.conf
4. separate init brlan0 part from hostapd-init.sh and create init-Lanbridge.service to handle
[Release-log]
diff --git a/recipes-connectivity/hostapd/files/hostapd.service b/recipes-connectivity/hostapd/files/hostapd.service
index 7df478f..90d5364 100644
--- a/recipes-connectivity/hostapd/files/hostapd.service
+++ b/recipes-connectivity/hostapd/files/hostapd.service
@@ -5,13 +5,10 @@
[Service]
Type=forking
-ExecStartPre=/bin/sh -c '(/lib/rdk/hostapd-init.sh)'
PIDFile=/var/run/hostapd-global.pid
ExecStart=/usr/sbin/hostapd -g /var/run/hostapd/global -B -P /var/run/hostapd-global.pid
-ExecStartPost=hostapd_cli -i global raw ADD bss_config=phy0:/nvram/hostapd0.conf
-ExecStartPost=hostapd_cli -i global raw ADD bss_config=phy1:/nvram/hostapd1.conf
+ExecStartPost=/bin/sh -c '(/lib/rdk/hostapd-init.sh)'
Restart=always
-
[Install]
WantedBy=multi-user.target