From 7d81c207d10ca8cfbd3c4a76fed92f3c38cb52c6 Mon Sep 17 00:00:00 2001 From: strasharo Date: Thu, 26 Jan 2023 16:42:32 +0200 Subject: [PATCH] Revert "Update hostapd.sh" --- lib/ap/hostapd.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/ap/hostapd.sh b/lib/ap/hostapd.sh index 36f4ed9..fd07f27 100755 --- a/lib/ap/hostapd.sh +++ b/lib/ap/hostapd.sh @@ -54,14 +54,13 @@ function ap_service_prep() { APServiceChannel=$5 ap_service_stop - if [[ $APServiceChannel <= 11 ]]; then HardwareMode="g"; else HardwareMode="a"; fi + # Prepare the hostapd config file. echo "\ interface=$APServiceInterface driver=nl80211 ssid=$APServiceSSID -channel=$APServiceChannel -hw_mode=$HardwareMode" \ +channel=$APServiceChannel" \ > "$APServiceConfigDirectory/$APServiceMAC-hostapd.conf" # Spoof virtual interface MAC address.