summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh6
-rw-r--r--package/broadcom-wl/src/wlc/wlc.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index f5d15f8..94f220e 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -181,11 +181,15 @@ enable_broadcom() {
nasopts=
config_get enc "$vif" encryption
case "$enc" in
- WEP|wep)
+ *WEP*|*wep*)
wsec_r=1
wsec=1
defkey=1
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
[1234])
defkey="$key"
diff --git a/package/broadcom-wl/src/wlc/wlc.c b/package/broadcom-wl/src/wlc/wlc.c
index 3f3130d..747b3d5 100644
--- a/package/broadcom-wl/src/wlc/wlc.c
+++ b/package/broadcom-wl/src/wlc/wlc.c
@@ -664,6 +664,13 @@ static const struct wlc_call wlc_calls[] = {
.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",
.param = INT,
.handler = wlc_bssiovar,