mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 11:01:05 +02:00
small bugfixes for wifi (broadcom)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4074 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5bd73a1205
commit
6322995050
@ -69,6 +69,7 @@ setup_broadcom() {
|
|||||||
_c=0
|
_c=0
|
||||||
nas="$(which nas)"
|
nas="$(which nas)"
|
||||||
nas_cmd=
|
nas_cmd=
|
||||||
|
if_up=
|
||||||
for vif in ${adhoc_if:-$sta_if $ap_if}; do
|
for vif in ${adhoc_if:-$sta_if $ap_if}; do
|
||||||
append vif_pre_up "vif $_c" "$N"
|
append vif_pre_up "vif $_c" "$N"
|
||||||
append vif_post_up "vif $_c" "$N"
|
append vif_post_up "vif $_c" "$N"
|
||||||
@ -123,8 +124,9 @@ setup_broadcom() {
|
|||||||
append vif_post_up "ssid $ssid" "$N"
|
append vif_post_up "ssid $ssid" "$N"
|
||||||
append vif_post_up "enabled 1" "$N"
|
append vif_post_up "enabled 1" "$N"
|
||||||
|
|
||||||
|
config_get ifname "$vif" ifname
|
||||||
|
append if_up "ifconfig $ifname up" ";$N"
|
||||||
[ -z "$nasopts" ] || {
|
[ -z "$nasopts" ] || {
|
||||||
config_get ifname "$vif" ifname
|
|
||||||
config_get bridge "$vif" bridge # XXX: integrate with /etc/config/network later
|
config_get bridge "$vif" bridge # XXX: integrate with /etc/config/network later
|
||||||
eval "${vif}_ssid=\"\$ssid\""
|
eval "${vif}_ssid=\"\$ssid\""
|
||||||
mode="-A"
|
mode="-A"
|
||||||
@ -134,7 +136,7 @@ setup_broadcom() {
|
|||||||
_c=$(($_c + 1))
|
_c=$(($_c + 1))
|
||||||
done
|
done
|
||||||
killall -KILL nas >&- 2>&-
|
killall -KILL nas >&- 2>&-
|
||||||
cat <<EOF
|
wlc stdin <<EOF
|
||||||
$ifdown
|
$ifdown
|
||||||
|
|
||||||
mssid $mssid
|
mssid $mssid
|
||||||
@ -156,6 +158,7 @@ up
|
|||||||
$vif_post_up
|
$vif_post_up
|
||||||
EOF
|
EOF
|
||||||
eval "$nas_cmd"
|
eval "$nas_cmd"
|
||||||
|
eval "$if_up"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user