pull-request: mac80211 2016-11-18

2016-11-17 Thread Johannes Berg
Hi Dave, Due to travel/vacation, this is a bit late, but there aren't that many fixes either. Most interesting/important are the fixes from Felix and perhaps the scan entry limit. Please pull and let me know if there's any problem. Thanks, johannes The following changes since commit 269ebce45

[PATCH V2] brcmfmac: update beacon IE after bss up and clear when AP stopped

2016-11-17 Thread Wright Feng
Firmware doesn't update beacon/Probe Response vendor IEs correctly when bss is down, so we move brcmf_config_ap_mgmt_ie after BSS up. And host driver should clear IEs when AP stopped so that the IEs in host side will be synced with in firmware side. Signed-off-by: Wright Feng --- V2: word wrap th

[PATCH] mmc: pwrseq: add support for Marvell SD8787 chip

2016-11-17 Thread Matt Ranostay
Allow power sequencing for the Marvell SD8787 Wifi/BT chip. This can be abstracted to other chipsets if needed in the future. Cc: Tony Lindgren Cc: Ulf Hansson Cc: Mark Rutland Cc: Srinivas Kandagatla Signed-off-by: Matt Ranostay --- .../devicetree/bindings/mmc/mmc-pwrseq-sd8787.txt | 14 +

Re: [PATCH] RFC: Universal scan proposal

2016-11-17 Thread Arend Van Spriel
On 16-11-2016 23:47, dimitr...@google.com wrote: > From 68a9d37a4c7e9dc7a90a6e922cdea52737a98d66 Mon Sep 17 00:00:00 2001 > From: Dmitry Shmidt > Date: Wed, 16 Nov 2016 14:27:26 -0800 > Subject: [PATCH] RFC: Universal scan proposal > > Currently we have sched scan with possibility of various >

Re: [RFC 0/5] nl80211: add support for g-scan

2016-11-17 Thread Arend Van Spriel
On 17-11-2016 15:39, Johannes Berg wrote: > On Thu, 2016-11-17 at 13:18 +, Arend van Spriel wrote: >> Android employs a Wifi-HAL layer in its wireless frame. It basically >> abstracts dealing with netlink messages from the framework. For some >> features it employs nl80211 vendor commands. The

Re: [PATCH 1/5] nl80211: allow reporting RTT information in scan results

2016-11-17 Thread Arend Van Spriel
On 17-11-2016 17:15, Dan Williams wrote: > On Thu, 2016-11-17 at 11:39 +, Arend van Spriel wrote: >> Add distance and its variance to the BSS structure so drivers >> may provide RTT information for BSS instances found during >> scanning. >> >> Reviewed-by: Hante Meuleman >> Reviewed-by: Pieter

Re: [PATCH] rtlwifi: rtl8723be: Fix bug in ant_sel code from commit c18d8f509571

