Ignore:
Timestamp:
2011-08-14T01:20:45+02:00 (5 years ago)
Author:
jow
Message:

[backfire] merge r27976

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/backfire/package/mac80211/files/lib/wifi/mac80211.sh

    r27431 r27978  
    1818        config_get_bool noscan "$device" noscan 
    1919        [ -n "$channel" -a -z "$hwmode" ] && wifi_fixup_hwmode "$device" 
    20         [ "$channel" = auto ] && channel= 
     20 
     21        [ "$channel" = auto ] && { 
     22                channel=$(iw phy "$phy" info | \ 
     23                        sed -ne '/MHz/ { /disabled\|passive\|radar/d; s/.*\[//; s/\].*//; p; q }') 
     24                config_set "$device" channel "$channel" 
     25        } 
     26 
    2127        [ -n "$hwmode" ] && { 
    2228                config_get hwmode_11n "$device" hwmode_11n 
Note: See TracChangeset for help on using the changeset viewer.