Modify

Opened 4 years ago

Closed 3 years ago

#17392 closed defect (fixed)

Channel 'auto' problem

Reported by: anonymous Owned by: developers
Priority: highest Milestone: Barrier Breaker 14.07
Component: base system Version: Barrier Breaker 14.07
Keywords: Cc:

Description

root@OpenWrt:/tmp# uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type=mac80211
wireless.radio0.channel=auto
wireless.radio0.hwmode=11g
wireless.radio0.path=pci0000:00/0000:00:00.0
wireless.radio0.htmode=HT40
wireless.radio0.disabled=0
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=radio0
wireless.@wifi-iface[0].network=lan
wireless.@wifi-iface[0].mode=ap
wireless.@wifi-iface[0].ssid=OpenWrt
wireless.@wifi-iface[0].encryption=none
root@OpenWrt:~# logread | grep acs
Sun Aug  3 17:38:46 2014 daemon.notice netifd: radio0 (1173): sh: acs_survey: bad number
root@OpenWrt:~# cat /var/run/hostapd-phy0.conf 
driver=nl80211
logger_syslog=127
logger_syslog_level=2
logger_stdout=127
logger_stdout_level=2
hw_mode=g
channel=acs_survey

ieee80211n=1
ht_capab=[HT40+][SHORT-GI-40][TX-STBC][RX-STBC1][DSSS_CCK-40]

interface=wlan0
ctrl_interface=/var/run/hostapd
disassoc_low_ack=1
preamble=1
wmm_enabled=1
ignore_broadcast_ssid=0
auth_algs=1
wpa=0
ssid=OpenWrt
bridge=br-lan
bssid=54:e6:fc:b9:81:62

IMO problem with lines

[ "$auto_channel" -gt 0 ] && channel=acs_survey

...

case "$(( ($channel / 4) % 2 ))"

...

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by anonymous

That's not a problem, channel=acs_survey is indeed a valid option. See http://w1.fi/cgit/hostap/tree/hostapd/hostapd.conf

comment:2 Changed 3 years ago by anonymous

Yes, but not for netifd, see:

root@OpenWrt:~# logread | grep acs
Sun Aug  3 17:38:46 2014 daemon.notice netifd: radio0 (1173): sh: acs_survey: bad number

comment:3 Changed 3 years ago by anonymous

I see no problems in OpenWRT r42406 (RC3?) and ath9k in ar71xx platform.

Channel auto-selection is working for me, with very few extra seconds delay on wireless interface initialization.

I've read that not all the drivers support "acs_survey" in Hostapd though, only ath5k, ath9k and ath10k support "acs_survey" at the moment. See http://wireless.kernel.org/en/users/Documentation/acs

Tested using the following wireless configuration in /etc/config/wireless:

config wifi-device 'radio0'

option phy 'phy0'
option type 'mac80211'
option hwmode '11ng'
option htmode 'HT40+'
list ht_capab 'SHORT-GI-40'
list ht_capab 'TX-STBC'
list ht_capab 'RX-STBC1'
list ht_capab 'DSSS_CCK-40'
option noscan '1'
option wmm '1'
option channel 'acs_survey'

config wifi-iface

option device 'radio0'
option network 'wlan'
option mode 'ap'
option ssid 'SomeAp'
option encryption 'psk2'
option key 'SomeKey'

comment:4 Changed 3 years ago by anonymous

Having the same hardware and configuration as in last post, I'm sorry about the added confusion.

I didn't see the 'netifd log' issue under OpenWRT r42406 using:

option channel 'acs_survey'

But with latest OpenWRT Barrier Breaker r42682 I need to use (as in original post):

option channel 'auto'

If I do otherwise I can see a "netifd" log entry.

Device setup failed: INVALID_CHANNEL

Channel '0' would probably be a safe setting too.

I can confirm channel auto-selection is indeed working in both releases with ath9k.

comment:5 Changed 3 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.