2016-11-17 Thread kbuild test robot
Hi Ping-Ke, [auto build test ERROR on wireless-drivers-next/master] [also build test ERROR on v4.9-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Larry-Finger/rtlwifi-rtl8723be-Fix-bug-in-a

Re: [PATCH] rtlwifi: rtl8723be: Fix bug in ant_sel code from commit c18d8f509571

2016-11-17 Thread Larry Finger
On 11/17/2016 12:05 PM, Larry Finger wrote: From: Ping-Ke Shih In commit c18d8f509571 ("rtlwifi: rtl8723be: Add antenna select module parameter"), wifi was fixed for those laptops that have only a single antenna but have an incorrectly coded EEPROM. This error causes the driver to select the wr

Question about regional "adaptivity" / CCA settings

2016-11-17 Thread Vuille, Martin (Martin)
ETSI EN-300-328 and EN-301-893 set requirements for "adaptivity" behaviour of Wi-Fi controllers. Other regions may have different requirements. If I understand correctly, regional requirements related to DFS are managed through the Linux wireless infrastructure and the wireless-regdb. Is there a

[RFC 0/5] nl80211: add support for g-scan

2016-11-17 Thread Arend van Spriel
Android employs a Wifi-HAL layer in its wireless frame. It basically abstracts dealing with netlink messages from the framework. For some features it employs nl80211 vendor commands. The goal I set myself is to be able to have a generic nl80211 Wifi-HAL implementation. One of the features currently

[PATCH] rtlwifi: rtl8723be: Fix bug in ant_sel code from commit c18d8f509571

2016-11-17 Thread Larry Finger
From: Ping-Ke Shih In commit c18d8f509571 ("rtlwifi: rtl8723be: Add antenna select module parameter"), wifi was fixed for those laptops that have only a single antenna but have an incorrectly coded EEPROM. This error causes the driver to select the wrong antenna. In that commit, one necessary cha

[RFC V2 2/5] nl80211: add reporting of gscan capabilities

2016-11-17 Thread Arend van Spriel
From: Arend van Spriel GScan is a scan offload feature used in recent Android releases. This patch adds possibility for wireless device drivers to report their capabilities and provide it to user-space. Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky Lin Sig

[RFC V2 3/5] nl80211: rename some notification functions

2016-11-17 Thread Arend van Spriel
The functions nl80211_send_sched_scan() and nl80211_send_sched_scan_msg() take command as parameter, which strictly speaking makes them general purpose and not directly related to scheduled scan functionality. The message are sent to "scan" multicast group so renaming them to nl80211_send_scan_even

[RFC V2 1/5] nl80211: allow reporting RTT information in scan results

2016-11-17 Thread Arend van Spriel
Add distance and its variance to the BSS structure so drivers may provide RTT information for BSS instances found during scanning. Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky Lin Signed-off-by: Arend van Spriel --- include/net/cfg80211.h | 11 +

[RFC V2 4/5] nl80211: add support for gscan

2016-11-17 Thread Arend van Spriel
This patch adds support for GScan which is a scan offload feature used in Android. Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky Lin Signed-off-by: Arend van Spriel --- V2: - removed pr_err() statements. --- include/net/cfg80211.h | 91 ++-

[RFC V2 5/5] nl80211: add driver api for gscan notifications

2016-11-17 Thread Arend van Spriel
The driver can indicate gscan results are available or gscan operation has stopped. Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky Lin Signed-off-by: Arend van Spriel --- V2: - removed #if 0 code block. --- include/net/cfg80211.h | 28 +++

Re: [net-next] rtl8xxxu: Fix non static symbol warning

2016-11-17 Thread Jes Sorensen
Kalle Valo writes: > Wei Yongjun wrote: >> From: Wei Yongjun >> >> Fixes the following sparse warning: >> >> drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c:1559:6: warning: >> symbol 'rtl8192eu_power_off' was not declared. Should it be static? >> >> Signed-off-by: Wei Yongjun > > Je

Re: [PATCH 5/5] nl80211: add driver api for gscan notifications

2016-11-17 Thread Arend Van Spriel
On 17-11-2016 12:39, Arend van Spriel wrote: > The driver can indicate gscan results are available or gscan operation > has stopped. > > Reviewed-by: Hante Meuleman > Reviewed-by: Pieter-Paul Giesberts > Reviewed-by: Franky Lin > Signed-off-by: Arend van Spriel > --- > include/net/cfg80211.h

Re: [PATCH 1/2] cfg80211: get rid of name indirection trick for ieee80211_get_channel()

2016-11-17 Thread Arend Van Spriel
On 17-11-2016 13:32, kbuild test robot wrote: > Hi Arend, > > [auto build test ERROR on mac80211-next/master] > [also build test ERROR on v4.9-rc5 next-20161117] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] >

Re: [PATCH 1/5] nl80211: allow reporting RTT information in scan results

2016-11-17 Thread Dan Williams
On Thu, 2016-11-17 at 11:39 +, Arend van Spriel wrote: > Add distance and its variance to the BSS structure so drivers > may provide RTT information for BSS instances found during > scanning. > > Reviewed-by: Hante Meuleman > Reviewed-by: Pieter-Paul Giesberts m> > Reviewed-by: Franky Lin >

