Modify

Opened 3 years ago

Last modified 3 years ago

#20025 new defect

rt2800lib: warning on multiple beaconing interfaces

Reported by: anonymous Owned by: developers
Priority: low Milestone:
Component: kernel Version: Trunk
Keywords: rt2800lib Cc:

Description

rt2800lib produces warning when updating beacons setup if multiple beaconing interfaces (AP mode) are present. beaconing multiple SSIDs seems working, but no idea why the numbers mismatch. tested on mt7620, trunk version.

[ 39.730000] ------------[ cut here ]------------
[ 39.740000] WARNING: CPU: 0 PID: 1236 at /mnt/dl/slave/ramips.mt7620/build/build_dir/target-mipsel_24kec+dsp_musl-1.1.10/linux-ramips_mt7620/compat-wireless-2015-03-09/drivers/net/wireless/rt2x00/rt2800lib.c:1095 rt2800_get_txwi_rxwi_size+0x19c/0x268 [rt2800lib]()
[ 39.760000] Modules linked in: pppoe ppp_async iptable_nat rt2800soc rt2800pci rt2800mmio rt2800lib pppox ppp_generic nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_id xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT slhc rt2x00soc rt2x00pci rt2x00mmio rt2x00lib nf_reject_ipv4 nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_rtcache nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_itu_t crc_ccitt act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress mt76pci mac80211 cfg80211 compat ledtrig_usbdev xt_LED ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables bonding tun dm_crypt dm_mirror dm_region_hash dm_log dm_mod ipv6 eeprom_93cx6 chainiv eseqiv xts crypto_wq krng rng gf128mul arc4 crypto_blkcipher usb_storage sd_mod scsi_mod ext4 jbd2 mbcache crc16 crypto_hash leds_gpio ohci_platform ohci_hcd ehci_platform ehci_hcd gpio_button_hotplug usbcore nls_base usb_common
[ 39.870000] CPU: 0 PID: 1236 Comm: hostapd Not tainted 3.18.17 #1
[ 39.870000] Stack : 00000000 00000000 00000000 00000000 803741f2 00000035 000004d4 00000000
[ 39.870000] 868ea470 00000001 802d3b2c 8032eba3 000004d4 8037341c 868ea470 873db140
[ 39.870000] 00000008 0000001c 00000001 80047970 00000003 8002437c 00000447 873db140
[ 39.870000] 802d7078 008cda9c 00000000 00000000 00000000 00000000 00000000 00000000
[ 39.870000] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 39.870000] ...
[ 39.910000] Call Trace:
[ 39.910000] [<800141a0>] show_stack+0x48/0x70
[ 39.920000] [<80024484>] warn_slowpath_common+0x84/0xb4
[ 39.920000] [<8002453c>] warn_slowpath_null+0x18/0x24
[ 39.930000] [<86804104>] rt2800_get_txwi_rxwi_size+0x19c/0x268 [rt2800lib]
[ 39.940000]
[ 39.940000] ---[ end trace 0bfb0d1cc24f459c ]---

1075 static void rt2800_update_beacons_setup(struct rt2x00_dev *rt2x00dev)
1076 {
1077 struct data_queue *queue = rt2x00dev->bcn;
1078 struct queue_entry *entry;
1079 int i, bcn_num = 0;
1080 u64 off, reg = 0;
1081 u32 bssid_dw1;
1082
1083 /*
1084 * Setup offsets of all active beacons in BCN_OFFSET{0,1} registers.
1085 */
1086 for (i = 0; i < queue->limit; i++) {
1087 entry = &queue->entries[i];
1088 if (!test_bit(ENTRY_BCN_ENABLED, &entry->flags))
1089 continue;
1090 off = rt2800_get_beacon_offset(rt2x00dev, entry->entry_idx);
1091 reg |= off << (8 * bcn_num);
1092 bcn_num++;
1093 }
1094
1095 WARN_ON_ONCE(bcn_num != rt2x00dev->intf_beaconing);
1096
1097 rt2800_register_write(rt2x00dev, BCN_OFFSET0, (u32) reg);
1098 rt2800_register_write(rt2x00dev, BCN_OFFSET1, (u32) (reg >> 32));
1099

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by anonymous

This seems to be a duplicate of #17032, #19189. A patch was made to fix this, but that has been put on hold.
https://lists.openwrt.org/pipermail/openwrt-devel/2014-August/027616.html

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.