Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#10335 closed defect (fixed)

Wrong status of wireless interfaces

Reported by: Pilot6 <hanipouspilot@…> Owned by: jow
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

I have a guest wlan, which is normally disabled.


config 'wifi-device' 'radio0'
	option 'type' 'mac80211'
	option 'macaddr' '00:18:e7:8c:3f:71'
	option 'hwmode' '11ng'
	option 'htmode' 'HT20'
	list 'ht_capab' 'SHORT-GI-40'
	list 'ht_capab' 'TX-STBC'
	list 'ht_capab' 'RX-STBC1'
	list 'ht_capab' 'DSSS_CCK-40'
	option 'channel' '13'

config 'wifi-iface'
	option 'device' 'radio0'
	option 'network' 'lan'
	option 'mode' 'ap'
	option 'ssid' 'Voxnet'
	option 'encryption' 'psk2'
	option 'key' 'Hani Pous Pilot 06.01.2000'
	option 'wpa_group_rekey' '0'

config 'wifi-iface'
	option 'device' 'radio0'
	option 'network' 'guest'
	option 'mode' 'ap'
	option 'ssid' 'guest'
	option 'encryption' 'none'
	option 'isolate' '1'
	option 'disabled' '1'

config 'wifi-device' 'radio1'
	option 'type' 'mac80211'
	option 'channel' '44'
	option 'macaddr' '00:18:e7:8c:3f:72'
	option 'hwmode' '11na'
	list 'ht_capab' 'SHORT-GI-40'
	list 'ht_capab' 'TX-STBC'
	list 'ht_capab' 'RX-STBC1'
	list 'ht_capab' 'DSSS_CCK-40'
	option 'txpower' '15'
	option 'htmode' 'HT40+'
	option 'distance' '30'
	option 'disabled' '0'

config 'wifi-iface'
	option 'device' 'radio1'
	option 'network' 'lan'
	option 'mode' 'ap'
	option 'ssid' 'Pilot6'
	option 'encryption' 'psk2'
	option 'key' 'Hani Pous Pilot 06.01.2000'
	option 'wpa_group_rekey' '0'

In this case /var/state/wireless is

wireless.cfg033579.up=1
wireless.cfg033579.ifname=wlan0
wireless.cfg083579.up=1
wireless.cfg083579.ifname=wlan1

When I enable it by
uci set wireless.@wifi-iface[1].disabled=0
wifi

it shows

wireless.cfg053579.up=1
wireless.cfg053579.ifname=wlan0
wireless.cfg033579.up=1
wireless.cfg033579.ifname=wlan1
wireless.cfg083579.up=1
wireless.cfg083579.ifname=wlan2

which is correct.

But why I disable in by

uci set wireless.@wifi-iface[1].disabled=1
wifi

wireless.cfg053579.up=1
wireless.cfg053579.ifname=wlan1
wireless.cfg033579.up=1
wireless.cfg033579.ifname=wlan0
wireless.cfg083579.up=1
wireless.cfg083579.ifname=wlan1

which is wrong. It causes for instance Luci to display Wi-Fi in a wrong way.

Attachments (0)

Change History (7)

comment:1 Changed 6 years ago by jow

  • Owner changed from developers to jow
  • Status changed from new to accepted

comment:2 Changed 6 years ago by Pilot6 <hanipouspilot@…>

That is because uci does not check in /var.uci/wireless that same option is already there.

comment:3 Changed 6 years ago by Pilot6 <hanipouspilot@…>

I must correct it. I was wrong that uci was guilty.

When I toggle wifi by 'wifi' command it is OK.

uci set wireless.@wifi-iface[1].disabled=1
wifi

Works fine. But with my 2 radios it not always has time to work correctly. So I did

uci set wireless.@wifi-iface[1].disabled=1
wifi down
sleep 3
wifi up

And that couses problems. Solution must be in /sbin/wifi script.

comment:4 Changed 6 years ago by Pilot6 <hanipouspilot@…>

May be it is better to use uci_get instead of config_get.

comment:5 Changed 6 years ago by Pilot6 <hanipouspilot@…>

WD. Thanks. r28784.

comment:6 Changed 6 years ago by jow

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

comment:7 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

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.