Revert "Update hostapd.sh"
This commit is contained in:
parent
ccd384c155
commit
7d81c207d1
|
@ -54,14 +54,13 @@ function ap_service_prep() {
|
||||||
APServiceChannel=$5
|
APServiceChannel=$5
|
||||||
|
|
||||||
ap_service_stop
|
ap_service_stop
|
||||||
if [[ $APServiceChannel <= 11 ]]; then HardwareMode="g"; else HardwareMode="a"; fi
|
|
||||||
# Prepare the hostapd config file.
|
# Prepare the hostapd config file.
|
||||||
echo "\
|
echo "\
|
||||||
interface=$APServiceInterface
|
interface=$APServiceInterface
|
||||||
driver=nl80211
|
driver=nl80211
|
||||||
ssid=$APServiceSSID
|
ssid=$APServiceSSID
|
||||||
channel=$APServiceChannel
|
channel=$APServiceChannel" \
|
||||||
hw_mode=$HardwareMode" \
|
|
||||||
> "$APServiceConfigDirectory/$APServiceMAC-hostapd.conf"
|
> "$APServiceConfigDirectory/$APServiceMAC-hostapd.conf"
|
||||||
|
|
||||||
# Spoof virtual interface MAC address.
|
# Spoof virtual interface MAC address.
|
||||||
|
|
Loading…
Reference in New Issue