Skip to contentSkip to conversation

iwlwifi: Reason 7 periodic disconnect

DISCUSSION Laurențiu Nicola 6 participants 48 messages Oct 16, 2014 – Oct 24, 2014 mac80211

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 12 lines · Laurențiu Nicola

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

Quoted 6 lines

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.

#2 lore raw
In reply to Laurențiu Nicola
Quoted 12 lines · Laurențiu Nicola

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

Quoted 5 lines

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

#3 lore raw

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

Quoted 26 lines · Dan Williams
Quoted 12 lines · Laurențiu Nicola

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

Quoted 5 lines

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

#4 lore raw
Quoted 9 lines · Laurențiu Nicola

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.

Quoted 7 lines

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.

Quoted 35 lines

Laurentiu

Quoted 19 lines · Dan Williams
Quoted 12 lines · Laurențiu Nicola

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

Quoted 5 lines

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.

Quoted 7 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Here: https://bpaste.net/show/bf6dc1847ce3

Laurentiu

Quoted 62 lines · Emmanuel Grumbach
Quoted 9 lines · Laurențiu Nicola

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.

Quoted 7 lines

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.

Quoted 29 lines

Laurentiu

Quoted 24 lines · Dan Williams
Quoted 12 lines · Laurențiu Nicola

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

Quoted 5 lines

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?)

Quoted 6 lines
Quoted 2 lines

Dan

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#6 lore raw
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 65 lines

Laurentiu

Quoted 62 lines · Emmanuel Grumbach
Quoted 9 lines · Laurențiu Nicola

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.

Quoted 7 lines

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.

Quoted 29 lines

Laurentiu

Quoted 24 lines · Dan Williams
Quoted 12 lines · Laurențiu Nicola

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

Quoted 5 lines

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?)

Quoted 6 lines
Quoted 2 lines

Dan

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw
Quoted 7 lines · Emmanuel Grumbach
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 1 line

Ok - You probably had it - sorry. But apparently the AP is really kicking us... What AP do you have?

#8 lore raw

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

Quoted 17 lines · Emmanuel Grumbach
Quoted 7 lines · Emmanuel Grumbach
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 1 line

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw
Quoted 8 lines · Laurențiu Nicola

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...

Quoted 20 lines

Laurentiu

Quoted 17 lines · Emmanuel Grumbach
Quoted 7 lines · Emmanuel Grumbach
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 1 line

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#10 lore raw

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

Quoted 41 lines · Emmanuel Grumbach
Quoted 8 lines · Laurențiu Nicola

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...

Quoted 20 lines

Laurentiu

Quoted 17 lines · Emmanuel Grumbach
Quoted 7 lines · Emmanuel Grumbach
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 1 line

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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#11 lore raw
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 44 lines

Laurentiu

Quoted 41 lines · Emmanuel Grumbach
Quoted 8 lines · Laurențiu Nicola

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...

Quoted 20 lines

Laurentiu

Quoted 17 lines · Emmanuel Grumbach
Quoted 7 lines · Emmanuel Grumbach
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 1 line

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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#12 lore raw
Quoted 11 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 45 lines
Quoted 45 lines

Laurentiu

Quoted 41 lines · Emmanuel Grumbach
Quoted 8 lines · Laurențiu Nicola

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...

Quoted 20 lines

Laurentiu

Quoted 17 lines · Emmanuel Grumbach
Quoted 7 lines · Emmanuel Grumbach
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 1 line

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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#13 lore raw
Quoted 20 lines · Emmanuel Grumbach
Quoted 11 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 3 lines

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.

#14 lore raw
Quoted 21 lines · Krishna Chaitanya
Quoted 20 lines · Emmanuel Grumbach
Quoted 11 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 5 lines
Quoted 3 lines

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.

Quoted 13 lines

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.

#15 lore raw
Quoted 23 lines · Krishna Chaitanya
Quoted 21 lines · Krishna Chaitanya
Quoted 20 lines · Emmanuel Grumbach
Quoted 11 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 20 lines
Quoted 5 lines
Quoted 3 lines

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.

Quoted 13 lines

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?

