openwrt wpa_psk_file
openwrt wpa_psk_file
Setup
- setup the encryption in wireless config
uci set wireless.ath10.encryption=psk-mixed
uci del wireless.ath10.key
uci commit wireless
- change /lib/wifi/hostapd.sh
append “wpa_psk_file=/var/run/hostapd.wpa_psk” “$N”
- use script to generate test file
i=0; while [ $i -lt 1024 ]; do echo “70:11:A6:CD:8A:C2 oakridge$((i+1000))” >> /var/run/hostapd.wpa_psk; i=$((i+1)); done
- use 70:11:A6:CD:8A:C2 client to and different key to access this ssid
Notes
- wpa_passphrase=null error fix in /lib/wifi/hostapd.sh
[ -n “$psk” ] && append “$var” “wpa_passphrase=$psk” “$N”
Referece
nicephil@gmail.com 2017-6-27