Changeset 36479


Ignore:
Timestamp:
2013-04-28T20:21:34+02:00 (5 years ago)
Author:
hauke
Message:

broadcom-wl: read channel using wlc on detect

Hardcoding channel number to 11 is a bad idea, it may be even not
available on some devices. If there are two single-band radios, the
one for 5GHz doesn't have 11 channel.

Signed-off-by: Rafał Miłecki <zajec5@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/broadcom-wl/files/lib/wifi/broadcom.sh

    r30362 r36479  
    371371 
    372372        while grep -qs "^ *wl$((++i)):" /proc/net/dev; do 
     373                local channel 
     374 
    373375                config_get type wl${i} type 
    374376                [ "$type" = broadcom ] && continue 
     377                channel=`wlc ifname wl${i} channel` 
    375378                cat <<EOF 
    376379config wifi-device  wl${i} 
    377380        option type     broadcom 
    378         option channel  11 
     381        option channel  ${channel:-11} 
    379382 
    380383        # REMOVE THIS LINE TO ENABLE WIFI: 
Note: See TracChangeset for help on using the changeset viewer.