#16 lore raw
Quoted 42 lines · Emmanuel Grumbach
Quoted 40 lines · Krishna Chaitanya
Quoted 21 lines · Krishna Chaitanya
Quoted 20 lines · Emmanuel Grumbach
Quoted 11 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 5 lines
Quoted 3 lines

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.

Quoted 10 lines

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.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

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.

#18 lore raw
In reply to Emmanuel Grumbach

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

Quoted 76 lines · Emmanuel Grumbach
Quoted 11 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 40 lines
Quoted 40 lines

Laurentiu

Quoted 36 lines · Emmanuel Grumbach
Quoted 8 lines · Laurențiu Nicola

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...

Quoted 20 lines

Laurentiu

Quoted 17 lines · Emmanuel Grumbach
Quoted 7 lines · Emmanuel Grumbach
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 1 line

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#19 lore raw
Quoted 7 lines · Laurențiu Nicola

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 :)

Quoted 79 lines

Laurentiu

Quoted 76 lines · Emmanuel Grumbach
Quoted 11 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 40 lines
Quoted 40 lines

Laurentiu

Quoted 36 lines · Emmanuel Grumbach
Quoted 8 lines · Laurențiu Nicola

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...

Quoted 20 lines

Laurentiu

Quoted 17 lines · Emmanuel Grumbach
Quoted 7 lines · Emmanuel Grumbach
Quoted 2 lines · Laurențiu Nicola

Here: https://bpaste.net/show/bf6dc1847ce3

Are you sure you had MAC80211_MLME_DEBUG?

Quoted 1 line

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#17 lore raw
In reply to Krishna Chaitanya

Could this still happen if power saving is disabled?

Laurentiu

Quoted 67 lines · Krishna Chaitanya
Quoted 42 lines · Emmanuel Grumbach
Quoted 40 lines · Krishna Chaitanya
Quoted 21 lines · Krishna Chaitanya
Quoted 20 lines · Emmanuel Grumbach
Quoted 11 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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.

Quoted 5 lines
Quoted 3 lines

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.

Quoted 10 lines

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.

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#20 lore raw
In reply to Emmanuel Grumbach
Quoted 9 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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

#21 lore raw

It's an ASUS RT-N66U running NEWD-2/K3X from r24160.

Laurentiu

Quoted 18 lines · Felix Fietkau
Quoted 9 lines · Emmanuel Grumbach
Quoted 4 lines · Laurențiu Nicola

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#22 lore raw
Quoted 1 line · Laurențiu Nicola

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

#23 lore raw

Perhaps I'm not looking at the right log :). Do you mean enabling syslog and /tmp/var/log/messages?

Laurentiu

Quoted 15 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#24 lore raw
Quoted 15 lines · Laurențiu Nicola

Perhaps I'm not looking at the right log :). Do you mean enabling syslog and /tmp/var/log/messages?

Laurentiu

Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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?

Quoted 6 lines
Quoted 6 lines

- Felix
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#25 lore raw
In reply to Felix Fietkau
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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?

#26 lore raw
Quoted 11 lines · Krishna Chaitanya
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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?

#27 lore raw
Quoted 12 lines · Emmanuel Grumbach
Quoted 10 lines · Krishna Chaitanya
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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.

Quoted 6 lines
Quoted 1 line

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.

Signature · 3 lines
Thanks,
Regards,
Chaitanya T K.
#28 lore raw
In reply to Felix Fietkau
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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

#29 lore raw

Yep! scb_timeout is 60 on my router.

Quoted 28 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#30 lore raw
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +0 -0
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#31 lore raw

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

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#32 lore raw
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#33 lore raw

I did; the card still gets disconnected and the message doesn't show up in dmesg.

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#34 lore raw
Quoted 3 lines · Laurențiu Nicola

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...

Quoted 89 lines

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#35 lore raw

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

Quoted 104 lines · Emmanuel Grumbach
Quoted 3 lines · Laurențiu Nicola

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...

Quoted 89 lines

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#36 lore raw
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 107 lines

Laurentiu

Quoted 104 lines · Emmanuel Grumbach
Quoted 3 lines · Laurențiu Nicola

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...

