Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
cat <<EOF > /etc/hostapd/hostapd.conf

interface=wlan0
ssid=YourHotspotName
hw_mode=g
channel=7
wmm_enabled=01
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=YourPassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

EOF

Here can find more information about the hostapd configuration

https://web.mit.edu/freebsd/head/contrib/wpa/hostapd/hostapd.conf

The hw_mode parameter can take one of the following values:

  • a: Specifies 5 GHz (802.11a)

  • b: Specifies 2.4 GHz (802.11b)

  • g: Specifies 2.4 GHz (802.11g)

  • ad: Specifies 60 GHz (802.11ad)

  • n: Specifies 2.4 GHz or 5 GHz (802.11n)

  • ac: Specifies 5 GHz (802.11ac)

...