Return-path: Received: from mail-ob0-f179.google.com ([209.85.214.179]:65517 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750904AbaJWFV0 convert rfc822-to-8bit (ORCPT ); Thu, 23 Oct 2014 01:21:26 -0400 Received: by mail-ob0-f179.google.com with SMTP id wp4so221296obc.10 for ; Wed, 22 Oct 2014 22:21:25 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1414014805.4127522.182191541.14C8B4DF@webmail.messagingengine.com> References: <1413463736.1316541.179720977.4FD32021@webmail.messagingengine.com> <1413510814.22769.6.camel@dcbw.local> <1413751717.2510219.180809145.0E693C29@webmail.messagingengine.com> <1413783023.2710583.180921653.10DFFCEE@webmail.messagingengine.com> <1413789724.3063896.180943829.3F15F453@webmail.messagingengine.com> <1413833365.2949853.181221645.22D54845@webmail.messagingengine.com> <54461740.5000903@openwrt.org> <1413879792.3500640.181427549.198E9452@webmail.messagingengine.com> <54461AEF.7040304@openwrt.org> <54463CE9.3060400@gmail.com> <1413921415.3763081.181696749.20A0A495@webmail.messagingengine.com> <1414014805.4127522.182191541.14C8B4DF@webmail.messagingengine.com> Date: Thu, 23 Oct 2014 08:21:25 +0300 Message-ID: (sfid-20141023_072130_109277_20916318) Subject: Re: iwlwifi: Reason 7 periodic disconnect From: Emmanuel Grumbach To: =?UTF-8?Q?Lauren=C8=9Biu_Nicola?= Cc: poma , Dan Williams , linux-wireless Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola wrote: > Nope. It seems that code doesn't get executed when my issue occurs (or > in my five or ten minutes of uptime). I've seen > `ieee80211_reset_ap_probe` get called by `ieee80211_rx_mgmt_probe_resp`, > but (if I'm not wrong) not on every disconnect. > > And as far as I can tell, force_cam is set to true. Can you please try with the patch attached and send the logs? I again need MAC80211_MLME_DEBUG. Thanks. > > Laurentiu > > On Wed, Oct 22, 2014, at 12:10, Emmanuel Grumbach wrote: >> On Tue, Oct 21, 2014 at 10:56 PM, Laurențiu Nicola >> wrote: >> > Yep! `scb_timeout` is 60 on my router. >> > >> > On Tue, Oct 21, 2014, at 14:00, poma wrote: >> >> On 21.10.2014 10:35, Felix Fietkau wrote: >> >> > On 2014-10-21 10:23, Laurențiu Nicola wrote: >> >> >> It's an ASUS RT-N66U running NEWD-2/K3X from r24160. >> >> > This is a Broadcom based device, so it should behave in the same way as >> >> > other APs/Routers running the Broadcom drivers. >> >> > The driver should only send Reason 7 when receiving a PS-Poll, BlockAck, >> >> > BlockAckReq or Action frame from a station that's not associated, so >> >> > probably it has already kicked out your iwlwifi client earlier. Not sure >> >> > why that doesn't show up in the log though. >> >> > >> >> >> >> Whether this might refer to the Station Control Block Timeout value >> >> >> >> http://www.dd-wrt.com/wiki/index.php/Wl#scb_timeout >> >> ... >> >> scb_timeout >> >> >> >> AP only: inactivity timeout value for authenticated stas >> >> >> >> Actually, mac80211 should be probing the AP every 30 seconds but a >> beacon might abort the probe... >> Can you try something like this: >> >> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c >> index 75df184..c9db7cf 100644 >> --- a/net/mac80211/mlme.c >> +++ b/net/mac80211/mlme.c >> @@ -3295,7 +3295,8 @@ static void ieee80211_rx_mgmt_beacon(struct >> ieee80211_sub_if_data *sdata, >> if (ifmgd->flags & IEEE80211_STA_CONNECTION_POLL) { >> mlme_dbg_ratelimited(sdata, >> "cancelling AP probe due to a >> received beacon\n"); >> - ieee80211_reset_ap_probe(sdata); >> + pr_err("Not cancelling the probe to make sure the AP >> hears us from time to time\n"); >> + //ieee80211_reset_ap_probe(sdata); >> } >> >> /* >> >> >> >> >> >> >> poma >> >> >> >> >> >> -- >> >> To unsubscribe from this list: send the line "unsubscribe linux-wireless" >> >> in >> >> the body of a message to majordomo@vger.kernel.org >> >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-wireless" >> in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html