Quoted 89 lines

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

net/mac80211/mlme.c +12 -2
index 75df184..e9c2f16 100644
@@ -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)
#37 lore raw

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

Quoted 122 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 107 lines

Laurentiu

Quoted 104 lines · Emmanuel Grumbach
Quoted 3 lines · Laurențiu Nicola

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...

Quoted 89 lines

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Email had 1 attachment:
+ PROBE.patch
3k (application/octet-stream)

#38 lore raw
Quoted 11 lines · Laurențiu Nicola

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).

Quoted 1 line

dmesg output is at https://bpaste.net/show/649277aaada8 .

can you please test the patch attached?

(remove the previous one first please)

Quoted 126 lines

Laurentiu

Quoted 122 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 107 lines

Laurentiu

Quoted 104 lines · Emmanuel Grumbach
Quoted 3 lines · Laurențiu Nicola

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...

Quoted 89 lines

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Email had 1 attachment:
+ PROBE.patch
3k (application/octet-stream)

net/mac80211/mlme.c +17 -20
index 2de8870..917371d 100644
@@ -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)
 {
#39 lore raw

Doesn't seem to help https://bpaste.net/show/68e1a6b33689.

Laurentiu

Quoted 148 lines · Emmanuel Grumbach
Quoted 11 lines · Laurențiu Nicola

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).

Quoted 1 line

dmesg output is at https://bpaste.net/show/649277aaada8 .

can you please test the patch attached?

(remove the previous one first please)

Quoted 126 lines

Laurentiu

Quoted 122 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 107 lines

Laurentiu

Quoted 104 lines · Emmanuel Grumbach
Quoted 3 lines · Laurențiu Nicola

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...

Quoted 89 lines

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau
Quoted 1 line · Laurențiu Nicola

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
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)

#40 lore raw
Quoted 1 line · Laurențiu Nicola

Doesn't seem to help https://bpaste.net/show/68e1a6b33689.

ok - let me re-add the logs...

Quoted 152 lines

Laurentiu

Quoted 148 lines · Emmanuel Grumbach
Quoted 11 lines · Laurențiu Nicola

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).

Quoted 1 line

dmesg output is at https://bpaste.net/show/649277aaada8 .

can you please test the patch attached?

(remove the previous one first please)

Quoted 126 lines

Laurentiu

Quoted 122 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 107 lines

Laurentiu

Quoted 104 lines · Emmanuel Grumbach
Quoted 3 lines · Laurențiu Nicola

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...

Quoted 89 lines

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma
Quoted 9 lines · Felix Fietkau

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
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)

net/mac80211/mlme.c +32 -22
index 2de8870..457f5207 100644
@@ -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);
 }
 
#41 lore raw

https://bpaste.net/show/5cc48256d952

Quoted 162 lines · Emmanuel Grumbach
Quoted 1 line · Laurențiu Nicola

Doesn't seem to help https://bpaste.net/show/68e1a6b33689.

ok - let me re-add the logs...

Quoted 152 lines

Laurentiu

Quoted 148 lines · Emmanuel Grumbach
Quoted 11 lines · Laurențiu Nicola

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).

Quoted 1 line

dmesg output is at https://bpaste.net/show/649277aaada8 .

can you please test the patch attached?

(remove the previous one first please)

Quoted 126 lines

Laurentiu

Quoted 122 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 107 lines

Laurentiu

Quoted 104 lines · Emmanuel Grumbach
Quoted 3 lines · Laurențiu Nicola

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...

Quoted 89 lines

Laurentiu

Quoted 86 lines · Emmanuel Grumbach
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 67 lines

Laurentiu

Quoted 63 lines · Emmanuel Grumbach
Quoted 22 lines · Laurențiu Nicola

Yep! scb_timeout is 60 on my router.

Quoted 19 lines · poma

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:

