mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
client mode fixes for broadcom wl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5548 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -2,7 +2,9 @@ append DRIVERS "broadcom"
|
|||||||
|
|
||||||
scan_broadcom() {
|
scan_broadcom() {
|
||||||
local device="$1"
|
local device="$1"
|
||||||
local wds=
|
local wds
|
||||||
|
local adhoc sta apmode
|
||||||
|
local adhoc_if sta_if ap_if
|
||||||
|
|
||||||
config_get vifs "$device" vifs
|
config_get vifs "$device" vifs
|
||||||
for vif in $vifs; do
|
for vif in $vifs; do
|
||||||
@@ -17,7 +19,7 @@ scan_broadcom() {
|
|||||||
sta_if="$vif"
|
sta_if="$vif"
|
||||||
;;
|
;;
|
||||||
ap)
|
ap)
|
||||||
ap=1
|
apmode=1
|
||||||
ap_if="${ap_if:+$ap_if }$vif"
|
ap_if="${ap_if:+$ap_if }$vif"
|
||||||
;;
|
;;
|
||||||
wds)
|
wds)
|
||||||
@@ -46,7 +48,7 @@ scan_broadcom() {
|
|||||||
mssid=1
|
mssid=1
|
||||||
apsta=0
|
apsta=0
|
||||||
radio=1
|
radio=1
|
||||||
case "$adhoc:$sta:$ap" in
|
case "$adhoc:$sta:$apmode" in
|
||||||
1*)
|
1*)
|
||||||
ap=0
|
ap=0
|
||||||
mssid=0
|
mssid=0
|
||||||
@@ -167,8 +169,8 @@ enable_broadcom() {
|
|||||||
wlc stdin <<EOF
|
wlc stdin <<EOF
|
||||||
$ifdown
|
$ifdown
|
||||||
|
|
||||||
mssid $mssid
|
|
||||||
ap $ap
|
ap $ap
|
||||||
|
mssid $mssid
|
||||||
apsta $apsta
|
apsta $apsta
|
||||||
infra $infra
|
infra $infra
|
||||||
${wet:+wet 1}
|
${wet:+wet 1}
|
||||||
|
|||||||
Reference in New Issue
Block a user