Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Commit

Permalink
add option for DTIM period too
Browse files Browse the repository at this point in the history
  • Loading branch information
dlenski committed Apr 3, 2020
1 parent 1703dcb commit 069e1d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions create_ap
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ usage() {
echo " --ht_capab <HT> HT capabilities (default: [HT40+])"
echo " --vht_capab <VHT> VHT capabilities"
echo " --beacon-interval <ms> Set beacon interval in milliseconds (default 100)"
echo " --dtim-period <num> Set DTIM period in numbers of beacons (default 2)"
echo " --country <code> Set two-letter country code for regularity (example: US)"
echo " --freq-band <GHz> Set frequency band. Valid inputs: 2.4, 5 (default: 2.4)"
echo " --driver Choose your WiFi adapter driver (default: nl80211)"
Expand Down Expand Up @@ -641,6 +642,7 @@ NO_VIRT=0
COUNTRY=
FREQ_BAND=2.4
BEACON_INTERVAL=100
DTIM_PERIOD=2
NEW_MACADDR=
DAEMONIZE=0
DAEMON_PIDFILE=
Expand Down Expand Up @@ -1642,6 +1644,7 @@ ctrl_interface_group=0
ignore_broadcast_ssid=$HIDDEN
ap_isolate=$ISOLATE_CLIENTS
beacon_int=${BEACON_INTERVAL}
dtim_period=${DTIM_PERIOD}
EOF

if [[ -n "$COUNTRY" ]]; then
Expand Down
1 change: 1 addition & 0 deletions create_ap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ SSID=MyAccessPoint
PASSPHRASE=12345678
USE_PSK=0
BEACON_INTERVAL=100
DTIM_INTERVAL=2

0 comments on commit 069e1d5

Please sign in to comment.