net/mac80211/mlme.c +2 -1
index 75df184..c9db7cf 100644
@@ -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);
        }

        /*
Quoted 9 lines
Quoted 9 lines

poma

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless"
in
the body of a message to [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
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)

#42 lore raw
Quoted 10 lines

https://bpaste.net/show/5cc48256d952

Quoted 7 lines · Emmanuel Grumbach
Quoted 1 line · Laurențiu Nicola

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?

net/mac80211/mlme.c +4 -3
index 2de8870..f3b1e62 100644
@@ -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.

#43 lore raw

https://bpaste.net/show/8a0e5c68762f

Quoted 50 lines · Emmanuel Grumbach
Quoted 10 lines

https://bpaste.net/show/5cc48256d952

Quoted 7 lines · Emmanuel Grumbach
Quoted 1 line · Laurențiu Nicola

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?

net/mac80211/mlme.c +4 -3
index 2de8870..f3b1e62 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#44 lore raw
Quoted 16 lines · Laurențiu Nicola

https://bpaste.net/show/8a0e5c68762f

Quoted 13 lines · Emmanuel Grumbach
Quoted 10 lines

https://bpaste.net/show/5cc48256d952

Quoted 7 lines · Emmanuel Grumbach
Quoted 1 line · Laurențiu Nicola

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.

Quoted 37 lines
Quoted 37 lines

Can you please apply this on top of what you have?

net/mac80211/mlme.c +4 -3
index 2de8870..f3b1e62 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#45 lore raw
Quoted 15 lines · Emmanuel Grumbach
Quoted 14 lines · Laurențiu Nicola

https://bpaste.net/show/8a0e5c68762f

Quoted 11 lines · Emmanuel Grumbach
Quoted 10 lines

https://bpaste.net/show/5cc48256d952

Quoted 7 lines · Emmanuel Grumbach
Quoted 1 line · Laurențiu Nicola

Doesn't seem to help https://bpaste.net/show/68e1a6b33689.

ok - let me re-add the logs...

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

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 [email protected]

This will make it more trackable.
Thanks.

Quoted 38 lines
Quoted 38 lines
Quoted 38 lines

Can you please apply this on top of what you have?

net/mac80211/mlme.c +4 -3
index 2de8870..f3b1e62 100644
@@ -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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#46 lore raw

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

Quoted 72 lines · Emmanuel Grumbach
Quoted 15 lines · Emmanuel Grumbach
Quoted 14 lines · Laurențiu Nicola

https://bpaste.net/show/8a0e5c68762f

Quoted 11 lines · Emmanuel Grumbach
Quoted 10 lines

https://bpaste.net/show/5cc48256d952

Quoted 7 lines · Emmanuel Grumbach
Quoted 1 line · Laurențiu Nicola

Doesn't seem to help https://bpaste.net/show/68e1a6b33689.

ok - let me re-add the logs...

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

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 [email protected]

This will make it more trackable.
Thanks.

Quoted 32 lines
Quoted 32 lines
Quoted 32 lines

Can you please apply this on top of what you have?

net/mac80211/mlme.c +4 -3
index 2de8870..f3b1e62 100644
@@ -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)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#47 lore raw
Quoted 6 lines · Laurențiu Nicola

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.

Quoted 79 lines

Laurentiu

[1] https://bugzilla.kernel.org/show_bug.cgi?id=86801
[2] http://www.dd-wrt.com/wiki/index.php/Wl#monitor

Quoted 72 lines · Emmanuel Grumbach
Quoted 15 lines · Emmanuel Grumbach
Quoted 14 lines · Laurențiu Nicola

https://bpaste.net/show/8a0e5c68762f

Quoted 11 lines · Emmanuel Grumbach
Quoted 10 lines

https://bpaste.net/show/5cc48256d952

Quoted 7 lines · Emmanuel Grumbach
Quoted 1 line · Laurențiu Nicola

Doesn't seem to help https://bpaste.net/show/68e1a6b33689.

ok - let me re-add the logs...

Quoted 5 lines
Quoted 2 lines
Quoted 2 lines

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 [email protected]

This will make it more trackable.
Thanks.

Quoted 32 lines
Quoted 32 lines
Quoted 32 lines

Can you please apply this on top of what you have?

net/mac80211/mlme.c +4 -3
index 2de8870..f3b1e62 100644
@@ -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)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html