Return-path: Received: from mail.neratec.com ([80.75.119.105]:49265 "EHLO mail.neratec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755677Ab3BLKTP (ORCPT ); Tue, 12 Feb 2013 05:19:15 -0500 Message-ID: <511A15D4.6070808@neratec.com> (sfid-20130212_111919_522425_DBB82ED0) Date: Tue, 12 Feb 2013 11:13:40 +0100 From: Wojciech Dubowik MIME-Version: 1.0 To: Kalle Valo CC: Johannes Berg , linux-wireless@vger.kernel.org Subject: Re: [BUG] Beacon loss event every second References: <5118F682.8000502@neratec.com> <1360592857.8738.30.camel@jlt4.sipsolutions.net> <51190341.40806@neratec.com> <87bobpc0ft.fsf@purkki.adurom.net> In-Reply-To: <87bobpc0ft.fsf@purkki.adurom.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 02/12/2013 11:04 AM, Kalle Valo wrote: > Wojciech Dubowik writes: > >> I have connection without sending any data. >> >> I have seen that ieee80211_sta_rx_notify doesn't count beacons >> so the time is not resetted. What was the reason not to count them >> for beacon loss work? Something connected with PS? >> >> Anyway I should get the event every >> >> IEEE80211_BEACON_LOSS_COUNT * bcn period >> >> which in my case should be 7 * 30 ms = 210 ms and not 1 second. >> >> I will keep on digging. > What driver are you using? > I have a test pc with 3x AR9590 and 2x AR9390. Machine is based on i7 and hyperthreading is on so I have 8 cores. I am using latest wireless testing ath9k and 3.8rc7 kernel. What I see is that for some extended periods odf time beacons are not processed in ieee80211_rx_mgmt_beacon and that's why I get beacon loss. I am using 30ms beacon period. What is really funny, that I get this beacon loss message every second. Like is sth was locking ifmgd->mtx mutex at constant intervals. I will try to disable all cores and run in again to see if it's rcu problem. Wojtek