[package] broadcom-wl: implement wepauth in wlc and support it in broadcom.sh, allows switching between open and shared authentication

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19256 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Jo-Philipp Wich 2010-01-21 20:52:17 +00:00
parent e3412765b1
commit e8b288b29d
2 changed files with 12 additions and 1 deletions

View File

@ -181,11 +181,15 @@ enable_broadcom() {
nasopts= nasopts=
config_get enc "$vif" encryption config_get enc "$vif" encryption
case "$enc" in case "$enc" in
WEP|wep) *WEP*|*wep*)
wsec_r=1 wsec_r=1
wsec=1 wsec=1
defkey=1 defkey=1
config_get key "$vif" key config_get key "$vif" key
case "$enc" in
*shared*) append vif_do_up "wepauth 1" "$N";;
*) append vif_do_up "wepauth 0" "$N";;
esac
case "$key" in case "$key" in
[1234]) [1234])
defkey="$key" defkey="$key"

View File

@ -663,6 +663,13 @@ static const struct wlc_call wlc_calls[] = {
.handler = wlc_wsec_key, .handler = wlc_wsec_key,
.desc = "Set/Remove WEP keys" .desc = "Set/Remove WEP keys"
}, },
{
.name = "wepauth",
.param = INT,
.handler = wlc_ioctl,
.data.num = ((WLC_GET_AUTH << 16) | WLC_SET_AUTH),
.desc = "WEP authentication type. 0 = OpenSystem, 1 = SharedKey"
},
{ {
.name = "wsec_restrict", .name = "wsec_restrict",
.param = INT, .param = INT,