Re: [v7] mwifiex: parse device tree node for PCIe

2016-11-17 Thread Brian Norris
On Thu, Nov 17, 2016 at 12:39:20PM +, Kalle Valo wrote: > Amitkumar Karwar wrote: > > From: Xinming Hu > > > > This patch derives device tree node from pcie bus layer framework. > > Device tree bindings file has been renamed(marvell-sd8xxx.txt -> > > marvell-8xxx.txt) to accommodate PCIe cha

Re: [PATCH 3/5] nl80211: add support for gscan

2016-11-17 Thread kbuild test robot
Hi Arend, [auto build test ERROR on mac80211-next/master] [also build test ERROR on next-20161117] [cannot apply to v4.9-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arend-van-Spriel

[PATCH V2] cfg80211: get rid of name indirection trick for ieee80211_get_channel()

2016-11-17 Thread Arend van Spriel
The comment on the name indirection suggested an issue but turned out to be untrue. Digging in older kernel version showed issue with ipw2x00 but that is no longer true so get rid on the name indirection. Signed-off-by: Arend van Spriel --- drivers/net/wireless/ath/ath10k/htt_rx.c| 3 +-

Re: [net-next] rtl8xxxu: Fix non static symbol warning

2016-11-17 Thread Kalle Valo
Wei Yongjun wrote: > From: Wei Yongjun > > Fixes the following sparse warning: > > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c:1559:6: warning: > symbol 'rtl8192eu_power_off' was not declared. Should it be static? > > Signed-off-by: Wei Yongjun Jes will take this. -- https://pa

Re: [PATCHv2 2/4] ath10k: Add support to update btcoex priority value via nl80211

2016-11-17 Thread kbuild test robot
Hi Tamizh, [auto build test ERROR on ath6kl/ath-next] [also build test ERROR on next-20161117] [cannot apply to v4.9-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/c_traja-qti-qualcomm-com

Re: [RFC 04/12] ath10k: htc: refactorization

2016-11-17 Thread Erik Stromdahl
On 11/15/2016 11:19 AM, Michal Kazior wrote: > On 14 November 2016 at 17:33, Erik Stromdahl wrote: >> Code refactorization: >> >> Moved the code for ep 0 in ath10k_htc_rx_completion_handler >> to ath10k_htc_control_rx_complete. >> >> This eases the implementation of SDIO/mbox significantly since

Re: [TEST, V2, GIT-SEND-EMAIL, 01/11] mwifiex: fix power save issue when suspend

2016-11-17 Thread Kalle Valo
Xinming Hu wrote: > From: Shengzhen Li > > This patch fixes a corner case for "FROMLIST: mwifiex: fix corner case > power save issue", main process will check the power save condition in > PS_PRE_SLEEP status so the sleep handshake could continue. > > Signed-off-by: Shengzhen Li Seems to be a

Re: [PATCH v3 01/11] mwifiex: check tx_hw_pending before downloading sleep confirm

2016-11-17 Thread Kalle Valo
Brian Norris writes: > On Fri, Nov 11, 2016 at 06:40:08PM +0530, Amitkumar Karwar wrote: > >> There are multiple mwifiex patches under review. I want you consider them >> in following sequence(first being oldest) to avoid conflicts > > Thanks for doing this! It's a little confusing about what's o

Re: [PATCH 8/8] Print frequency of radar events.

2016-11-17 Thread Benjamin Berg
On Thu, 2016-11-17 at 18:21 +0100, Henrik Eriksson wrote: > On Mon, Nov 07, 2016 at 15:59:43 +0100, Benjamin Berg wrote: > > > > + if (!tb[NL80211_ATTR_RADAR_EVENT] || > > > > !tb[NL80211_ATTR_WIPHY_FREQ]) > > > > + printf("BAD radar event"); >

Re: [v7] mwifiex: parse device tree node for PCIe

2016-11-17 Thread Kalle Valo
Amitkumar Karwar wrote: > From: Xinming Hu > > This patch derives device tree node from pcie bus layer framework. > Device tree bindings file has been renamed(marvell-sd8xxx.txt -> > marvell-8xxx.txt) to accommodate PCIe changes. > > Signed-off-by: Xinming Hu > Signed-off-by: Rajat Jain > Rev

Re: cfg80211: add set/get link loss profile

2016-11-17 Thread Lazar, Alexei Avshalom
Hi Kalle, In this context the term "link" does mean connection to AP. There are scenarios that require to lose connection faster once reduced link quality detected in order maintain better user experience (from both sides - AP and STA). Example case is FST (Fast Session Transfer), where we have a

Re: [RFC 0/5] nl80211: add support for g-scan

2016-11-17 Thread Johannes Berg
On Thu, 2016-11-17 at 13:18 +, Arend van Spriel wrote: > Android employs a Wifi-HAL layer in its wireless frame. It basically > abstracts dealing with netlink messages from the framework. For some > features it employs nl80211 vendor commands. The goal I set myself is > to be able to have a gen

Re: [PATCH 8/8] Print frequency of radar events.

2016-11-17 Thread Henrik Eriksson
On Mon, Nov 07, 2016 at 15:59:43 +0100, Benjamin Berg wrote: > From: Benjamin Berg > > Signed-off-by: Simon Wunderlich > Signed-off-by: Benjamin Berg > --- > event.c | 48 +--- > 1 file changed, 25 insertions(+), 23 deletions(-) > > diff --git a/eve

Re: [PATCHv2 1/4] ath10k: Add support to enable or disable btcoex via nl80211

2016-11-17 Thread kbuild test robot
Hi Tamizh, [auto build test ERROR on ath6kl/ath-next] [also build test ERROR on v4.9-rc5 next-20161117] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/c_traja-qti-qualcomm-com/ath10k-Add

Re: [PATCH 3/5] nl80211: add support for gscan

2016-11-17 Thread kbuild test robot
Hi Arend, [auto build test WARNING on mac80211-next/master] [also build test WARNING on next-20161117] [cannot apply to v4.9-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arend-van-Spriel

Re: [PATCH 1/2] cfg80211: get rid of name indirection trick for ieee80211_get_channel()

2016-11-17 Thread kbuild test robot
Hi Arend, [auto build test ERROR on mac80211-next/master] [also build test ERROR on v4.9-rc5 next-20161117] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arend-van-Spriel/cfg80211-get-rid-of

Re: [PATCH 2/5] nl80211: add reporting of gscan capabilities

2016-11-17 Thread kbuild test robot
Hi Arend, [auto build test WARNING on mac80211-next/master] [also build test WARNING on next-20161117] [cannot apply to v4.9-rc5] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arend-van-Spriel

Re: [PATCH 3/5] nl80211: add support for gscan

2016-11-17 Thread Arend Van Spriel
On 17-11-2016 13:10, kbuild test robot wrote: > Hi Arend, > > [auto build test ERROR on mac80211-next/master] > [also build test ERROR on next-20161117] > [cannot apply to v4.9-rc5] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve

Re: [PATCH 1/2] cfg80211: get rid of name indirection trick for ieee80211_get_channel()

2016-11-17 Thread kbuild test robot
Hi Arend, [auto build test ERROR on mac80211-next/master] [also build test ERROR on v4.9-rc5 next-20161117] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arend-van-Spriel/cfg80211-get-rid-of

[PATCHv2 1/4] ath10k: Add support to enable or disable btcoex via nl80211

2016-11-17 Thread c_traja
From: Tamizh chelvam This patch add support to enable or disable btcoex via nl80211. The firmware support this feature since 10.2.4.54 on 2G-only board, dual band or 5G boards don't support this. WMI service WMI_SERVICE_COEX_GPIO is used to identify the firmware support of this feature. Signed-o

[PATCHv2 0/4] ath10k: Add support for BTCOEX feature.

2016-11-17 Thread c_traja
From: Tamizh chelvam This patch set add support to enable/disable BTCOEX via nl80211, also support to update BTCOEX priority value for 10.4 based firmware. Document the dt entry in qcom,ath10k.txt and reads btcoex support flag and btcoex gpio pin detail from dt. Tamizh chelvam (4): ath10k: Add

[PATCHv2 2/4] ath10k: Add support to update btcoex priority value via nl80211

2016-11-17 Thread c_traja
From: Tamizh chelvam This patch adds support to update btcoex priority value via nl80211. Here driver will be exposing the supported frame format for this feature via btcoex_support_flags which is a member of wiphy structure. 10.4 based firmware support this feature. WMI service WMI_SERVICE_BTCOE

[PATCHv2 4/4] ath10k: Add support to read btcoex related data from DT

2016-11-17 Thread c_traja
From: Tamizh chelvam BTCOEX feature is not supported by all qca40xx chipsets. Since btcoex enabled by default in firmware, host needs to enable COEX support depends on the hardware. This patch is used to read btcoex_support flag and btcoex gpio pin number from DT. Depends on the btcoex_support fl

[PATCHv2 3/4] dt: bindings: add new dt entry for BTCOEX feature in qcom,ath10k.txt

2016-11-17 Thread c_traja
From: Tamizh chelvam There two things done in this patch. 1) 'btcoex_support' flag for BTCOEX feature support by the hardware. 2) 'wlan_btcoex_gpio' is used to fill wlan priority pin number for BTCOEX priority feature support. Signed-off-by: Tamizh chelvam --- .../bindings/net/wireless/qco

[PATCH 1/5] nl80211: allow reporting RTT information in scan results

2016-11-17 Thread Arend van Spriel
Add distance and its variance to the BSS structure so drivers may provide RTT information for BSS instances found during scanning. Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky Lin Signed-off-by: Arend van Spriel --- include/net/cfg80211.h | 11 +

[RFC 0/5] nl80211: add support for g-scan

2016-11-17 Thread Arend van Spriel
Android employs a Wifi-HAL layer in its wireless frame. It basically abstracts dealing with netlink messages from the framework. For some features it employs nl80211 vendor commands. The goal I set myself is to be able to have a generic nl80211 Wifi-HAL implementation. One of the features currently

[PATCH 3/5] nl80211: add support for gscan

2016-11-17 Thread Arend van Spriel
This patch adds support for GScan which is a scan offload feature used in Android. Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky Lin Signed-off-by: Arend van Spriel --- include/net/cfg80211.h | 91 ++- include/uapi/linux/nl80211.h | 146

[PATCH 5/5] nl80211: add driver api for gscan notifications

2016-11-17 Thread Arend van Spriel
The driver can indicate gscan results are available or gscan operation has stopped. Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky Lin Signed-off-by: Arend van Spriel --- include/net/cfg80211.h | 28 include/uapi/linux/nl80211.h |

[PATCH 4/5] nl80211: rename some notification functions

2016-11-17 Thread Arend van Spriel
The functions nl80211_send_sched_scan() and nl80211_send_sched_scan_msg() take command as parameter, which strictly speaking makes them general purpose and not directly related to scheduled scan functionality. The message are sent to "scan" multicast group so renaming them to nl80211_send_scan_even

[PATCH 2/5] nl80211: add reporting of gscan capabilities

2016-11-17 Thread Arend van Spriel
From: Arend van Spriel GScan is a scan offload feature used in recent Android releases. This patch adds possibility for wireless device drivers to report their capabilities and provide it to user-space. Reviewed-by: Hante Meuleman Reviewed-by: Pieter-Paul Giesberts Reviewed-by: Franky Lin Sig

Re: [1/2] mwifiex: fix corner case power save issue

2016-11-17 Thread Kalle Valo
Amitkumar Karwar wrote: > We may get SLEEP event from firmware even if TXDone for last Tx packet > is still pending. In this case, we may end up accessing PCIe memory for > handling TXDone after power save handshake is completed. This causes > kernel crash with external abort. > > We will delay s

Re: mwifiex: printk() overflow with 32-byte SSIDs

2016-11-17 Thread Kalle Valo
Brian Norris wrote: > SSIDs aren't guaranteed to be 0-terminated. Let's cap the max length > when we print them out. > > This can be easily noticed by connecting to a network with a 32-octet > SSID: > > [ 3903.502925] mwifiex_pcie :01:00.0: info: trying to associate to > '0123456789abcdef012

Re: mwifiex: fix memory leak in mwifiex_save_hidden_ssid_channels()

2016-11-17 Thread Kalle Valo
Ricky Liang wrote: > kmemleak reports memory leak in mwifiex_save_hidden_ssid_channels(): > > unreferenced object 0xffc0a2914780 (size 192): > comm "ksdioirqd/mmc2", pid 2004, jiffies 4307182506 (age 820.684s) > hex dump (first 32 bytes): > 00 06 47 49 4e 2d 32 67 01 03 c8 60 6c 03 01

Re: [4.9.0-rc5] AR9300 calibration problems with antenna selected

2016-11-17 Thread Kalle Valo
Krzysztof wrote: > Hi, > > I recently tried to select a single antenna on AR9300 and it works for > 30 seconds only. The subsequent calibration makes the RX signal level to > drop from the usual -30/-40 dBm to -70/-80 dBm, and the transmission > practically stops. > > With the attached patch it w

Re: [PATCH 3/5] rsi: Added support for configuring tx power

2016-11-17 Thread Kalle Valo
Prameela Rani Garnepudi writes: > TX power can be configured from iwconfig, iw or from mac80211 when > regulatory changes are done. Hence support for configuring tx power > to device is added. This can be done by sending RADIO_PARAMS_UPDATE > command frame to device with upated tx power value. >

Re: [PATCH 2/5] rsi: Added rx filter frame

2016-11-17 Thread Kalle Valo
Prameela Rani Garnepudi writes: > Filtering the rx frames in firmware after connection in station mode > avoids the overhead of processing un-necessary frames. Hence rx filter > frame is added which can be configured to device at suitable times. > > Signed-off-by: Prameela Rani Garnepudi A mino

[PATCH 2/2] nl80211: check NL80211_ATTR_SCHED_SCAN_INTERVAL only once

2016-11-17 Thread Arend van Spriel
The presence of the NL80211_ATTR_SCHED_SCAN_INTERVAL attribute was checked in nl80211_parse_sched_scan() and nl80211_parse_sched_scan_plans() which might be a bit redundant so removing one. Signed-off-by: Arend van Spriel --- net/wireless/nl80211.c | 5 + 1 file changed, 1 insertion(+), 4 de

[PATCH 1/2] cfg80211: get rid of name indirection trick for ieee80211_get_channel()

2016-11-17 Thread Arend van Spriel
The comment on the name indirection suggested an issue but turned out to be untrue. Digging in older kernel version showed issue with ipw2x00 but that is no longer true so get rid on the name indirection. Signed-off-by: Arend van Spriel --- include/net/cfg80211.h | 17 +++-- net/wire

Re: [PATCH V3] qtnfmac: announcement of new FullMAC driver for Quantenna chipsets

2016-11-17 Thread Johannes Berg
> > > It's probably worth having a discussion about this behaviour > > > difference - not necessarily in the context of this driver > > > submission though. > > > > Do you mean that default is to allow to dynamically allocate > > resources (add_interface) for as much interfaces as memory allows,

[RFC v2 1/2] ath9k: work around AR_CFG 0xdeadbeef chip hang

2016-11-17 Thread Sven Eckelmann
From: Simon Wunderlich QCA 802.11n chips (especially AR9330/AR9340) sometimes end up in a state in which a read of AR_CFG always returns 0xdeadbeef. This should not happen when when the power_mode of the device is ATH9K_PM_AWAKE. This problem is not yet detected by any other workaround in ath9k.

[RFC v2 2/2] ath9k: Reset chip on potential deaf state

2016-11-17 Thread Sven Eckelmann
From: Simon Wunderlich The chip is switching seemingly random into a state which can be described as "deaf". No or nearly no interrupts are generated anymore for incoming packets. Existing links either break down after a while and new links will not be established. The driver doesn't know if the