openwrt wpa_psk_file

openwrt wpa_psk_file

Setup

  1. setup the encryption in wireless config

uci set wireless.ath10.encryption=psk-mixed
uci del wireless.ath10.key
uci commit wireless

  1. change /lib/wifi/hostapd.sh

append “wpa_psk_file=/var/run/hostapd.wpa_psk” “$N”

  1. 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

  1. use 70:11:A6:CD:8A:C2 client to and different key to access this ssid

Notes

  1. wpa_passphrase=null error fix in /lib/wifi/hostapd.sh

[ -n “$psk” ] && append “$var” “wpa_passphrase=$psk” “$N”

Referece

  1. patch for wpa_psk_file
  2. hostapd.conf

nicephil@gmail.com 2017-6-27

posted on 2017-06-27 15:17  nicephil  阅读(650)  评论(0编辑  收藏  举报

导航