Changeset 28859


Ignore:
Timestamp:
2011-11-08T15:24:01+01:00 (6 years ago)
Author:
jow
Message:

[backfire] hostapd: merge r28858

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/hostapd/files/wpa_supplicant.sh

    r26370 r28859  
    2222                [ -z "$net_cfg" ] || bridge="$(bridge_interface "$net_cfg")" 
    2323                config_set "$vif" bridge "$bridge" 
     24        } 
     25 
     26        local mode ifname wds 
     27        config_get mode "$vif" mode 
     28        config_get ifname "$vif" ifname 
     29        config_get_bool wds "$vif" wds 0 
     30        [ -z "$bridge" ] || [ "$mode" = ap ] || [ "$mode" = sta -a $wds -eq 1 ] || { 
     31                echo "wpa_supplicant_setup_vif($ifname): Refusing to bridge $mode mode interface" 
     32                return 1 
    2433        } 
    2534 
Note: See TracChangeset for help on using the changeset viewer.