# BigBrother hostapd configuration — WPA2-PSK AP
#
# Used by evil_twin.py for WPA2 evil twin attacks.
# Requires knowing or guessing the target PSK.
# Jinja2 variables:
#   interface: Wireless interface (e.g., "wlan0")
#   ssid: Target SSID to clone
#   channel: WiFi channel (1-11 for 2.4GHz)
#   wpa_passphrase: WPA2 pre-shared key
#   driver: Wireless driver (default: nl80211)
#   hw_mode: Hardware mode (default: g for 2.4GHz)
#   country_code: Regulatory domain (default: US)
#   beacon_int: Beacon interval in ms (default: 100)

interface={{ interface | default('wlan0') }}
driver={{ driver | default('nl80211') }}
ssid={{ ssid }}
hw_mode={{ hw_mode | default('g') }}
channel={{ channel | default(6) }}
country_code={{ country_code | default('US') }}
ieee80211d=1

# WPA2-PSK configuration
auth_algs=1
wpa=2
wpa_passphrase={{ wpa_passphrase }}
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP

# Beacon and capabilities
beacon_int={{ beacon_int | default(100) }}
wmm_enabled=1
macaddr_acl=0
ignore_broadcast_ssid=0

# 802.11n support
ieee80211n=1
ht_capab=[HT40+][SHORT-GI-20][SHORT-GI-40]

# Logging
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
