mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 01:43:08 +02:00
[backfire] merge r23655
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@23656 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e61f2889a5
commit
dc052fc1f4
@ -76,7 +76,6 @@ hostapd_set_bss_options() {
|
|||||||
append "$var" "eapol_key_index_workaround=1" "$N"
|
append "$var" "eapol_key_index_workaround=1" "$N"
|
||||||
append "$var" "radius_acct_interim_interval=300" "$N"
|
append "$var" "radius_acct_interim_interval=300" "$N"
|
||||||
append "$var" "ieee8021x=1" "$N"
|
append "$var" "ieee8021x=1" "$N"
|
||||||
append "$var" "auth_algs=1" "$N"
|
|
||||||
append "$var" "wpa_key_mgmt=WPA-EAP" "$N"
|
append "$var" "wpa_key_mgmt=WPA-EAP" "$N"
|
||||||
append "$var" "wpa_group_rekey=300" "$N"
|
append "$var" "wpa_group_rekey=300" "$N"
|
||||||
append "$var" "wpa_gmk_rekey=640" "$N"
|
append "$var" "wpa_gmk_rekey=640" "$N"
|
||||||
@ -100,6 +99,14 @@ hostapd_set_bss_options() {
|
|||||||
append "$var" "wep_default_key=0" "$N"
|
append "$var" "wep_default_key=0" "$N"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
case "$enc" in
|
||||||
|
*shared*)
|
||||||
|
auth_algs=2
|
||||||
|
;;
|
||||||
|
*mixed*)
|
||||||
|
auth_algs=3
|
||||||
|
;;
|
||||||
|
esac
|
||||||
wpa=0
|
wpa=0
|
||||||
crypto=
|
crypto=
|
||||||
;;
|
;;
|
||||||
@ -108,6 +115,7 @@ hostapd_set_bss_options() {
|
|||||||
crypto=
|
crypto=
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
append "$var" "auth_algs=${auth_algs:-1}" "$N"
|
||||||
append "$var" "wpa=$wpa" "$N"
|
append "$var" "wpa=$wpa" "$N"
|
||||||
[ -n "$crypto" ] && append "$var" "wpa_pairwise=$crypto" "$N"
|
[ -n "$crypto" ] && append "$var" "wpa_pairwise=$crypto" "$N"
|
||||||
[ -n "$wpa_group_rekey" ] && append "$var" "wpa_group_rekey=$wpa_group_rekey" "$N"
|
[ -n "$wpa_group_rekey" ] && append "$var" "wpa_group_rekey=$wpa_group_rekey" "$N"
|
||||||
|
Loading…
Reference in New Issue
Block a user