Merge pull request #1099 from digitalirony/patch-2

Update hostapd.sh
This commit is contained in:
strasharo 2023-01-23 12:02:39 +02:00 committed by GitHub
commit 77b4c71a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -54,13 +54,14 @@ 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" \
channel=$APServiceChannel
hw_mode=$HardwareMode" \
> "$APServiceConfigDirectory/$APServiceMAC-hostapd.conf"
# Spoof virtual interface MAC address.