mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 09:47:43 +02:00
hostapd: Create one control interface per virtual bssid
Previously hostapd created one control interface /var/run/hostapd-phyX which only contained the first virtual bssid (for example wlan0). In order to access the other virtual bssids with hostapd_cli add all virtual bssids to /var/run/hostapd-phyX by specifying the ctrl_interface parameter per bssid. Previously the control interface looked like: /var/run/hostapd-phyX/wlan0 Now, the control interface looks like this: /var/run/hostapd-phyX/wlan0 /var/run/hostapd-phyX/wlan1 ... Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24985 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
9e2306be1f
commit
f0d9d1c41e
@ -9,6 +9,9 @@ hostapd_set_bss_options() {
|
|||||||
|
|
||||||
config_get device "$vif" device
|
config_get device "$vif" device
|
||||||
config_get hwmode "$device" hwmode
|
config_get hwmode "$device" hwmode
|
||||||
|
config_get phy "$device" phy
|
||||||
|
|
||||||
|
append "$var" "ctrl_interface=/var/run/hostapd-$phy" "$N"
|
||||||
|
|
||||||
if [ "$ap_isolate" -gt 0 ]; then
|
if [ "$ap_isolate" -gt 0 ]; then
|
||||||
append "$var" "ap_isolate=$ap_isolate" "$N"
|
append "$var" "ap_isolate=$ap_isolate" "$N"
|
||||||
@ -184,7 +187,6 @@ hostapd_setup_vif() {
|
|||||||
[ "$channel" = auto ] && channel=
|
[ "$channel" = auto ] && channel=
|
||||||
[ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device"
|
[ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device"
|
||||||
cat > /var/run/hostapd-$ifname.conf <<EOF
|
cat > /var/run/hostapd-$ifname.conf <<EOF
|
||||||
ctrl_interface=/var/run/hostapd-$ifname
|
|
||||||
driver=$driver
|
driver=$driver
|
||||||
interface=$ifname
|
interface=$ifname
|
||||||
${hwmode:+hw_mode=${hwmode#11}}
|
${hwmode:+hw_mode=${hwmode#11}}
|
||||||
|
Loading…
Reference in New Issue
Block a user