From 33f0d4fe72aa549815653ea2ffa36b41dfce13d5 Mon Sep 17 00:00:00 2001 From: "pldubouilh@gmail.com" Date: Sun, 1 May 2016 23:13:04 +0100 Subject: [PATCH] 802.11d & readme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable country-code broadcasting (80211d) when a country’s provided. Other minor fix. --- README.md | 2 +- create_ap | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2121c56..8f77e90 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ * Choose one of the following encryptions: WPA, WPA2, WPA/WPA2, Open (no encryption). * Hide your SSID. * Disable communication between clients (client isolation). -* IEEE 802.11n support +* IEEE 802.11n & 802.11ac support * Internet sharing methods: NATed or Bridged or None (no Internet sharing). * Choose the AP Gateway IP (only for 'NATed' and 'None' Internet sharing methods). * You can create an AP with the same interface you are getting your Internet connection. diff --git a/create_ap b/create_ap index 0cbb648..8e6512f 100755 --- a/create_ap +++ b/create_ap @@ -1567,7 +1567,10 @@ ap_isolate=$ISOLATE_CLIENTS EOF if [[ -n "$COUNTRY" ]]; then - echo "country_code=${COUNTRY}" >> $CONFDIR/hostapd.conf + cat << EOF >> $CONFDIR/hostapd.conf +country_code=${COUNTRY} +ieee80211d=1 +EOF fi if [[ $FREQ_BAND == 2.4 ]]; then @@ -1584,7 +1587,7 @@ EOF fi if [[ $IEEE80211AC -eq 1 ]]; then - echo "ieee80211ac=1" >> $CONFDIR/hostapd.conf + echo "ieee80211ac=1" >> $CONFDIR/hostapd.conf fi if [[ -n "$VHT_CAPAB" ]]; then @@ -1592,7 +1595,7 @@ if [[ -n "$VHT_CAPAB" ]]; then fi if [[ $IEEE80211N -eq 1 ]] || [[ $IEEE80211AC -eq 1 ]]; then - echo "wmm_enabled=1" >> $CONFDIR/hostapd.conf + echo "wmm_enabled=1" >> $CONFDIR/hostapd.conf fi if [[ -n "$PASSPHRASE" ]]; then