Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#15491 closed defect (fixed)

mac80211 crash: iw phy phy0 set txpower fixed

Reported by: gvalkov@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: mac80211 crash iw txpower TL-WR1043ND Cc:

Description

I just updated my TP-Link TL-WR1043ND v2 to 07-Apr-2014 03:08:
http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-sysupgrade.bin

I found a bug in the tx-power config tools. The web interface works properly for setting the power.

These two commands work incorrectly and reduce Tx-Power: 5 dBm

iwconfig wlan0 txpower 20
iw dev wlan0 set txpower fixed 2000

And the last command causes a crash:

iw phy phy0 set txpower fixed 2000
[  319.300000] ------------[ cut here ]------------
[  319.310000] WARNING: at /mnt/dl/slave-8/ar71xx/build/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/compat-wireless-2014-03-31/net/mac80211/driver-ops.h:12 ieee80211_bss_info_change_notify+0xcc/0x14c [mac80211]()
[  319.330000] wlan0.sta1:  Failed check-sdata-in-driver check, flags: 0x2
[  319.340000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_ccitt compat ledtrig_usbdev ledtrig_netdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 ipv6 arc4 crypto_blkcipher leds_gpio ohci_hcd ledtrig_timer ledtrig_default_on ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[  319.410000] CPU: 0 PID: 2196 Comm: iw Not tainted 3.10.34 #1
[  319.420000] Stack : 00000000 00000000 00000000 00000000 80382e7a 00000030 83376328 83823a80
[  319.420000] 	  802d99ec 803293db 00000894 80382628 83376328 83823a80 00000004 0000002c
[  319.420000] 	  8357b000 80078fb0 00000003 80076a34 831c7e5c 83823a80 802db2ac 83399a7c
[  319.420000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  319.420000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 83399a08
[  319.420000] 	  ...
[  319.450000] Call Trace:
[  319.460000] [<8006e278>] show_stack+0x48/0x70
[  319.460000] [<80076b30>] warn_slowpath_common+0x78/0xa8
[  319.470000] [<80076b8c>] warn_slowpath_fmt+0x2c/0x38
[  319.470000] [<83181670>] ieee80211_bss_info_change_notify+0xcc/0x14c [mac80211]
[  319.480000] [<83199064>] ieee80211_channel_switch+0xe18/0x1a5c [mac80211]
[  319.490000] [<800d9040>] anon_vma_prepare+0xd4/0x144
[  319.490000] [<8022a51c>] __netlink_dump_start+0x114/0x174
[  319.500000] [<8022cf98>] genl_rcv_msg+0x278/0x31c
[  319.500000] BUG: scheduling while atomic: iw/2196/0x00000100
[  319.510000] Modules linked in: ath9k ath9k_common pppoe ppp_async iptable_nat ath9k_hw ath pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv4 mac80211 ipt_MASQUERADE cfg80211 xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc nf_nat_irc nf_nat_ftp nf_nat nf_defrag_ipv4 nf_conntrack_irc nf_conntrack_ftp iptable_raw iptable_mangle iptable_filter ipt_REJECT ip_tables crc_ccitt compat ledtrig_usbdev ledtrig_netdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables nf_conntrack_ipv6 nf_conntrack nf_defrag_ipv6 ipv6 arc4 crypto_blkcipher leds_gpio ohci_hcd ledtrig_timer ledtrig_default_on ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[  319.580000] CPU: 0 PID: 2196 Comm: iw Not tainted 3.10.34 #1
[  319.590000] Stack : 00000000 00000000 00000000 00000000 80382e7a 00000030 83376328 80327f30
[  319.590000] 	  802d99ec 803293db 00000894 80382628 83376328 80327f30 00200200 80327f30
[  319.590000] 	  00000018 80078fb0 00000003 80076a34 00000002 80327f30 802db2ac 83399644
[  319.590000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  319.590000] 	  00000000 00000000 00000000 00000000 00000000 00000000 00000000 833995d0
[  319.590000] 	  ...
[  319.630000] Call Trace:
[  319.630000] [<8006e278>] show_stack+0x48/0x70
[  319.630000] [<8009a3cc>] __schedule_bug+0x48/0x64
[  319.640000] [<80067c64>] __schedule+0x74/0x488
[  319.640000] [<80068300>] schedule_preempt_disabled+0x10/0x1c
[  319.650000] [<80067234>] __mutex_lock_slowpath+0xb4/0x108
[  319.650000] [<831a5e04>] ieee80211_iterate_active_interfaces+0x38/0x70 [mac80211]
[  319.660000] [<8326a494>] ath_tx_edma_tasklet+0x9c/0x298 [ath9k]
[  319.670000] [<83263db4>] ath9k_tasklet+0x1d4/0x230 [ath9k]
[  319.670000] [<8007e0ac>] tasklet_action+0x84/0xcc
[  319.680000] [<8007d8ac>] __do_softirq+0xd0/0x1b8
[  319.680000] [<8007da34>] do_softirq+0x48/0x68
[  319.690000] [<8007dc68>] irq_exit+0x54/0x70
[  319.690000] [<80060830>] ret_from_irq+0x0/0x4
[  319.700000] [<80078d30>] vprintk_emit+0x3b8/0x3fc
[  319.700000] [<80078fb0>] printk+0x38/0x44
[  319.700000] [<8006dd5c>] show_stacktrace+0x1bc/0x20c
[  319.710000] [<8006e294>] show_stack+0x64/0x70
[  319.710000] [<80076b30>] warn_slowpath_common+0x78/0xa8
[  319.720000] [<80076b8c>] warn_slowpath_fmt+0x2c/0x38
[  319.720000] [<83181670>] ieee80211_bss_info_change_notify+0xcc/0x14c [mac80211]
[  319.730000] [<83199064>] ieee80211_channel_switch+0xe18/0x1a5c [mac80211]
[  319.740000] [<800d9040>] anon_vma_prepare+0xd4/0x144
[  319.740000] [<8022a51c>] __netlink_dump_start+0x114/0x174
[  319.750000] [<8022cf98>] genl_rcv_msg+0x278/0x31c
[  319.750000] [<8022c3c0>] netlink_rcv_skb+0x78/0xf0
[  319.760000] [<8022cd08>] genl_rcv+0x30/0x48
[  319.760000] [<8022bd1c>] netlink_unicast+0x114/0x1f8
[  319.770000] [<8022c188>] netlink_sendmsg+0x2b8/0x328
[  319.770000] [<801f39ac>] sock_sendmsg+0x78/0xa0
[  319.780000] [<801f5330>] ___sys_sendmsg.part.32+0x17c/0x218
[  319.780000] [<801f6498>] __sys_sendmsg+0x54/0x88
[  319.790000] [<800625b0>] stack_done+0x20/0x44
[  319.790000]


Attachments (1)

bug.full-log.txt (18.4 KB) - added by gvalkov@… 4 years ago.
kernel log (dmesg)

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by gvalkov@…

kernel log (dmesg)

comment:1 Changed 4 years ago by nbd

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

fixed in r40430

comment:2 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.