* iwlwifi: Reason 7 periodic disconnect
@ 2014-10-16 12:48 Laurențiu Nicola
2014-10-16 20:42 ` Emmanuel Grumbach
2014-10-17 1:53 ` Dan Williams
0 siblings, 2 replies; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-16 12:48 UTC (permalink / raw)
To: linux-wireless
Hello,
I'm using iwlwifi for a Centrino Ultimate-N 6300 on 3.14.4 and 3.17.1.
Connect to my wireless network works, but I get disconnected every 60
seconds or so. The dmesg output looks like
https://bpaste.net/show/1623a8ae5dc6 .
I had the same issue on the three latest firmware versions:
iwlwifi-6000-ucode-9.176.4.1
iwlwifi-6000-ucode-9.193.4.1
iwlwifi-6000-ucode-9.221.4.1
The dmesg log actually shows the driver loading the different versions
above.
It's the first time I try to use wireless on Linux, so I might have made
a dumb mistake.
Thanks for any tips,
Laurentiu Nicola
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-16 12:48 iwlwifi: Reason 7 periodic disconnect Laurențiu Nicola
@ 2014-10-16 20:42 ` Emmanuel Grumbach
2014-10-17 1:53 ` Dan Williams
1 sibling, 0 replies; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-16 20:42 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: linux-wireless
On Thu, Oct 16, 2014 at 3:48 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> Hello,
>
> I'm using iwlwifi for a Centrino Ultimate-N 6300 on 3.14.4 and 3.17.1.
> Connect to my wireless network works, but I get disconnected every 60
> seconds or so. The dmesg output looks like
> https://bpaste.net/show/1623a8ae5dc6 .
>
> I had the same issue on the three latest firmware versions:
> iwlwifi-6000-ucode-9.176.4.1
> iwlwifi-6000-ucode-9.193.4.1
> iwlwifi-6000-ucode-9.221.4.1
>
> The dmesg log actually shows the driver loading the different versions
> above.
>
> It's the first time I try to use wireless on Linux, so I might have made
> a dumb mistake.
>
I'd try to use a different network manager.
This is the the place to get support for this though.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-16 12:48 iwlwifi: Reason 7 periodic disconnect Laurențiu Nicola
2014-10-16 20:42 ` Emmanuel Grumbach
@ 2014-10-17 1:53 ` Dan Williams
2014-10-19 20:48 ` Laurențiu Nicola
1 sibling, 1 reply; 48+ messages in thread
From: Dan Williams @ 2014-10-17 1:53 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: linux-wireless
On Thu, 2014-10-16 at 15:48 +0300, Laurențiu Nicola wrote:
> Hello,
>
> I'm using iwlwifi for a Centrino Ultimate-N 6300 on 3.14.4 and 3.17.1.
> Connect to my wireless network works, but I get disconnected every 60
> seconds or so. The dmesg output looks like
> https://bpaste.net/show/1623a8ae5dc6 .
>
> I had the same issue on the three latest firmware versions:
> iwlwifi-6000-ucode-9.176.4.1
> iwlwifi-6000-ucode-9.193.4.1
> iwlwifi-6000-ucode-9.221.4.1
>
> The dmesg log actually shows the driver loading the different versions
> above.
>
> It's the first time I try to use wireless on Linux, so I might have made
> a dumb mistake.
Can you try to get debug output from wpa_supplicant, which is the
process that controls WiFi on Linux? What distro and version do you
use, and do you know what WiFi management service is being used?
(NetworkManager, conman, plain wpa_supplicant, wicd, something else?)
Dan
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-17 1:53 ` Dan Williams
@ 2014-10-19 20:48 ` Laurențiu Nicola
2014-10-20 4:52 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-19 20:48 UTC (permalink / raw)
To: Dan Williams; +Cc: linux-wireless
Hello,
Sorry for the late reply. I was using just wpa_supplicant. I also tried
wicd, but it seems to hang when connecting to a network, but my
understanding is that it's just a wpa_supplicant manager. I got this
while installing Gentoo, but I also reproduced it on the Fedora 20 Live
CD. See https://bpaste.net/show/7d5ad99260a7 for logs, but it doesn't
seem to say much more than my original extract.
What I found out in the meanwhile, however, is that active traffic will
prevent the issue from occurring. This happened with the Fedora Live CD,
but pinging the AP is also sufficient. I noticed iwconfig reports that
the power saving mode is off.
For what it's worth, I compiled my kernel and iwlwifi module with
tracing on, so tell me if I should try that.
Laurentiu
On Fri, Oct 17, 2014, at 04:53, Dan Williams wrote:
> On Thu, 2014-10-16 at 15:48 +0300, Laurențiu Nicola wrote:
> > Hello,
> >
> > I'm using iwlwifi for a Centrino Ultimate-N 6300 on 3.14.4 and 3.17.1.
> > Connect to my wireless network works, but I get disconnected every 60
> > seconds or so. The dmesg output looks like
> > https://bpaste.net/show/1623a8ae5dc6 .
> >
> > I had the same issue on the three latest firmware versions:
> > iwlwifi-6000-ucode-9.176.4.1
> > iwlwifi-6000-ucode-9.193.4.1
> > iwlwifi-6000-ucode-9.221.4.1
> >
> > The dmesg log actually shows the driver loading the different versions
> > above.
> >
> > It's the first time I try to use wireless on Linux, so I might have made
> > a dumb mistake.
>
> Can you try to get debug output from wpa_supplicant, which is the
> process that controls WiFi on Linux? What distro and version do you
> use, and do you know what WiFi management service is being used?
> (NetworkManager, conman, plain wpa_supplicant, wicd, something else?)
>
> Dan
>
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-19 20:48 ` Laurențiu Nicola
@ 2014-10-20 4:52 ` Emmanuel Grumbach
2014-10-20 5:30 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-20 4:52 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: Dan Williams, linux-wireless
On Sun, Oct 19, 2014 at 11:48 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> Hello,
>
> Sorry for the late reply. I was using just wpa_supplicant. I also tried
> wicd, but it seems to hang when connecting to a network, but my
> understanding is that it's just a wpa_supplicant manager. I got this
> while installing Gentoo, but I also reproduced it on the Fedora 20 Live
> CD. See https://bpaste.net/show/7d5ad99260a7 for logs, but it doesn't
> seem to say much more than my original extract.
>
> What I found out in the meanwhile, however, is that active traffic will
> prevent the issue from occurring. This happened with the Fedora Live CD,
> but pinging the AP is also sufficient. I noticed iwconfig reports that
> the power saving mode is off.
>
> For what it's worth, I compiled my kernel and iwlwifi module with
> tracing on, so tell me if I should try that.
Please recompile with MAC80211_MLME_DEBUG, MAC80211_STA_DEBUG and
reproduce - thanks.
>
> Laurentiu
>
>
> On Fri, Oct 17, 2014, at 04:53, Dan Williams wrote:
>> On Thu, 2014-10-16 at 15:48 +0300, Laurențiu Nicola wrote:
>> > Hello,
>> >
>> > I'm using iwlwifi for a Centrino Ultimate-N 6300 on 3.14.4 and 3.17.1.
>> > Connect to my wireless network works, but I get disconnected every 60
>> > seconds or so. The dmesg output looks like
>> > https://bpaste.net/show/1623a8ae5dc6 .
>> >
>> > I had the same issue on the three latest firmware versions:
>> > iwlwifi-6000-ucode-9.176.4.1
>> > iwlwifi-6000-ucode-9.193.4.1
>> > iwlwifi-6000-ucode-9.221.4.1
>> >
>> > The dmesg log actually shows the driver loading the different versions
>> > above.
>> >
>> > It's the first time I try to use wireless on Linux, so I might have made
>> > a dumb mistake.
>>
>> Can you try to get debug output from wpa_supplicant, which is the
>> process that controls WiFi on Linux? What distro and version do you
>> use, and do you know what WiFi management service is being used?
>> (NetworkManager, conman, plain wpa_supplicant, wicd, something else?)
>>
>> Dan
>>
> --
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-20 4:52 ` Emmanuel Grumbach
@ 2014-10-20 5:30 ` Laurențiu Nicola
2014-10-20 7:06 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-20 5:30 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: Dan Williams, linux-wireless
Here: https://bpaste.net/show/bf6dc1847ce3
Laurentiu
On Mon, Oct 20, 2014, at 07:52, Emmanuel Grumbach wrote:
> On Sun, Oct 19, 2014 at 11:48 PM, Laurențiu Nicola <lnicola@dend.ro>
> wrote:
> > Hello,
> >
> > Sorry for the late reply. I was using just wpa_supplicant. I also tried
> > wicd, but it seems to hang when connecting to a network, but my
> > understanding is that it's just a wpa_supplicant manager. I got this
> > while installing Gentoo, but I also reproduced it on the Fedora 20 Live
> > CD. See https://bpaste.net/show/7d5ad99260a7 for logs, but it doesn't
> > seem to say much more than my original extract.
> >
> > What I found out in the meanwhile, however, is that active traffic will
> > prevent the issue from occurring. This happened with the Fedora Live CD,
> > but pinging the AP is also sufficient. I noticed iwconfig reports that
> > the power saving mode is off.
> >
> > For what it's worth, I compiled my kernel and iwlwifi module with
> > tracing on, so tell me if I should try that.
>
> Please recompile with MAC80211_MLME_DEBUG, MAC80211_STA_DEBUG and
> reproduce - thanks.
>
> >
> > Laurentiu
> >
> >
> > On Fri, Oct 17, 2014, at 04:53, Dan Williams wrote:
> >> On Thu, 2014-10-16 at 15:48 +0300, Laurențiu Nicola wrote:
> >> > Hello,
> >> >
> >> > I'm using iwlwifi for a Centrino Ultimate-N 6300 on 3.14.4 and 3.17.1.
> >> > Connect to my wireless network works, but I get disconnected every 60
> >> > seconds or so. The dmesg output looks like
> >> > https://bpaste.net/show/1623a8ae5dc6 .
> >> >
> >> > I had the same issue on the three latest firmware versions:
> >> > iwlwifi-6000-ucode-9.176.4.1
> >> > iwlwifi-6000-ucode-9.193.4.1
> >> > iwlwifi-6000-ucode-9.221.4.1
> >> >
> >> > The dmesg log actually shows the driver loading the different versions
> >> > above.
> >> >
> >> > It's the first time I try to use wireless on Linux, so I might have made
> >> > a dumb mistake.
> >>
> >> Can you try to get debug output from wpa_supplicant, which is the
> >> process that controls WiFi on Linux? What distro and version do you
> >> use, and do you know what WiFi management service is being used?
> >> (NetworkManager, conman, plain wpa_supplicant, wicd, something else?)
> >>
> >> Dan
> >>
> > --
> > 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-20 5:30 ` Laurențiu Nicola
@ 2014-10-20 7:06 ` Emmanuel Grumbach
2014-10-20 7:12 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-20 7:06 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: Dan Williams, linux-wireless
On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> Here: https://bpaste.net/show/bf6dc1847ce3
>
Are you sure you had MAC80211_MLME_DEBUG?
>
> Laurentiu
> On Mon, Oct 20, 2014, at 07:52, Emmanuel Grumbach wrote:
>> On Sun, Oct 19, 2014 at 11:48 PM, Laurențiu Nicola <lnicola@dend.ro>
>> wrote:
>> > Hello,
>> >
>> > Sorry for the late reply. I was using just wpa_supplicant. I also tried
>> > wicd, but it seems to hang when connecting to a network, but my
>> > understanding is that it's just a wpa_supplicant manager. I got this
>> > while installing Gentoo, but I also reproduced it on the Fedora 20 Live
>> > CD. See https://bpaste.net/show/7d5ad99260a7 for logs, but it doesn't
>> > seem to say much more than my original extract.
>> >
>> > What I found out in the meanwhile, however, is that active traffic will
>> > prevent the issue from occurring. This happened with the Fedora Live CD,
>> > but pinging the AP is also sufficient. I noticed iwconfig reports that
>> > the power saving mode is off.
>> >
>> > For what it's worth, I compiled my kernel and iwlwifi module with
>> > tracing on, so tell me if I should try that.
>>
>> Please recompile with MAC80211_MLME_DEBUG, MAC80211_STA_DEBUG and
>> reproduce - thanks.
>>
>> >
>> > Laurentiu
>> >
>> >
>> > On Fri, Oct 17, 2014, at 04:53, Dan Williams wrote:
>> >> On Thu, 2014-10-16 at 15:48 +0300, Laurențiu Nicola wrote:
>> >> > Hello,
>> >> >
>> >> > I'm using iwlwifi for a Centrino Ultimate-N 6300 on 3.14.4 and 3.17.1.
>> >> > Connect to my wireless network works, but I get disconnected every 60
>> >> > seconds or so. The dmesg output looks like
>> >> > https://bpaste.net/show/1623a8ae5dc6 .
>> >> >
>> >> > I had the same issue on the three latest firmware versions:
>> >> > iwlwifi-6000-ucode-9.176.4.1
>> >> > iwlwifi-6000-ucode-9.193.4.1
>> >> > iwlwifi-6000-ucode-9.221.4.1
>> >> >
>> >> > The dmesg log actually shows the driver loading the different versions
>> >> > above.
>> >> >
>> >> > It's the first time I try to use wireless on Linux, so I might have made
>> >> > a dumb mistake.
>> >>
>> >> Can you try to get debug output from wpa_supplicant, which is the
>> >> process that controls WiFi on Linux? What distro and version do you
>> >> use, and do you know what WiFi management service is being used?
>> >> (NetworkManager, conman, plain wpa_supplicant, wicd, something else?)
>> >>
>> >> Dan
>> >>
>> > --
>> > 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-20 7:06 ` Emmanuel Grumbach
@ 2014-10-20 7:12 ` Emmanuel Grumbach
2014-10-20 7:22 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-20 7:12 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: Dan Williams, linux-wireless
On Mon, Oct 20, 2014 at 10:06 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> Here: https://bpaste.net/show/bf6dc1847ce3
>>
>
> Are you sure you had MAC80211_MLME_DEBUG?
>
>>
Ok - You probably had it - sorry. But apparently the AP is really kicking us...
What AP do you have?
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-20 7:12 ` Emmanuel Grumbach
@ 2014-10-20 7:22 ` Laurențiu Nicola
2014-10-20 8:23 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-20 7:22 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: Dan Williams, linux-wireless
One thing that might be relevant is that, although there is a static
DHCP lease configured (which works on Windows), the router/AP is giving
the laptop a different IP address. The reported MACs are the same, of
course. I don't know whether wpa_supplicant remembers and requests the
last IP it had, but the lease was already present when I configured it.
The router runs DD-WRT and I don't have problems on Windows or Android.
Laurentiu
On Mon, Oct 20, 2014, at 10:12, Emmanuel Grumbach wrote:
> On Mon, Oct 20, 2014 at 10:06 AM, Emmanuel Grumbach <egrumbach@gmail.com>
> wrote:
> > On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> >> Here: https://bpaste.net/show/bf6dc1847ce3
> >>
> >
> > Are you sure you had MAC80211_MLME_DEBUG?
> >
> >>
> Ok - You probably had it - sorry. But apparently the AP is really kicking
> us...
> What AP do you have?
> --
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-20 7:22 ` Laurențiu Nicola
@ 2014-10-20 8:23 ` Emmanuel Grumbach
2014-10-20 19:29 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-20 8:23 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: Dan Williams, linux-wireless
On Mon, Oct 20, 2014 at 10:22 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> One thing that might be relevant is that, although there is a static
> DHCP lease configured (which works on Windows), the router/AP is giving
> the laptop a different IP address. The reported MACs are the same, of
> course. I don't know whether wpa_supplicant remembers and requests the
> last IP it had, but the lease was already present when I configured it.
>
> The router runs DD-WRT and I don't have problems on Windows or Android.
>
I guess you can try to get some logs from the DD-WRT - but if the AP doesn't
give the same address to Linux as in Windows - there is something fishy...
> Laurentiu
>
> On Mon, Oct 20, 2014, at 10:12, Emmanuel Grumbach wrote:
>> On Mon, Oct 20, 2014 at 10:06 AM, Emmanuel Grumbach <egrumbach@gmail.com>
>> wrote:
>> > On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> >> Here: https://bpaste.net/show/bf6dc1847ce3
>> >>
>> >
>> > Are you sure you had MAC80211_MLME_DEBUG?
>> >
>> >>
>> Ok - You probably had it - sorry. But apparently the AP is really kicking
>> us...
>> What AP do you have?
>> --
>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-20 8:23 ` Emmanuel Grumbach
@ 2014-10-20 19:29 ` Laurențiu Nicola
2014-10-21 5:02 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-20 19:29 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: Dan Williams, linux-wireless
No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
my DHCP client. I also tried various suggestions found on the internet,
but nothing helped.
Laurentiu
On Mon, Oct 20, 2014, at 11:23, Emmanuel Grumbach wrote:
> On Mon, Oct 20, 2014 at 10:22 AM, Laurențiu Nicola <lnicola@dend.ro>
> wrote:
> > One thing that might be relevant is that, although there is a static
> > DHCP lease configured (which works on Windows), the router/AP is giving
> > the laptop a different IP address. The reported MACs are the same, of
> > course. I don't know whether wpa_supplicant remembers and requests the
> > last IP it had, but the lease was already present when I configured it.
> >
> > The router runs DD-WRT and I don't have problems on Windows or Android.
> >
>
> I guess you can try to get some logs from the DD-WRT - but if the AP
> doesn't
> give the same address to Linux as in Windows - there is something
> fishy...
>
> > Laurentiu
> >
> > On Mon, Oct 20, 2014, at 10:12, Emmanuel Grumbach wrote:
> >> On Mon, Oct 20, 2014 at 10:06 AM, Emmanuel Grumbach <egrumbach@gmail.com>
> >> wrote:
> >> > On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> >> >> Here: https://bpaste.net/show/bf6dc1847ce3
> >> >>
> >> >
> >> > Are you sure you had MAC80211_MLME_DEBUG?
> >> >
> >> >>
> >> Ok - You probably had it - sorry. But apparently the AP is really kicking
> >> us...
> >> What AP do you have?
> >> --
> >> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-20 19:29 ` Laurențiu Nicola
@ 2014-10-21 5:02 ` Emmanuel Grumbach
2014-10-21 5:31 ` Emmanuel Grumbach
2014-10-21 8:20 ` Felix Fietkau
0 siblings, 2 replies; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-21 5:02 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: Dan Williams, linux-wireless, Felix Fietkau
On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
> my DHCP client. I also tried various suggestions found on the internet,
> but nothing helped.
>
Can you please try to have another device in monitor mode to sniff the
traffic going on?
Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
thanks.
> Laurentiu
>
> On Mon, Oct 20, 2014, at 11:23, Emmanuel Grumbach wrote:
>> On Mon, Oct 20, 2014 at 10:22 AM, Laurențiu Nicola <lnicola@dend.ro>
>> wrote:
>> > One thing that might be relevant is that, although there is a static
>> > DHCP lease configured (which works on Windows), the router/AP is giving
>> > the laptop a different IP address. The reported MACs are the same, of
>> > course. I don't know whether wpa_supplicant remembers and requests the
>> > last IP it had, but the lease was already present when I configured it.
>> >
>> > The router runs DD-WRT and I don't have problems on Windows or Android.
>> >
>>
>> I guess you can try to get some logs from the DD-WRT - but if the AP
>> doesn't
>> give the same address to Linux as in Windows - there is something
>> fishy...
>>
>> > Laurentiu
>> >
>> > On Mon, Oct 20, 2014, at 10:12, Emmanuel Grumbach wrote:
>> >> On Mon, Oct 20, 2014 at 10:06 AM, Emmanuel Grumbach <egrumbach@gmail.com>
>> >> wrote:
>> >> > On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> >> >> Here: https://bpaste.net/show/bf6dc1847ce3
>> >> >>
>> >> >
>> >> > Are you sure you had MAC80211_MLME_DEBUG?
>> >> >
>> >> >>
>> >> Ok - You probably had it - sorry. But apparently the AP is really kicking
>> >> us...
>> >> What AP do you have?
>> >> --
>> >> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 5:02 ` Emmanuel Grumbach
@ 2014-10-21 5:31 ` Emmanuel Grumbach
2014-10-21 6:36 ` Krishna Chaitanya
2014-10-21 7:28 ` Laurențiu Nicola
2014-10-21 8:20 ` Felix Fietkau
1 sibling, 2 replies; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-21 5:31 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: Dan Williams, linux-wireless, Felix Fietkau
On Tue, Oct 21, 2014 at 8:02 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
>> my DHCP client. I also tried various suggestions found on the internet,
>> but nothing helped.
>>
>
> Can you please try to have another device in monitor mode to sniff the
> traffic going on?
> Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
>
> thanks.
Can you please disable power save?
For this, please make sure you have
https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/commit/?id=f8dfc607b2b460e8e8adfdfb3c5f5bba3a4ad01b
or at least have the module parameter.
I am wondering if the firmware is not sending frames because of power
save toggling.
I you could get more extensive logs from the AP it'd be great.
Running tracing on the AP would let us know why it thinks we are not associated.
>
>> Laurentiu
>>
>> On Mon, Oct 20, 2014, at 11:23, Emmanuel Grumbach wrote:
>>> On Mon, Oct 20, 2014 at 10:22 AM, Laurențiu Nicola <lnicola@dend.ro>
>>> wrote:
>>> > One thing that might be relevant is that, although there is a static
>>> > DHCP lease configured (which works on Windows), the router/AP is giving
>>> > the laptop a different IP address. The reported MACs are the same, of
>>> > course. I don't know whether wpa_supplicant remembers and requests the
>>> > last IP it had, but the lease was already present when I configured it.
>>> >
>>> > The router runs DD-WRT and I don't have problems on Windows or Android.
>>> >
>>>
>>> I guess you can try to get some logs from the DD-WRT - but if the AP
>>> doesn't
>>> give the same address to Linux as in Windows - there is something
>>> fishy...
>>>
>>> > Laurentiu
>>> >
>>> > On Mon, Oct 20, 2014, at 10:12, Emmanuel Grumbach wrote:
>>> >> On Mon, Oct 20, 2014 at 10:06 AM, Emmanuel Grumbach <egrumbach@gmail.com>
>>> >> wrote:
>>> >> > On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>>> >> >> Here: https://bpaste.net/show/bf6dc1847ce3
>>> >> >>
>>> >> >
>>> >> > Are you sure you had MAC80211_MLME_DEBUG?
>>> >> >
>>> >> >>
>>> >> Ok - You probably had it - sorry. But apparently the AP is really kicking
>>> >> us...
>>> >> What AP do you have?
>>> >> --
>>> >> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 5:31 ` Emmanuel Grumbach
@ 2014-10-21 6:36 ` Krishna Chaitanya
2014-10-21 6:37 ` Krishna Chaitanya
2014-10-21 7:28 ` Laurențiu Nicola
1 sibling, 1 reply; 48+ messages in thread
From: Krishna Chaitanya @ 2014-10-21 6:36 UTC (permalink / raw)
To: Emmanuel Grumbach
Cc: Laurențiu Nicola, Dan Williams, linux-wireless,
Felix Fietkau
On Tue, Oct 21, 2014 at 11:01 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> On Tue, Oct 21, 2014 at 8:02 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
>> On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>>> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
>>> my DHCP client. I also tried various suggestions found on the internet,
>>> but nothing helped.
>>>
>>
>> Can you please try to have another device in monitor mode to sniff the
>> traffic going on?
>> Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
>>
>> thanks.
>
> Can you please disable power save?
> For this, please make sure you have
> https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/commit/?id=f8dfc607b2b460e8e8adfdfb3c5f5bba3a4ad01b
> or at least have the module parameter.
> I am wondering if the firmware is not sending frames because of power
> save toggling.
>
> I you could get more extensive logs from the AP it'd be great.
> Running tracing on the AP would let us know why it thinks we are not associated.
>
I have faced the same issue before it happens when DUT is in powersave
and for some reason AP authenticates (in this case probably due to
inactivity) but as DUT is in power save we don't Rx the deauth (some
AP's don't wait
for STA to wakeup and retrieve the deauth frame).
So after that if DUT tries to sent any data frame, as it still thinks
that it is connected
(network lost also will not trigger because it still Rx beacon) and in
that case AP deauthenticates
us by Reason:7.
May be if we enable tx status report ACK we can pass the inactivity
check as some AP's
wont reset inactivity timer for probe's.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 6:36 ` Krishna Chaitanya
@ 2014-10-21 6:37 ` Krishna Chaitanya
2014-10-21 7:04 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Krishna Chaitanya @ 2014-10-21 6:37 UTC (permalink / raw)
To: Emmanuel Grumbach
Cc: Laurențiu Nicola, Dan Williams, linux-wireless,
Felix Fietkau
On Tue, Oct 21, 2014 at 12:06 PM, Krishna Chaitanya
<chaitanya.mgit@gmail.com> wrote:
> On Tue, Oct 21, 2014 at 11:01 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
>> On Tue, Oct 21, 2014 at 8:02 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
>>> On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>>>> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
>>>> my DHCP client. I also tried various suggestions found on the internet,
>>>> but nothing helped.
>>>>
>>>
>>> Can you please try to have another device in monitor mode to sniff the
>>> traffic going on?
>>> Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
>>>
>>> thanks.
>>
>> Can you please disable power save?
>> For this, please make sure you have
>> https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/commit/?id=f8dfc607b2b460e8e8adfdfb3c5f5bba3a4ad01b
>> or at least have the module parameter.
>> I am wondering if the firmware is not sending frames because of power
>> save toggling.
>>
>> I you could get more extensive logs from the AP it'd be great.
>> Running tracing on the AP would let us know why it thinks we are not associated.
>>
> I have faced the same issue before it happens when DUT is in powersave
> and for some reason AP authenticates (in this case probably due to
*typo: deuauthenticates.
> inactivity) but as DUT is in power save we don't Rx the deauth (some
> AP's don't wait
> for STA to wakeup and retrieve the deauth frame).
>
> So after that if DUT tries to sent any data frame, as it still thinks
> that it is connected
> (network lost also will not trigger because it still Rx beacon) and in
> that case AP deauthenticates
> us by Reason:7.
>
> May be if we enable tx status report ACK we can pass the inactivity
> check as some AP's
> wont reset inactivity timer for probe's.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 6:37 ` Krishna Chaitanya
@ 2014-10-21 7:04 ` Emmanuel Grumbach
2014-10-21 7:22 ` Krishna Chaitanya
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-21 7:04 UTC (permalink / raw)
To: Krishna Chaitanya
Cc: Laurențiu Nicola, Dan Williams, linux-wireless,
Felix Fietkau
On Tue, Oct 21, 2014 at 9:37 AM, Krishna Chaitanya
<chaitanya.mgit@gmail.com> wrote:
> On Tue, Oct 21, 2014 at 12:06 PM, Krishna Chaitanya
> <chaitanya.mgit@gmail.com> wrote:
>> On Tue, Oct 21, 2014 at 11:01 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
>>> On Tue, Oct 21, 2014 at 8:02 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
>>>> On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>>>>> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
>>>>> my DHCP client. I also tried various suggestions found on the internet,
>>>>> but nothing helped.
>>>>>
>>>>
>>>> Can you please try to have another device in monitor mode to sniff the
>>>> traffic going on?
>>>> Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
>>>>
>>>> thanks.
>>>
>>> Can you please disable power save?
>>> For this, please make sure you have
>>> https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/commit/?id=f8dfc607b2b460e8e8adfdfb3c5f5bba3a4ad01b
>>> or at least have the module parameter.
>>> I am wondering if the firmware is not sending frames because of power
>>> save toggling.
>>>
>>> I you could get more extensive logs from the AP it'd be great.
>>> Running tracing on the AP would let us know why it thinks we are not associated.
>>>
>> I have faced the same issue before it happens when DUT is in powersave
>> and for some reason AP authenticates (in this case probably due to
> *typo: deuauthenticates.
>
>> inactivity) but as DUT is in power save we don't Rx the deauth (some
>> AP's don't wait
>> for STA to wakeup and retrieve the deauth frame).
>>
>> So after that if DUT tries to sent any data frame, as it still thinks
>> that it is connected
>> (network lost also will not trigger because it still Rx beacon) and in
>> that case AP deauthenticates
>> us by Reason:7.
>>
>> May be if we enable tx status report ACK we can pass the inactivity
>> check as some AP's
>> wont reset inactivity timer for probe's.
That seems unlikely - we are kicked out after 1 minute?
Let's check, Laurentiu - can you please ping in the background and see
what happens?
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 7:04 ` Emmanuel Grumbach
@ 2014-10-21 7:22 ` Krishna Chaitanya
2014-10-21 8:07 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Krishna Chaitanya @ 2014-10-21 7:22 UTC (permalink / raw)
To: Emmanuel Grumbach
Cc: Laurențiu Nicola, Dan Williams, linux-wireless,
Felix Fietkau
On Tue, Oct 21, 2014 at 12:34 PM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> On Tue, Oct 21, 2014 at 9:37 AM, Krishna Chaitanya
> <chaitanya.mgit@gmail.com> wrote:
>> On Tue, Oct 21, 2014 at 12:06 PM, Krishna Chaitanya
>> <chaitanya.mgit@gmail.com> wrote:
>>> On Tue, Oct 21, 2014 at 11:01 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
>>>> On Tue, Oct 21, 2014 at 8:02 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
>>>>> On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>>>>>> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
>>>>>> my DHCP client. I also tried various suggestions found on the internet,
>>>>>> but nothing helped.
>>>>>>
>>>>>
>>>>> Can you please try to have another device in monitor mode to sniff the
>>>>> traffic going on?
>>>>> Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
>>>>>
>>>>> thanks.
>>>>
>>>> Can you please disable power save?
>>>> For this, please make sure you have
>>>> https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/commit/?id=f8dfc607b2b460e8e8adfdfb3c5f5bba3a4ad01b
>>>> or at least have the module parameter.
>>>> I am wondering if the firmware is not sending frames because of power
>>>> save toggling.
>>>>
>>>> I you could get more extensive logs from the AP it'd be great.
>>>> Running tracing on the AP would let us know why it thinks we are not associated.
>>>>
>>> I have faced the same issue before it happens when DUT is in powersave
>>> and for some reason AP authenticates (in this case probably due to
>> *typo: deuauthenticates.
>>
>>> inactivity) but as DUT is in power save we don't Rx the deauth (some
>>> AP's don't wait
>>> for STA to wakeup and retrieve the deauth frame).
>>>
>>> So after that if DUT tries to sent any data frame, as it still thinks
>>> that it is connected
>>> (network lost also will not trigger because it still Rx beacon) and in
>>> that case AP deauthenticates
>>> us by Reason:7.
>>>
>>> May be if we enable tx status report ACK we can pass the inactivity
>>> check as some AP's
>>> wont reset inactivity timer for probe's.
>
> That seems unlikely - we are kicked out after 1 minute?
> Let's check, Laurentiu - can you please ping in the background and see
> what happens?
Yeah, but some Ap's do that :-)
Quote from Laurentiu:
"What I found out in the meanwhile, however, is that active traffic will
prevent the issue from occurring. This happened with the Fedora Live CD,
but pinging the AP is also sufficient. I noticed iwconfig reports that
the power saving mode is off."
So when traffic is there the issue doesn't happen, so it points to inactivity.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 5:31 ` Emmanuel Grumbach
2014-10-21 6:36 ` Krishna Chaitanya
@ 2014-10-21 7:28 ` Laurențiu Nicola
2014-10-21 8:02 ` Emmanuel Grumbach
1 sibling, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-21 7:28 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: Dan Williams, linux-wireless, Felix Fietkau
I have 3.17.1, which includes the patch you mention. I also verified
that iwconfig reports that power management is disabled.
I don't know how easy it is to recompile the DD-WRT kernel. One thing I
could do is try another firmware instead of DD-WRT to see if the issue
still occurs.
Laurentiu
On Tue, Oct 21, 2014, at 08:31, Emmanuel Grumbach wrote:
> On Tue, Oct 21, 2014 at 8:02 AM, Emmanuel Grumbach <egrumbach@gmail.com>
> wrote:
> > On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> >> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
> >> my DHCP client. I also tried various suggestions found on the internet,
> >> but nothing helped.
> >>
> >
> > Can you please try to have another device in monitor mode to sniff the
> > traffic going on?
> > Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
> >
> > thanks.
>
> Can you please disable power save?
> For this, please make sure you have
> https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/commit/?id=f8dfc607b2b460e8e8adfdfb3c5f5bba3a4ad01b
> or at least have the module parameter.
> I am wondering if the firmware is not sending frames because of power
> save toggling.
>
> I you could get more extensive logs from the AP it'd be great.
> Running tracing on the AP would let us know why it thinks we are not
> associated.
>
>
> >
> >> Laurentiu
> >>
> >> On Mon, Oct 20, 2014, at 11:23, Emmanuel Grumbach wrote:
> >>> On Mon, Oct 20, 2014 at 10:22 AM, Laurențiu Nicola <lnicola@dend.ro>
> >>> wrote:
> >>> > One thing that might be relevant is that, although there is a static
> >>> > DHCP lease configured (which works on Windows), the router/AP is giving
> >>> > the laptop a different IP address. The reported MACs are the same, of
> >>> > course. I don't know whether wpa_supplicant remembers and requests the
> >>> > last IP it had, but the lease was already present when I configured it.
> >>> >
> >>> > The router runs DD-WRT and I don't have problems on Windows or Android.
> >>> >
> >>>
> >>> I guess you can try to get some logs from the DD-WRT - but if the AP
> >>> doesn't
> >>> give the same address to Linux as in Windows - there is something
> >>> fishy...
> >>>
> >>> > Laurentiu
> >>> >
> >>> > On Mon, Oct 20, 2014, at 10:12, Emmanuel Grumbach wrote:
> >>> >> On Mon, Oct 20, 2014 at 10:06 AM, Emmanuel Grumbach <egrumbach@gmail.com>
> >>> >> wrote:
> >>> >> > On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> >>> >> >> Here: https://bpaste.net/show/bf6dc1847ce3
> >>> >> >>
> >>> >> >
> >>> >> > Are you sure you had MAC80211_MLME_DEBUG?
> >>> >> >
> >>> >> >>
> >>> >> Ok - You probably had it - sorry. But apparently the AP is really kicking
> >>> >> us...
> >>> >> What AP do you have?
> >>> >> --
> >>> >> 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
> --
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 7:28 ` Laurențiu Nicola
@ 2014-10-21 8:02 ` Emmanuel Grumbach
0 siblings, 0 replies; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-21 8:02 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: Dan Williams, linux-wireless, Felix Fietkau
On Tue, Oct 21, 2014 at 10:28 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> I have 3.17.1, which includes the patch you mention. I also verified
> that iwconfig reports that power management is disabled.
>
> I don't know how easy it is to recompile the DD-WRT kernel. One thing I
> could do is try another firmware instead of DD-WRT to see if the issue
> still occurs.
>
I guess you can try to use the vendor's firmware and see what happens.
Another option is try to tweak DD-WRT not to kick client out after 1 minute :)
> Laurentiu
>
> On Tue, Oct 21, 2014, at 08:31, Emmanuel Grumbach wrote:
>> On Tue, Oct 21, 2014 at 8:02 AM, Emmanuel Grumbach <egrumbach@gmail.com>
>> wrote:
>> > On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> >> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
>> >> my DHCP client. I also tried various suggestions found on the internet,
>> >> but nothing helped.
>> >>
>> >
>> > Can you please try to have another device in monitor mode to sniff the
>> > traffic going on?
>> > Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
>> >
>> > thanks.
>>
>> Can you please disable power save?
>> For this, please make sure you have
>> https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/commit/?id=f8dfc607b2b460e8e8adfdfb3c5f5bba3a4ad01b
>> or at least have the module parameter.
>> I am wondering if the firmware is not sending frames because of power
>> save toggling.
>>
>> I you could get more extensive logs from the AP it'd be great.
>> Running tracing on the AP would let us know why it thinks we are not
>> associated.
>>
>>
>> >
>> >> Laurentiu
>> >>
>> >> On Mon, Oct 20, 2014, at 11:23, Emmanuel Grumbach wrote:
>> >>> On Mon, Oct 20, 2014 at 10:22 AM, Laurențiu Nicola <lnicola@dend.ro>
>> >>> wrote:
>> >>> > One thing that might be relevant is that, although there is a static
>> >>> > DHCP lease configured (which works on Windows), the router/AP is giving
>> >>> > the laptop a different IP address. The reported MACs are the same, of
>> >>> > course. I don't know whether wpa_supplicant remembers and requests the
>> >>> > last IP it had, but the lease was already present when I configured it.
>> >>> >
>> >>> > The router runs DD-WRT and I don't have problems on Windows or Android.
>> >>> >
>> >>>
>> >>> I guess you can try to get some logs from the DD-WRT - but if the AP
>> >>> doesn't
>> >>> give the same address to Linux as in Windows - there is something
>> >>> fishy...
>> >>>
>> >>> > Laurentiu
>> >>> >
>> >>> > On Mon, Oct 20, 2014, at 10:12, Emmanuel Grumbach wrote:
>> >>> >> On Mon, Oct 20, 2014 at 10:06 AM, Emmanuel Grumbach <egrumbach@gmail.com>
>> >>> >> wrote:
>> >>> >> > On Mon, Oct 20, 2014 at 8:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> >>> >> >> Here: https://bpaste.net/show/bf6dc1847ce3
>> >>> >> >>
>> >>> >> >
>> >>> >> > Are you sure you had MAC80211_MLME_DEBUG?
>> >>> >> >
>> >>> >> >>
>> >>> >> Ok - You probably had it - sorry. But apparently the AP is really kicking
>> >>> >> us...
>> >>> >> What AP do you have?
>> >>> >> --
>> >>> >> 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
>> --
>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 7:22 ` Krishna Chaitanya
@ 2014-10-21 8:07 ` Laurențiu Nicola
0 siblings, 0 replies; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-21 8:07 UTC (permalink / raw)
To: Krishna Chaitanya, Emmanuel Grumbach
Cc: Dan Williams, linux-wireless, Felix Fietkau
Could this still happen if power saving is disabled?
Laurentiu
On Tue, Oct 21, 2014, at 10:22, Krishna Chaitanya wrote:
> On Tue, Oct 21, 2014 at 12:34 PM, Emmanuel Grumbach <egrumbach@gmail.com>
> wrote:
> > On Tue, Oct 21, 2014 at 9:37 AM, Krishna Chaitanya
> > <chaitanya.mgit@gmail.com> wrote:
> >> On Tue, Oct 21, 2014 at 12:06 PM, Krishna Chaitanya
> >> <chaitanya.mgit@gmail.com> wrote:
> >>> On Tue, Oct 21, 2014 at 11:01 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> >>>> On Tue, Oct 21, 2014 at 8:02 AM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> >>>>> On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> >>>>>> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
> >>>>>> my DHCP client. I also tried various suggestions found on the internet,
> >>>>>> but nothing helped.
> >>>>>>
> >>>>>
> >>>>> Can you please try to have another device in monitor mode to sniff the
> >>>>> traffic going on?
> >>>>> Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
> >>>>>
> >>>>> thanks.
> >>>>
> >>>> Can you please disable power save?
> >>>> For this, please make sure you have
> >>>> https://git.kernel.org/cgit/linux/kernel/git/iwlwifi/iwlwifi-fixes.git/commit/?id=f8dfc607b2b460e8e8adfdfb3c5f5bba3a4ad01b
> >>>> or at least have the module parameter.
> >>>> I am wondering if the firmware is not sending frames because of power
> >>>> save toggling.
> >>>>
> >>>> I you could get more extensive logs from the AP it'd be great.
> >>>> Running tracing on the AP would let us know why it thinks we are not associated.
> >>>>
> >>> I have faced the same issue before it happens when DUT is in powersave
> >>> and for some reason AP authenticates (in this case probably due to
> >> *typo: deuauthenticates.
> >>
> >>> inactivity) but as DUT is in power save we don't Rx the deauth (some
> >>> AP's don't wait
> >>> for STA to wakeup and retrieve the deauth frame).
> >>>
> >>> So after that if DUT tries to sent any data frame, as it still thinks
> >>> that it is connected
> >>> (network lost also will not trigger because it still Rx beacon) and in
> >>> that case AP deauthenticates
> >>> us by Reason:7.
> >>>
> >>> May be if we enable tx status report ACK we can pass the inactivity
> >>> check as some AP's
> >>> wont reset inactivity timer for probe's.
> >
> > That seems unlikely - we are kicked out after 1 minute?
> > Let's check, Laurentiu - can you please ping in the background and see
> > what happens?
>
> Yeah, but some Ap's do that :-)
> Quote from Laurentiu:
>
> "What I found out in the meanwhile, however, is that active traffic will
> prevent the issue from occurring. This happened with the Fedora Live CD,
> but pinging the AP is also sufficient. I noticed iwconfig reports that
> the power saving mode is off."
>
> So when traffic is there the issue doesn't happen, so it points to
> inactivity.
> --
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 5:02 ` Emmanuel Grumbach
2014-10-21 5:31 ` Emmanuel Grumbach
@ 2014-10-21 8:20 ` Felix Fietkau
2014-10-21 8:23 ` Laurențiu Nicola
1 sibling, 1 reply; 48+ messages in thread
From: Felix Fietkau @ 2014-10-21 8:20 UTC (permalink / raw)
To: Emmanuel Grumbach, Laurențiu Nicola; +Cc: Dan Williams, linux-wireless
On 2014-10-21 07:02, Emmanuel Grumbach wrote:
> On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
>> my DHCP client. I also tried various suggestions found on the internet,
>> but nothing helped.
>>
>
> Can you please try to have another device in monitor mode to sniff the
> traffic going on?
> Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
What kind of device is it, and what software version?
- Felix
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 8:20 ` Felix Fietkau
@ 2014-10-21 8:23 ` Laurențiu Nicola
2014-10-21 8:35 ` Felix Fietkau
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-21 8:23 UTC (permalink / raw)
To: Felix Fietkau, Emmanuel Grumbach; +Cc: Dan Williams, linux-wireless
It's an ASUS RT-N66U running NEWD-2/K3X from r24160.
Laurentiu
On Tue, Oct 21, 2014, at 11:20, Felix Fietkau wrote:
> On 2014-10-21 07:02, Emmanuel Grumbach wrote:
> > On Mon, Oct 20, 2014 at 10:29 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> >> No, nothing in the DD-WRT syslog. The IP seems to be the one cached by
> >> my DHCP client. I also tried various suggestions found on the internet,
> >> but nothing helped.
> >>
> >
> > Can you please try to have another device in monitor mode to sniff the
> > traffic going on?
> > Felix, can you please tell me when DD-WRT can send a deauth with reason code 7?
> What kind of device is it, and what software version?
>
> - Felix
> --
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 8:23 ` Laurențiu Nicola
@ 2014-10-21 8:35 ` Felix Fietkau
2014-10-21 8:37 ` Laurențiu Nicola
` (2 more replies)
0 siblings, 3 replies; 48+ messages in thread
From: Felix Fietkau @ 2014-10-21 8:35 UTC (permalink / raw)
To: Laurențiu Nicola, Emmanuel Grumbach; +Cc: Dan Williams, linux-wireless
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.
- Felix
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 8:35 ` Felix Fietkau
@ 2014-10-21 8:37 ` Laurențiu Nicola
2014-10-21 8:44 ` Emmanuel Grumbach
2014-10-21 9:05 ` Krishna Chaitanya
2014-10-21 11:00 ` poma
2 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-21 8:37 UTC (permalink / raw)
To: Felix Fietkau, Emmanuel Grumbach; +Cc: Dan Williams, linux-wireless
Perhaps I'm not looking at the right log :). Do you mean enabling syslog
and /tmp/var/log/messages?
Laurentiu
On Tue, Oct 21, 2014, at 11: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.
>
> - Felix
> --
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 8:37 ` Laurențiu Nicola
@ 2014-10-21 8:44 ` Emmanuel Grumbach
0 siblings, 0 replies; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-21 8:44 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: Felix Fietkau, Dan Williams, linux-wireless
On Tue, Oct 21, 2014 at 11:37 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> Perhaps I'm not looking at the right log :). Do you mean enabling syslog
> and /tmp/var/log/messages?
>
> Laurentiu
>
> On Tue, Oct 21, 2014, at 11: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.
>>
Note that it kicks iwlwifi after 1 minute - this seems short?
>> - Felix
>> --
>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 8:35 ` Felix Fietkau
2014-10-21 8:37 ` Laurențiu Nicola
@ 2014-10-21 9:05 ` Krishna Chaitanya
2014-10-21 9:16 ` Emmanuel Grumbach
2014-10-21 11:00 ` poma
2 siblings, 1 reply; 48+ messages in thread
From: Krishna Chaitanya @ 2014-10-21 9:05 UTC (permalink / raw)
To: Felix Fietkau
Cc: Laurențiu Nicola, Emmanuel Grumbach, Dan Williams,
linux-wireless
On Tue, Oct 21, 2014 at 2:05 PM, Felix Fietkau <nbd@openwrt.org> 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.
>
May be iwlwifi is dozing and did not Rx that frame?
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 9:05 ` Krishna Chaitanya
@ 2014-10-21 9:16 ` Emmanuel Grumbach
2014-10-21 9:57 ` Krishna Chaitanya
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-21 9:16 UTC (permalink / raw)
To: Krishna Chaitanya
Cc: Felix Fietkau, Laurențiu Nicola, Dan Williams,
linux-wireless
On Tue, Oct 21, 2014 at 12:05 PM, Krishna Chaitanya
<chaitanya.mgit@gmail.com> wrote:
> On Tue, Oct 21, 2014 at 2:05 PM, Felix Fietkau <nbd@openwrt.org> 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.
>>
> May be iwlwifi is dozing and did not Rx that frame?
yep - this is most probably what happens. iwlwifi goes to sleep and it
get a deauth that it doesn't hear. Then it wakes up with an NDP and
gets kicked out.
But shouldn't the deauth be buffered and indicated through the TIM IE?
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 9:16 ` Emmanuel Grumbach
@ 2014-10-21 9:57 ` Krishna Chaitanya
0 siblings, 0 replies; 48+ messages in thread
From: Krishna Chaitanya @ 2014-10-21 9:57 UTC (permalink / raw)
To: Emmanuel Grumbach
Cc: Felix Fietkau, Laurențiu Nicola, Dan Williams,
linux-wireless
On Tue, Oct 21, 2014 at 2:46 PM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> On Tue, Oct 21, 2014 at 12:05 PM, Krishna Chaitanya
> <chaitanya.mgit@gmail.com> wrote:
>> On Tue, Oct 21, 2014 at 2:05 PM, Felix Fietkau <nbd@openwrt.org> 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.
>>>
>> May be iwlwifi is dozing and did not Rx that frame?
>
> yep - this is most probably what happens. iwlwifi goes to sleep and it
> get a deauth that it doesn't hear. Then it wakes up with an NDP and
> gets kicked out.
> But shouldn't the deauth be buffered and indicated through the TIM IE?
Yes, but not all AP's do that, at least the one i faced the issue was
not doing that.
--
Thanks,
Regards,
Chaitanya T K.
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 8:35 ` Felix Fietkau
2014-10-21 8:37 ` Laurențiu Nicola
2014-10-21 9:05 ` Krishna Chaitanya
@ 2014-10-21 11:00 ` poma
2014-10-21 19:56 ` Laurențiu Nicola
2 siblings, 1 reply; 48+ messages in thread
From: poma @ 2014-10-21 11:00 UTC (permalink / raw)
To: Felix Fietkau, Laurențiu Nicola, Emmanuel Grumbach
Cc: Dan Williams, linux-wireless
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
poma
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 11:00 ` poma
@ 2014-10-21 19:56 ` Laurențiu Nicola
2014-10-22 9:10 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-21 19:56 UTC (permalink / raw)
To: poma, Felix Fietkau, Emmanuel Grumbach; +Cc: Dan Williams, linux-wireless
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
>
>
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-21 19:56 ` Laurențiu Nicola
@ 2014-10-22 9:10 ` Emmanuel Grumbach
2014-10-22 21:53 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-22 9:10 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Felix Fietkau, Dan Williams, linux-wireless
On Tue, Oct 21, 2014 at 10:56 PM, Laurențiu Nicola <lnicola@dend.ro> 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
^ permalink raw reply related [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-22 9:10 ` Emmanuel Grumbach
@ 2014-10-22 21:53 ` Laurențiu Nicola
2014-10-23 5:21 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-22 21:53 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: poma, Felix Fietkau, Dan Williams, linux-wireless
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.
Laurentiu
On Wed, Oct 22, 2014, at 12:10, Emmanuel Grumbach wrote:
> On Tue, Oct 21, 2014 at 10:56 PM, Laurențiu Nicola <lnicola@dend.ro>
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-22 21:53 ` Laurențiu Nicola
@ 2014-10-23 5:21 ` Emmanuel Grumbach
2014-10-23 7:30 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-23 5:21 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro> 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 <lnicola@dend.ro>
>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 5:21 ` Emmanuel Grumbach
@ 2014-10-23 7:30 ` Laurențiu Nicola
2014-10-23 8:07 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-23 7:30 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: poma, Dan Williams, linux-wireless
I did; the card still gets disconnected and the message doesn't show up
in dmesg.
Laurentiu
On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
> 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 <lnicola@dend.ro>
> >> 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
> --
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 7:30 ` Laurențiu Nicola
@ 2014-10-23 8:07 ` Emmanuel Grumbach
2014-10-23 16:02 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-23 8:07 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
On Thu, Oct 23, 2014 at 10:30 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> I did; the card still gets disconnected and the message doesn't show up
> in dmesg.
>
You had *none* of the many prints I added in the log?
That seems really weird...
> Laurentiu
>
> On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
>> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
>> 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 <lnicola@dend.ro>
>> >> 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
>> --
>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 8:07 ` Emmanuel Grumbach
@ 2014-10-23 16:02 ` Laurențiu Nicola
2014-10-23 16:46 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-23 16:02 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: poma, Dan Williams, linux-wireless
Sorry, but I only saw a two-line change [1] to
`ieee80211_rx_mgmt_beacon` (which already had a log message). Am I
missing something?
[1] http://www.spinics.net/lists/linux-wireless/msg128340.html
Laurentiu
On Thu, Oct 23, 2014, at 11:07, Emmanuel Grumbach wrote:
> On Thu, Oct 23, 2014 at 10:30 AM, Laurențiu Nicola <lnicola@dend.ro>
> wrote:
> > I did; the card still gets disconnected and the message doesn't show up
> > in dmesg.
> >
>
> You had *none* of the many prints I added in the log?
>
> That seems really weird...
>
> > Laurentiu
> >
> > On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
> >> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
> >> 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 <lnicola@dend.ro>
> >> >> 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
> >> --
> >> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 16:02 ` Laurențiu Nicola
@ 2014-10-23 16:46 ` Emmanuel Grumbach
2014-10-23 17:38 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-23 16:46 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 4757 bytes --]
On Thu, Oct 23, 2014 at 7:02 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> Sorry, but I only saw a two-line change [1] to
> `ieee80211_rx_mgmt_beacon` (which already had a log message). Am I
> missing something?
>
> [1] http://www.spinics.net/lists/linux-wireless/msg128340.html
>
No - you are not. I did miss something...I forgot to attach the patch.
Here you go.
> Laurentiu
>
> On Thu, Oct 23, 2014, at 11:07, Emmanuel Grumbach wrote:
>> On Thu, Oct 23, 2014 at 10:30 AM, Laurențiu Nicola <lnicola@dend.ro>
>> wrote:
>> > I did; the card still gets disconnected and the message doesn't show up
>> > in dmesg.
>> >
>>
>> You had *none* of the many prints I added in the log?
>>
>> That seems really weird...
>>
>> > Laurentiu
>> >
>> > On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
>> >> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
>> >> 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 <lnicola@dend.ro>
>> >> >> 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
>> >> --
>> >> 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
[-- Attachment #2: PROBE.patch --]
[-- Type: application/octet-stream, Size: 2369 bytes --]
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 75df184..e9c2f16 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -129,6 +129,7 @@ void ieee80211_sta_reset_conn_monitor(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
+ mlme_dbg(sdata, "%s:%d\n", __func__, __LINE__);
if (unlikely(!sdata->u.mgd.associated))
return;
@@ -137,6 +138,7 @@ void ieee80211_sta_reset_conn_monitor(struct ieee80211_sub_if_data *sdata)
if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR)
return;
+ mlme_dbg(sdata, "%s:%d\n", __func__, __LINE__);
mod_timer(&sdata->u.mgd.conn_mon_timer,
round_jiffies_up(jiffies + IEEE80211_CONNECTION_IDLE_TIME));
}
@@ -2082,6 +2084,7 @@ void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata,
if (is_multicast_ether_addr(hdr->addr1))
return;
+ mlme_dbg(sdata, "%s:%d reseting the Conn monitor\n", __func__, __LINE__);
ieee80211_sta_reset_conn_monitor(sdata);
}
@@ -2090,6 +2093,8 @@ static void ieee80211_reset_ap_probe(struct ieee80211_sub_if_data *sdata)
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
struct ieee80211_local *local = sdata->local;
+ mlme_dbg(sdata, "%s:%d start\n", __func__, __LINE__);
+
mutex_lock(&local->mtx);
if (!(ifmgd->flags & IEEE80211_STA_CONNECTION_POLL))
goto out;
@@ -2110,6 +2115,7 @@ static void ieee80211_reset_ap_probe(struct ieee80211_sub_if_data *sdata)
*/
ieee80211_sta_reset_beacon_monitor(sdata);
+ mlme_dbg(sdata, "%s:%d postponing the Conn_mon_timer\n", __func__, __LINE__);
mod_timer(&ifmgd->conn_mon_timer,
round_jiffies_up(jiffies +
IEEE80211_CONNECTION_IDLE_TIME));
@@ -2162,16 +2168,20 @@ void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata,
if (ieee80211_is_nullfunc(hdr->frame_control) &&
sdata->u.mgd.probe_send_count > 0) {
- if (ack)
+ if (ack) {
+ mlme_dbg(sdata, "%s:%d Reseting conn mon\n", __func__, __LINE__);
ieee80211_sta_reset_conn_monitor(sdata);
+ }
else
sdata->u.mgd.nullfunc_failed = true;
ieee80211_queue_work(&sdata->local->hw, &sdata->work);
return;
}
- if (ack)
+ if (ack) {
+ mlme_dbg(sdata, "%s:%d Reseting conn mon\n", __func__, __LINE__);
ieee80211_sta_reset_conn_monitor(sdata);
+ }
}
static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data *sdata)
^ permalink raw reply related [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 16:46 ` Emmanuel Grumbach
@ 2014-10-23 17:38 ` Laurențiu Nicola
2014-10-23 19:28 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-23 17:38 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: poma, Dan Williams, linux-wireless
Okay. I'm running 3.17.1, so the line numbers might not be the ones
you're expecting:
patching file net/mac80211/mlme.c
Hunk #1 succeeded at 128 (offset -1 lines).
Hunk #2 succeeded at 137 (offset -1 lines).
Hunk #3 succeeded at 1875 (offset -209 lines).
Hunk #4 succeeded at 1886 (offset -207 lines).
Hunk #5 succeeded at 1908 (offset -207 lines).
Hunk #6 succeeded at 1924 (offset -244 lines).
dmesg output is at https://bpaste.net/show/649277aaada8 .
Laurentiu
On Thu, Oct 23, 2014, at 19:46, Emmanuel Grumbach wrote:
> On Thu, Oct 23, 2014 at 7:02 PM, Laurențiu Nicola <lnicola@dend.ro>
> wrote:
> > Sorry, but I only saw a two-line change [1] to
> > `ieee80211_rx_mgmt_beacon` (which already had a log message). Am I
> > missing something?
> >
> > [1] http://www.spinics.net/lists/linux-wireless/msg128340.html
> >
>
> No - you are not. I did miss something...I forgot to attach the patch.
> Here you go.
>
> > Laurentiu
> >
> > On Thu, Oct 23, 2014, at 11:07, Emmanuel Grumbach wrote:
> >> On Thu, Oct 23, 2014 at 10:30 AM, Laurențiu Nicola <lnicola@dend.ro>
> >> wrote:
> >> > I did; the card still gets disconnected and the message doesn't show up
> >> > in dmesg.
> >> >
> >>
> >> You had *none* of the many prints I added in the log?
> >>
> >> That seems really weird...
> >>
> >> > Laurentiu
> >> >
> >> > On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
> >> >> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
> >> >> 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 <lnicola@dend.ro>
> >> >> >> 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
> >> >> --
> >> >> 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
> Email had 1 attachment:
> + PROBE.patch
> 3k (application/octet-stream)
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 17:38 ` Laurențiu Nicola
@ 2014-10-23 19:28 ` Emmanuel Grumbach
2014-10-23 19:42 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-23 19:28 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 5928 bytes --]
On Thu, Oct 23, 2014 at 8:38 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> Okay. I'm running 3.17.1, so the line numbers might not be the ones
> you're expecting:
>
> patching file net/mac80211/mlme.c
> Hunk #1 succeeded at 128 (offset -1 lines).
> Hunk #2 succeeded at 137 (offset -1 lines).
> Hunk #3 succeeded at 1875 (offset -209 lines).
> Hunk #4 succeeded at 1886 (offset -207 lines).
> Hunk #5 succeeded at 1908 (offset -207 lines).
> Hunk #6 succeeded at 1924 (offset -244 lines).
>
> dmesg output is at https://bpaste.net/show/649277aaada8 .
can you please test the patch attached?
(remove the previous one first please)
>
> Laurentiu
>
> On Thu, Oct 23, 2014, at 19:46, Emmanuel Grumbach wrote:
>> On Thu, Oct 23, 2014 at 7:02 PM, Laurențiu Nicola <lnicola@dend.ro>
>> wrote:
>> > Sorry, but I only saw a two-line change [1] to
>> > `ieee80211_rx_mgmt_beacon` (which already had a log message). Am I
>> > missing something?
>> >
>> > [1] http://www.spinics.net/lists/linux-wireless/msg128340.html
>> >
>>
>> No - you are not. I did miss something...I forgot to attach the patch.
>> Here you go.
>>
>> > Laurentiu
>> >
>> > On Thu, Oct 23, 2014, at 11:07, Emmanuel Grumbach wrote:
>> >> On Thu, Oct 23, 2014 at 10:30 AM, Laurențiu Nicola <lnicola@dend.ro>
>> >> wrote:
>> >> > I did; the card still gets disconnected and the message doesn't show up
>> >> > in dmesg.
>> >> >
>> >>
>> >> You had *none* of the many prints I added in the log?
>> >>
>> >> That seems really weird...
>> >>
>> >> > Laurentiu
>> >> >
>> >> > On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
>> >> >> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
>> >> >> 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 <lnicola@dend.ro>
>> >> >> >> 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
>> >> >> --
>> >> >> 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
>> Email had 1 attachment:
>> + PROBE.patch
>> 3k (application/octet-stream)
[-- Attachment #2: a.patch --]
[-- Type: application/octet-stream, Size: 2020 bytes --]
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2de8870..917371d 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1933,23 +1933,6 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM;
}
-void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata,
- struct ieee80211_hdr *hdr)
-{
- /*
- * We can postpone the mgd.timer whenever receiving unicast frames
- * from AP because we know that the connection is working both ways
- * at that time. But multicast frames (and hence also beacons) must
- * be ignored here, because we need to trigger the timer during
- * data idle periods for sending the periodic probe request to the
- * AP we're connected to.
- */
- if (is_multicast_ether_addr(hdr->addr1))
- return;
-
- ieee80211_sta_reset_conn_monitor(sdata);
-}
-
static void ieee80211_reset_ap_probe(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
@@ -1975,13 +1958,27 @@ static void ieee80211_reset_ap_probe(struct ieee80211_sub_if_data *sdata)
*/
ieee80211_sta_reset_beacon_monitor(sdata);
- mod_timer(&ifmgd->conn_mon_timer,
- round_jiffies_up(jiffies +
- IEEE80211_CONNECTION_IDLE_TIME));
out:
mutex_unlock(&local->mtx);
}
+void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata,
+ struct ieee80211_hdr *hdr)
+{
+ /*
+ * We can postpone the mgd.timer whenever receiving unicast frames
+ * from AP because we know that the connection is working both ways
+ * at that time. But multicast frames (and hence also beacons) must
+ * be ignored here, because we need to trigger the timer during
+ * data idle periods for sending the periodic probe request to the
+ * AP we're connected to.
+ */
+ if (is_multicast_ether_addr(hdr->addr1))
+ return;
+
+ ieee80211_reset_ap_probe(sdata);
+}
+
void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata,
struct ieee80211_hdr *hdr, bool ack)
{
^ permalink raw reply related [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 19:28 ` Emmanuel Grumbach
@ 2014-10-23 19:42 ` Laurențiu Nicola
2014-10-23 19:55 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-23 19:42 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: poma, Dan Williams, linux-wireless
Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
Laurentiu
On Thu, Oct 23, 2014, at 22:28, Emmanuel Grumbach wrote:
> On Thu, Oct 23, 2014 at 8:38 PM, Laurențiu Nicola <lnicola@dend.ro>
> wrote:
> > Okay. I'm running 3.17.1, so the line numbers might not be the ones
> > you're expecting:
> >
> > patching file net/mac80211/mlme.c
> > Hunk #1 succeeded at 128 (offset -1 lines).
> > Hunk #2 succeeded at 137 (offset -1 lines).
> > Hunk #3 succeeded at 1875 (offset -209 lines).
> > Hunk #4 succeeded at 1886 (offset -207 lines).
> > Hunk #5 succeeded at 1908 (offset -207 lines).
> > Hunk #6 succeeded at 1924 (offset -244 lines).
> >
> > dmesg output is at https://bpaste.net/show/649277aaada8 .
>
> can you please test the patch attached?
>
> (remove the previous one first please)
>
> >
> > Laurentiu
> >
> > On Thu, Oct 23, 2014, at 19:46, Emmanuel Grumbach wrote:
> >> On Thu, Oct 23, 2014 at 7:02 PM, Laurențiu Nicola <lnicola@dend.ro>
> >> wrote:
> >> > Sorry, but I only saw a two-line change [1] to
> >> > `ieee80211_rx_mgmt_beacon` (which already had a log message). Am I
> >> > missing something?
> >> >
> >> > [1] http://www.spinics.net/lists/linux-wireless/msg128340.html
> >> >
> >>
> >> No - you are not. I did miss something...I forgot to attach the patch.
> >> Here you go.
> >>
> >> > Laurentiu
> >> >
> >> > On Thu, Oct 23, 2014, at 11:07, Emmanuel Grumbach wrote:
> >> >> On Thu, Oct 23, 2014 at 10:30 AM, Laurențiu Nicola <lnicola@dend.ro>
> >> >> wrote:
> >> >> > I did; the card still gets disconnected and the message doesn't show up
> >> >> > in dmesg.
> >> >> >
> >> >>
> >> >> You had *none* of the many prints I added in the log?
> >> >>
> >> >> That seems really weird...
> >> >>
> >> >> > Laurentiu
> >> >> >
> >> >> > On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
> >> >> >> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
> >> >> >> 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 <lnicola@dend.ro>
> >> >> >> >> 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
> >> >> >> --
> >> >> >> 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
> >> Email had 1 attachment:
> >> + PROBE.patch
> >> 3k (application/octet-stream)
> Email had 1 attachment:
> + a.patch
> 3k (application/octet-stream)
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 19:42 ` Laurențiu Nicola
@ 2014-10-23 19:55 ` Emmanuel Grumbach
2014-10-23 20:07 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-23 19:55 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 6696 bytes --]
On Thu, Oct 23, 2014 at 10:42 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
ok - let me re-add the logs...
>
> Laurentiu
>
> On Thu, Oct 23, 2014, at 22:28, Emmanuel Grumbach wrote:
>> On Thu, Oct 23, 2014 at 8:38 PM, Laurențiu Nicola <lnicola@dend.ro>
>> wrote:
>> > Okay. I'm running 3.17.1, so the line numbers might not be the ones
>> > you're expecting:
>> >
>> > patching file net/mac80211/mlme.c
>> > Hunk #1 succeeded at 128 (offset -1 lines).
>> > Hunk #2 succeeded at 137 (offset -1 lines).
>> > Hunk #3 succeeded at 1875 (offset -209 lines).
>> > Hunk #4 succeeded at 1886 (offset -207 lines).
>> > Hunk #5 succeeded at 1908 (offset -207 lines).
>> > Hunk #6 succeeded at 1924 (offset -244 lines).
>> >
>> > dmesg output is at https://bpaste.net/show/649277aaada8 .
>>
>> can you please test the patch attached?
>>
>> (remove the previous one first please)
>>
>> >
>> > Laurentiu
>> >
>> > On Thu, Oct 23, 2014, at 19:46, Emmanuel Grumbach wrote:
>> >> On Thu, Oct 23, 2014 at 7:02 PM, Laurențiu Nicola <lnicola@dend.ro>
>> >> wrote:
>> >> > Sorry, but I only saw a two-line change [1] to
>> >> > `ieee80211_rx_mgmt_beacon` (which already had a log message). Am I
>> >> > missing something?
>> >> >
>> >> > [1] http://www.spinics.net/lists/linux-wireless/msg128340.html
>> >> >
>> >>
>> >> No - you are not. I did miss something...I forgot to attach the patch.
>> >> Here you go.
>> >>
>> >> > Laurentiu
>> >> >
>> >> > On Thu, Oct 23, 2014, at 11:07, Emmanuel Grumbach wrote:
>> >> >> On Thu, Oct 23, 2014 at 10:30 AM, Laurențiu Nicola <lnicola@dend.ro>
>> >> >> wrote:
>> >> >> > I did; the card still gets disconnected and the message doesn't show up
>> >> >> > in dmesg.
>> >> >> >
>> >> >>
>> >> >> You had *none* of the many prints I added in the log?
>> >> >>
>> >> >> That seems really weird...
>> >> >>
>> >> >> > Laurentiu
>> >> >> >
>> >> >> > On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
>> >> >> >> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
>> >> >> >> 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 <lnicola@dend.ro>
>> >> >> >> >> 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
>> >> >> >> --
>> >> >> >> 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
>> >> Email had 1 attachment:
>> >> + PROBE.patch
>> >> 3k (application/octet-stream)
>> Email had 1 attachment:
>> + a.patch
>> 3k (application/octet-stream)
[-- Attachment #2: a.patch --]
[-- Type: application/octet-stream, Size: 4348 bytes --]
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2de8870..457f5207 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -129,6 +129,7 @@ void ieee80211_sta_reset_conn_monitor(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
+ mlme_dbg(sdata, "%s:%d\n", __func__, __LINE__);
if (unlikely(!sdata->u.mgd.associated))
return;
@@ -137,6 +138,9 @@ void ieee80211_sta_reset_conn_monitor(struct ieee80211_sub_if_data *sdata)
if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR)
return;
+ mlme_dbg(sdata, "%s:%d\n", __func__, __LINE__);
+
+ dump_stack();
mod_timer(&sdata->u.mgd.conn_mon_timer,
round_jiffies_up(jiffies + IEEE80211_CONNECTION_IDLE_TIME));
}
@@ -1933,28 +1937,13 @@ static void ieee80211_set_disassoc(struct ieee80211_sub_if_data *sdata,
sdata->encrypt_headroom = IEEE80211_ENCRYPT_HEADROOM;
}
-void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata,
- struct ieee80211_hdr *hdr)
-{
- /*
- * We can postpone the mgd.timer whenever receiving unicast frames
- * from AP because we know that the connection is working both ways
- * at that time. But multicast frames (and hence also beacons) must
- * be ignored here, because we need to trigger the timer during
- * data idle periods for sending the periodic probe request to the
- * AP we're connected to.
- */
- if (is_multicast_ether_addr(hdr->addr1))
- return;
-
- ieee80211_sta_reset_conn_monitor(sdata);
-}
-
static void ieee80211_reset_ap_probe(struct ieee80211_sub_if_data *sdata)
{
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
struct ieee80211_local *local = sdata->local;
+ mlme_dbg(sdata, "%s:%d start\n", __func__, __LINE__);
+
mutex_lock(&local->mtx);
if (!(ifmgd->flags & IEEE80211_STA_CONNECTION_POLL))
goto out;
@@ -1975,13 +1964,27 @@ static void ieee80211_reset_ap_probe(struct ieee80211_sub_if_data *sdata)
*/
ieee80211_sta_reset_beacon_monitor(sdata);
- mod_timer(&ifmgd->conn_mon_timer,
- round_jiffies_up(jiffies +
- IEEE80211_CONNECTION_IDLE_TIME));
out:
mutex_unlock(&local->mtx);
}
+void ieee80211_sta_rx_notify(struct ieee80211_sub_if_data *sdata,
+ struct ieee80211_hdr *hdr)
+{
+ /*
+ * We can postpone the mgd.timer whenever receiving unicast frames
+ * from AP because we know that the connection is working both ways
+ * at that time. But multicast frames (and hence also beacons) must
+ * be ignored here, because we need to trigger the timer during
+ * data idle periods for sending the periodic probe request to the
+ * AP we're connected to.
+ */
+ if (is_multicast_ether_addr(hdr->addr1))
+ return;
+
+ ieee80211_reset_ap_probe(sdata);
+}
+
void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata,
struct ieee80211_hdr *hdr, bool ack)
{
@@ -1990,16 +1993,20 @@ void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata,
if (ieee80211_is_nullfunc(hdr->frame_control) &&
sdata->u.mgd.probe_send_count > 0) {
- if (ack)
+ if (ack) {
+ mlme_dbg(sdata, "%s:%d Reseting conn mon\n", __func__, __LINE__);
ieee80211_sta_reset_conn_monitor(sdata);
+ }
else
sdata->u.mgd.nullfunc_failed = true;
ieee80211_queue_work(&sdata->local->hw, &sdata->work);
return;
}
- if (ack)
+ if (ack) {
+ mlme_dbg(sdata, "%s:%d Reseting conn mon\n", __func__, __LINE__);
ieee80211_sta_reset_conn_monitor(sdata);
+ }
}
static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data *sdata)
@@ -3682,6 +3689,7 @@ static void ieee80211_sta_conn_mon_timer(unsigned long data)
(struct ieee80211_sub_if_data *) data;
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
struct ieee80211_local *local = sdata->local;
+ mlme_dbg(sdata, "%s:%d\n", __func__, __LINE__);
if (local->quiescing)
return;
@@ -3689,6 +3697,7 @@ static void ieee80211_sta_conn_mon_timer(unsigned long data)
if (sdata->vif.csa_active)
return;
+ mlme_dbg(sdata, "%s:%d KICKING PROBE\n", __func__, __LINE__);
ieee80211_queue_work(&local->hw, &ifmgd->monitor_work);
}
@@ -3698,6 +3707,7 @@ static void ieee80211_sta_monitor_work(struct work_struct *work)
container_of(work, struct ieee80211_sub_if_data,
u.mgd.monitor_work);
+ mlme_dbg(sdata, "%s:%d\n", __func__, __LINE__);
ieee80211_mgd_probe_ap(sdata, false);
}
^ permalink raw reply related [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 19:55 ` Emmanuel Grumbach
@ 2014-10-23 20:07 ` Laurențiu Nicola
2014-10-23 20:16 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-23 20:07 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: poma, Dan Williams, linux-wireless
https://bpaste.net/show/5cc48256d952
On Thu, Oct 23, 2014, at 22:55, Emmanuel Grumbach wrote:
> On Thu, Oct 23, 2014 at 10:42 PM, Laurențiu Nicola <lnicola@dend.ro>
> wrote:
> > Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
>
> ok - let me re-add the logs...
>
>
> >
> > Laurentiu
> >
> > On Thu, Oct 23, 2014, at 22:28, Emmanuel Grumbach wrote:
> >> On Thu, Oct 23, 2014 at 8:38 PM, Laurențiu Nicola <lnicola@dend.ro>
> >> wrote:
> >> > Okay. I'm running 3.17.1, so the line numbers might not be the ones
> >> > you're expecting:
> >> >
> >> > patching file net/mac80211/mlme.c
> >> > Hunk #1 succeeded at 128 (offset -1 lines).
> >> > Hunk #2 succeeded at 137 (offset -1 lines).
> >> > Hunk #3 succeeded at 1875 (offset -209 lines).
> >> > Hunk #4 succeeded at 1886 (offset -207 lines).
> >> > Hunk #5 succeeded at 1908 (offset -207 lines).
> >> > Hunk #6 succeeded at 1924 (offset -244 lines).
> >> >
> >> > dmesg output is at https://bpaste.net/show/649277aaada8 .
> >>
> >> can you please test the patch attached?
> >>
> >> (remove the previous one first please)
> >>
> >> >
> >> > Laurentiu
> >> >
> >> > On Thu, Oct 23, 2014, at 19:46, Emmanuel Grumbach wrote:
> >> >> On Thu, Oct 23, 2014 at 7:02 PM, Laurențiu Nicola <lnicola@dend.ro>
> >> >> wrote:
> >> >> > Sorry, but I only saw a two-line change [1] to
> >> >> > `ieee80211_rx_mgmt_beacon` (which already had a log message). Am I
> >> >> > missing something?
> >> >> >
> >> >> > [1] http://www.spinics.net/lists/linux-wireless/msg128340.html
> >> >> >
> >> >>
> >> >> No - you are not. I did miss something...I forgot to attach the patch.
> >> >> Here you go.
> >> >>
> >> >> > Laurentiu
> >> >> >
> >> >> > On Thu, Oct 23, 2014, at 11:07, Emmanuel Grumbach wrote:
> >> >> >> On Thu, Oct 23, 2014 at 10:30 AM, Laurențiu Nicola <lnicola@dend.ro>
> >> >> >> wrote:
> >> >> >> > I did; the card still gets disconnected and the message doesn't show up
> >> >> >> > in dmesg.
> >> >> >> >
> >> >> >>
> >> >> >> You had *none* of the many prints I added in the log?
> >> >> >>
> >> >> >> That seems really weird...
> >> >> >>
> >> >> >> > Laurentiu
> >> >> >> >
> >> >> >> > On Thu, Oct 23, 2014, at 08:21, Emmanuel Grumbach wrote:
> >> >> >> >> On Thu, Oct 23, 2014 at 12:53 AM, Laurențiu Nicola <lnicola@dend.ro>
> >> >> >> >> 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 <lnicola@dend.ro>
> >> >> >> >> >> 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
> >> >> >> >> --
> >> >> >> >> 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
> >> >> Email had 1 attachment:
> >> >> + PROBE.patch
> >> >> 3k (application/octet-stream)
> >> Email had 1 attachment:
> >> + a.patch
> >> 3k (application/octet-stream)
> Email had 1 attachment:
> + a.patch
> 6k (application/octet-stream)
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 20:07 ` Laurențiu Nicola
@ 2014-10-23 20:16 ` Emmanuel Grumbach
2014-10-23 20:27 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-23 20:16 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
> https://bpaste.net/show/5cc48256d952
>
> On Thu, Oct 23, 2014, at 22:55, Emmanuel Grumbach wrote:
>> On Thu, Oct 23, 2014 at 10:42 PM, Laurențiu Nicola <lnicola@dend.ro>
>> wrote:
>>> Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
>>
>> ok - let me re-add the logs...
>>
>>
This makes no sense to me.
We do talk to the AP since we get frames Acked...
Can you please apply this on top of what you have?
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 2de8870..f3b1e62 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1991,15 +1991,16 @@ void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata,
if (ieee80211_is_nullfunc(hdr->frame_control) &&
sdata->u.mgd.probe_send_count > 0) {
if (ack)
- ieee80211_sta_reset_conn_monitor(sdata);
+ // ieee80211_sta_reset_conn_monitor(sdata);
+ ;
else
sdata->u.mgd.nullfunc_failed = true;
ieee80211_queue_work(&sdata->local->hw, &sdata->work);
return;
}
- if (ack)
- ieee80211_sta_reset_conn_monitor(sdata);
+// if (ack)
+// ieee80211_sta_reset_conn_monitor(sdata);
}
static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data *sdata)
Thanks.
^ permalink raw reply related [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 20:16 ` Emmanuel Grumbach
@ 2014-10-23 20:27 ` Laurențiu Nicola
2014-10-23 20:33 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-23 20:27 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: poma, Dan Williams, linux-wireless
https://bpaste.net/show/8a0e5c68762f
On Thu, Oct 23, 2014, at 23:16, Emmanuel Grumbach wrote:
> > https://bpaste.net/show/5cc48256d952
> >
> > On Thu, Oct 23, 2014, at 22:55, Emmanuel Grumbach wrote:
> >> On Thu, Oct 23, 2014 at 10:42 PM, Laurențiu Nicola <lnicola@dend.ro>
> >> wrote:
> >>> Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
> >>
> >> ok - let me re-add the logs...
> >>
> >>
>
> This makes no sense to me.
> We do talk to the AP since we get frames Acked...
>
> Can you please apply this on top of what you have?
>
> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
> index 2de8870..f3b1e62 100644
> --- a/net/mac80211/mlme.c
> +++ b/net/mac80211/mlme.c
> @@ -1991,15 +1991,16 @@ void ieee80211_sta_tx_notify(struct
> ieee80211_sub_if_data *sdata,
> if (ieee80211_is_nullfunc(hdr->frame_control) &&
> sdata->u.mgd.probe_send_count > 0) {
> if (ack)
> - ieee80211_sta_reset_conn_monitor(sdata);
> + // ieee80211_sta_reset_conn_monitor(sdata);
> + ;
> else
> sdata->u.mgd.nullfunc_failed = true;
> ieee80211_queue_work(&sdata->local->hw, &sdata->work);
> return;
> }
>
> - if (ack)
> - ieee80211_sta_reset_conn_monitor(sdata);
> +// if (ack)
> +// ieee80211_sta_reset_conn_monitor(sdata);
> }
>
> static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data
> *sdata)
>
>
> Thanks.
> --
> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 20:27 ` Laurențiu Nicola
@ 2014-10-23 20:33 ` Emmanuel Grumbach
2014-10-24 5:32 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-23 20:33 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
On Thu, Oct 23, 2014 at 11:27 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> https://bpaste.net/show/8a0e5c68762f
>
> On Thu, Oct 23, 2014, at 23:16, Emmanuel Grumbach wrote:
>> > https://bpaste.net/show/5cc48256d952
>> >
>> > On Thu, Oct 23, 2014, at 22:55, Emmanuel Grumbach wrote:
>> >> On Thu, Oct 23, 2014 at 10:42 PM, Laurențiu Nicola <lnicola@dend.ro>
>> >> wrote:
>> >>> Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
>> >>
>> >> ok - let me re-add the logs...
>> >>
>> >>
>>
>> This makes no sense to me.
>> We do talk to the AP since we get frames Acked...
This again makes no sense to me.
Time to go to bed I guess.
>>
>> Can you please apply this on top of what you have?
>>
>> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
>> index 2de8870..f3b1e62 100644
>> --- a/net/mac80211/mlme.c
>> +++ b/net/mac80211/mlme.c
>> @@ -1991,15 +1991,16 @@ void ieee80211_sta_tx_notify(struct
>> ieee80211_sub_if_data *sdata,
>> if (ieee80211_is_nullfunc(hdr->frame_control) &&
>> sdata->u.mgd.probe_send_count > 0) {
>> if (ack)
>> - ieee80211_sta_reset_conn_monitor(sdata);
>> + // ieee80211_sta_reset_conn_monitor(sdata);
>> + ;
>> else
>> sdata->u.mgd.nullfunc_failed = true;
>> ieee80211_queue_work(&sdata->local->hw, &sdata->work);
>> return;
>> }
>>
>> - if (ack)
>> - ieee80211_sta_reset_conn_monitor(sdata);
>> +// if (ack)
>> +// ieee80211_sta_reset_conn_monitor(sdata);
>> }
>>
>> static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data
>> *sdata)
>>
>>
>> Thanks.
>> --
>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-23 20:33 ` Emmanuel Grumbach
@ 2014-10-24 5:32 ` Emmanuel Grumbach
2014-10-24 8:34 ` Laurențiu Nicola
0 siblings, 1 reply; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-24 5:32 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
On Thu, Oct 23, 2014 at 11:33 PM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> On Thu, Oct 23, 2014 at 11:27 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> https://bpaste.net/show/8a0e5c68762f
>>
>> On Thu, Oct 23, 2014, at 23:16, Emmanuel Grumbach wrote:
>>> > https://bpaste.net/show/5cc48256d952
>>> >
>>> > On Thu, Oct 23, 2014, at 22:55, Emmanuel Grumbach wrote:
>>> >> On Thu, Oct 23, 2014 at 10:42 PM, Laurențiu Nicola <lnicola@dend.ro>
>>> >> wrote:
>>> >>> Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
>>> >>
>>> >> ok - let me re-add the logs...
>>> >>
>>> >>
>>>
>>> This makes no sense to me.
>>> We do talk to the AP since we get frames Acked...
>
> This again makes no sense to me.
> Time to go to bed I guess.
Can you please open a bug on bugzilla.kernel.org?
Make sure to CC ilw@linux.intel.com
This will make it more trackable.
Thanks.
>
>>>
>>> Can you please apply this on top of what you have?
>>>
>>> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
>>> index 2de8870..f3b1e62 100644
>>> --- a/net/mac80211/mlme.c
>>> +++ b/net/mac80211/mlme.c
>>> @@ -1991,15 +1991,16 @@ void ieee80211_sta_tx_notify(struct
>>> ieee80211_sub_if_data *sdata,
>>> if (ieee80211_is_nullfunc(hdr->frame_control) &&
>>> sdata->u.mgd.probe_send_count > 0) {
>>> if (ack)
>>> - ieee80211_sta_reset_conn_monitor(sdata);
>>> + // ieee80211_sta_reset_conn_monitor(sdata);
>>> + ;
>>> else
>>> sdata->u.mgd.nullfunc_failed = true;
>>> ieee80211_queue_work(&sdata->local->hw, &sdata->work);
>>> return;
>>> }
>>>
>>> - if (ack)
>>> - ieee80211_sta_reset_conn_monitor(sdata);
>>> +// if (ack)
>>> +// ieee80211_sta_reset_conn_monitor(sdata);
>>> }
>>>
>>> static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data
>>> *sdata)
>>>
>>>
>>> Thanks.
>>> --
>>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-24 5:32 ` Emmanuel Grumbach
@ 2014-10-24 8:34 ` Laurențiu Nicola
2014-10-24 10:26 ` Emmanuel Grumbach
0 siblings, 1 reply; 48+ messages in thread
From: Laurențiu Nicola @ 2014-10-24 8:34 UTC (permalink / raw)
To: Emmanuel Grumbach; +Cc: poma, Dan Williams, linux-wireless
Okay, I've filed a bug [1].
At some point you mentioned about using another device to monitor
traffic. I don't have another laptop running Linux (would Android
count?), but DD-WRT has a "wl monitor" command [2] that sounds useful.
Should I try to install tcpdump on my router?
Laurentiu
[1] https://bugzilla.kernel.org/show_bug.cgi?id=86801
[2] http://www.dd-wrt.com/wiki/index.php/Wl#monitor
On Fri, Oct 24, 2014, at 08:32, Emmanuel Grumbach wrote:
> On Thu, Oct 23, 2014 at 11:33 PM, Emmanuel Grumbach <egrumbach@gmail.com>
> wrote:
> > On Thu, Oct 23, 2014 at 11:27 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> >> https://bpaste.net/show/8a0e5c68762f
> >>
> >> On Thu, Oct 23, 2014, at 23:16, Emmanuel Grumbach wrote:
> >>> > https://bpaste.net/show/5cc48256d952
> >>> >
> >>> > On Thu, Oct 23, 2014, at 22:55, Emmanuel Grumbach wrote:
> >>> >> On Thu, Oct 23, 2014 at 10:42 PM, Laurențiu Nicola <lnicola@dend.ro>
> >>> >> wrote:
> >>> >>> Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
> >>> >>
> >>> >> ok - let me re-add the logs...
> >>> >>
> >>> >>
> >>>
> >>> This makes no sense to me.
> >>> We do talk to the AP since we get frames Acked...
> >
> > This again makes no sense to me.
> > Time to go to bed I guess.
>
> Can you please open a bug on bugzilla.kernel.org?
> Make sure to CC ilw@linux.intel.com
>
> This will make it more trackable.
> Thanks.
>
> >
> >>>
> >>> Can you please apply this on top of what you have?
> >>>
> >>> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
> >>> index 2de8870..f3b1e62 100644
> >>> --- a/net/mac80211/mlme.c
> >>> +++ b/net/mac80211/mlme.c
> >>> @@ -1991,15 +1991,16 @@ void ieee80211_sta_tx_notify(struct
> >>> ieee80211_sub_if_data *sdata,
> >>> if (ieee80211_is_nullfunc(hdr->frame_control) &&
> >>> sdata->u.mgd.probe_send_count > 0) {
> >>> if (ack)
> >>> - ieee80211_sta_reset_conn_monitor(sdata);
> >>> + // ieee80211_sta_reset_conn_monitor(sdata);
> >>> + ;
> >>> else
> >>> sdata->u.mgd.nullfunc_failed = true;
> >>> ieee80211_queue_work(&sdata->local->hw, &sdata->work);
> >>> return;
> >>> }
> >>>
> >>> - if (ack)
> >>> - ieee80211_sta_reset_conn_monitor(sdata);
> >>> +// if (ack)
> >>> +// ieee80211_sta_reset_conn_monitor(sdata);
> >>> }
> >>>
> >>> static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data
> >>> *sdata)
> >>>
> >>>
> >>> Thanks.
> >>> --
> >>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
* Re: iwlwifi: Reason 7 periodic disconnect
2014-10-24 8:34 ` Laurențiu Nicola
@ 2014-10-24 10:26 ` Emmanuel Grumbach
0 siblings, 0 replies; 48+ messages in thread
From: Emmanuel Grumbach @ 2014-10-24 10:26 UTC (permalink / raw)
To: Laurențiu Nicola; +Cc: poma, Dan Williams, linux-wireless
On Fri, Oct 24, 2014 at 11:34 AM, Laurențiu Nicola <lnicola@dend.ro> wrote:
> Okay, I've filed a bug [1].
>
> At some point you mentioned about using another device to monitor
> traffic. I don't have another laptop running Linux (would Android
> count?), but DD-WRT has a "wl monitor" command [2] that sounds useful.
> Should I try to install tcpdump on my router?
You can try - but I think that tracing might help and is easier to get.
I put the instructions in the bug.
>
> Laurentiu
>
> [1] https://bugzilla.kernel.org/show_bug.cgi?id=86801
> [2] http://www.dd-wrt.com/wiki/index.php/Wl#monitor
>
> On Fri, Oct 24, 2014, at 08:32, Emmanuel Grumbach wrote:
>> On Thu, Oct 23, 2014 at 11:33 PM, Emmanuel Grumbach <egrumbach@gmail.com>
>> wrote:
>> > On Thu, Oct 23, 2014 at 11:27 PM, Laurențiu Nicola <lnicola@dend.ro> wrote:
>> >> https://bpaste.net/show/8a0e5c68762f
>> >>
>> >> On Thu, Oct 23, 2014, at 23:16, Emmanuel Grumbach wrote:
>> >>> > https://bpaste.net/show/5cc48256d952
>> >>> >
>> >>> > On Thu, Oct 23, 2014, at 22:55, Emmanuel Grumbach wrote:
>> >>> >> On Thu, Oct 23, 2014 at 10:42 PM, Laurențiu Nicola <lnicola@dend.ro>
>> >>> >> wrote:
>> >>> >>> Doesn't seem to help https://bpaste.net/show/68e1a6b33689.
>> >>> >>
>> >>> >> ok - let me re-add the logs...
>> >>> >>
>> >>> >>
>> >>>
>> >>> This makes no sense to me.
>> >>> We do talk to the AP since we get frames Acked...
>> >
>> > This again makes no sense to me.
>> > Time to go to bed I guess.
>>
>> Can you please open a bug on bugzilla.kernel.org?
>> Make sure to CC ilw@linux.intel.com
>>
>> This will make it more trackable.
>> Thanks.
>>
>> >
>> >>>
>> >>> Can you please apply this on top of what you have?
>> >>>
>> >>> diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
>> >>> index 2de8870..f3b1e62 100644
>> >>> --- a/net/mac80211/mlme.c
>> >>> +++ b/net/mac80211/mlme.c
>> >>> @@ -1991,15 +1991,16 @@ void ieee80211_sta_tx_notify(struct
>> >>> ieee80211_sub_if_data *sdata,
>> >>> if (ieee80211_is_nullfunc(hdr->frame_control) &&
>> >>> sdata->u.mgd.probe_send_count > 0) {
>> >>> if (ack)
>> >>> - ieee80211_sta_reset_conn_monitor(sdata);
>> >>> + // ieee80211_sta_reset_conn_monitor(sdata);
>> >>> + ;
>> >>> else
>> >>> sdata->u.mgd.nullfunc_failed = true;
>> >>> ieee80211_queue_work(&sdata->local->hw, &sdata->work);
>> >>> return;
>> >>> }
>> >>>
>> >>> - if (ack)
>> >>> - ieee80211_sta_reset_conn_monitor(sdata);
>> >>> +// if (ack)
>> >>> +// ieee80211_sta_reset_conn_monitor(sdata);
>> >>> }
>> >>>
>> >>> static void ieee80211_mgd_probe_ap_send(struct ieee80211_sub_if_data
>> >>> *sdata)
>> >>>
>> >>>
>> >>> Thanks.
>> >>> --
>> >>> 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
^ permalink raw reply [flat|nested] 48+ messages in thread
end of thread, other threads:[~2014-10-24 10:26 UTC | newest]
Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16 12:48 iwlwifi: Reason 7 periodic disconnect Laurențiu Nicola
2014-10-16 20:42 ` Emmanuel Grumbach
2014-10-17 1:53 ` Dan Williams
2014-10-19 20:48 ` Laurențiu Nicola
2014-10-20 4:52 ` Emmanuel Grumbach
2014-10-20 5:30 ` Laurențiu Nicola
2014-10-20 7:06 ` Emmanuel Grumbach
2014-10-20 7:12 ` Emmanuel Grumbach
2014-10-20 7:22 ` Laurențiu Nicola
2014-10-20 8:23 ` Emmanuel Grumbach
2014-10-20 19:29 ` Laurențiu Nicola
2014-10-21 5:02 ` Emmanuel Grumbach
2014-10-21 5:31 ` Emmanuel Grumbach
2014-10-21 6:36 ` Krishna Chaitanya
2014-10-21 6:37 ` Krishna Chaitanya
2014-10-21 7:04 ` Emmanuel Grumbach
2014-10-21 7:22 ` Krishna Chaitanya
2014-10-21 8:07 ` Laurențiu Nicola
2014-10-21 7:28 ` Laurențiu Nicola
2014-10-21 8:02 ` Emmanuel Grumbach
2014-10-21 8:20 ` Felix Fietkau
2014-10-21 8:23 ` Laurențiu Nicola
2014-10-21 8:35 ` Felix Fietkau
2014-10-21 8:37 ` Laurențiu Nicola
2014-10-21 8:44 ` Emmanuel Grumbach
2014-10-21 9:05 ` Krishna Chaitanya
2014-10-21 9:16 ` Emmanuel Grumbach
2014-10-21 9:57 ` Krishna Chaitanya
2014-10-21 11:00 ` poma
2014-10-21 19:56 ` Laurențiu Nicola
2014-10-22 9:10 ` Emmanuel Grumbach
2014-10-22 21:53 ` Laurențiu Nicola
2014-10-23 5:21 ` Emmanuel Grumbach
2014-10-23 7:30 ` Laurențiu Nicola
2014-10-23 8:07 ` Emmanuel Grumbach
2014-10-23 16:02 ` Laurențiu Nicola
2014-10-23 16:46 ` Emmanuel Grumbach
2014-10-23 17:38 ` Laurențiu Nicola
2014-10-23 19:28 ` Emmanuel Grumbach
2014-10-23 19:42 ` Laurențiu Nicola
2014-10-23 19:55 ` Emmanuel Grumbach
2014-10-23 20:07 ` Laurențiu Nicola
2014-10-23 20:16 ` Emmanuel Grumbach
2014-10-23 20:27 ` Laurențiu Nicola
2014-10-23 20:33 ` Emmanuel Grumbach
2014-10-24 5:32 ` Emmanuel Grumbach
2014-10-24 8:34 ` Laurențiu Nicola
2014-10-24 10:26 ` Emmanuel Grumbach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).