mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
hostapd: fix crash at txpower set on ath10k
ath10k generate a fault if iwconfig try to set txpower while the device is down. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -73,7 +73,9 @@ case "${1}" in
|
||||
/usr/sbin/iw reg set $COUNTRY
|
||||
|
||||
/usr/sbin/iwconfig $INTERFACE channel $CHANNEL 2>/dev/null
|
||||
/usr/sbin/iwconfig $INTERFACE txpower $TXPOWER
|
||||
|
||||
ip link set ${INTERFACE} up 2>/dev/null
|
||||
/usr/sbin/iwconfig $INTERFACE txpower $TXPOWER 2>/dev/null
|
||||
|
||||
/usr/bin/hostapd -P /var/run/hostapd /etc/hostapd.conf >/dev/null 2>&1 &
|
||||
|
||||
|
||||
Reference in New Issue
Block a user