Skip to content

Commit

Permalink
Revert "Update hostapd.sh"
Browse files Browse the repository at this point in the history
  • Loading branch information
strasharo authored Jan 26, 2023
1 parent ccd384c commit 7d81c20
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ap/hostapd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7d81c20

Please sign in to comment.