RE: [PATCH v6 1/2] cfg80211: Add API to change the indoor regulatory setting

2015-02-25 Thread Peer, Ilan
Hi Luis, -Original Message- From: Luis R. Rodriguez [mailto:mcg...@suse.com] Sent: Tuesday, February 24, 2015 02:03 To: Peer, Ilan; Jouni Malinen Cc: linux-wireless@vger.kernel.org; ArikX Nemtsov Subject: Re: [PATCH v6 1/2] cfg80211: Add API to change the indoor regulatory setting

[patch] rtlwifi: rtl8188ee: missing curly braces in handle_branch1()

2015-02-25 Thread Dan Carpenter
From the indenting, it seems like the READ_NEXT_PAIR() was supposed to be inside the while loop. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/phy.c b/drivers/net/wireless/rtlwifi/rtl8188ee/phy.c index 3f6c59c..a2bb02c 100644 ---

[RFCv2 1/4] ath10k: add WMI support for WOW

2015-02-25 Thread Janusz Dziedzic
Add WMI support for WOW like enable, wakeup events and host wakeup indication. Signed-off-by: Janusz Dziedzic janusz.dzied...@tieto.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 70 +++ drivers/net/wireless/ath/ath10k/wmi-tlv.c | 116 +++-

[RFCv2 4/4] ath10k: add WOW patterns support

2015-02-25 Thread Janusz Dziedzic
Add patterns support for WOW. Signed-off-by: Janusz Dziedzic janusz.dzied...@tieto.com --- drivers/net/wireless/ath/ath10k/core.c| 1 + drivers/net/wireless/ath/ath10k/hw.h | 1 + drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 +- drivers/net/wireless/ath/ath10k/wmi.h | 4 +++

[RFCv2 3/4] ath10k: add WMI support for WOW patterns

2015-02-25 Thread Janusz Dziedzic
Add WMI support for WOW patterns. Signed-off-by: Janusz Dziedzic janusz.dzied...@tieto.com --- drivers/net/wireless/ath/ath10k/wmi-ops.h | 45 +++ drivers/net/wireless/ath/ath10k/wmi-tlv.c | 130 ++ drivers/net/wireless/ath/ath10k/wmi-tlv.h | 38 + 3

Re: brcmfmac43241b4-sdio / Thinkpad Tablet 10 issues

2015-02-25 Thread Jocky Wilson
Sebastien Bourdeauducq sb@... writes: On Tuesday, February 17, 2015 03:49 AM, Arend van Spriel wrote: So it is a one-off and not showing the issue you are seeing. Your issue seems to be due to failing firmware so you may need b5 firmware. Making some progress :) ... I guess that the

Re: [ath9k-devel] AR9462 problems connecting again..

2015-02-25 Thread Jouni Malinen
On Wed, Feb 25, 2015 at 06:00:08PM +1300, Felix Fietkau wrote: Minstrel_ht does *NOT* use mrr[3], nor should it. For normal data packets, a little packet loss under tough conditions is good, otherwise we risk lots of wasted airtime and bufferbloat. I agree for normal data packets, but EAPOL

Re: [ath9k-devel] AR9462 problems connecting again..

2015-02-25 Thread Jouni Malinen
On Tue, Feb 24, 2015 at 11:38:02PM +0100, Thomas Hühn wrote: Minstrel_HT does only set mrr[0..2] and does not touch the fourth mrr[3], assumed chips with 4 mrr stages. In function minstrel_ht_update_rates() the rate table struct ieee80211_sta_rates is set for the first 3 out of 4 rates and

[PATCH v7 1/3] cfg80211: Simplify the handling of regulatory indoor setting

2015-02-25 Thread Ilan Peer
Directly update the indoor setting without wrapping it as a regulatory request, to simplify the processing. Signed-off-by: Ilan Peer ilan.p...@intel.com --- net/wireless/reg.c | 34 +++--- 1 file changed, 3 insertions(+), 31 deletions(-) diff --git

[PATCH v7 2/3] cfg80211: Add API to change the indoor regulatory setting

2015-02-25 Thread Ilan Peer
Previously, the indoor setting configuration assumed that as long as a station interface is connected, the indoor environment setting does not change. However, this assumption is problematic as: - It is possible that a station interface is connected to a mobile AP, e.g., softAP or a P2P GO,

[PATCH] rtlwifi: rtl8192cu: Add case in rtl92cu_get_hw_reg

2015-02-25 Thread Taehee Yoo
rtl_op_stop get wowlan state but rtl92cu_get_hw_reg has not process. Signed-off-by: Taehee Yoo ap420...@gmail.com --- drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c

Re: [patch] rtlwifi: rtl8188ee: missing curly braces in handle_branch1()

2015-02-25 Thread Larry Finger
On 02/25/2015 07:24 AM, Dan Carpenter wrote: From the indenting, it seems like the READ_NEXT_PAIR() was supposed to be inside the while loop. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Good catch. Acked-by: Larry Finger larry.fin...@lwfinger.net Thanks, Larry diff --git

Re: [ath9k-devel] AR9462 problems connecting again..

2015-02-25 Thread Linus Torvalds
On Wed, Feb 25, 2015 at 6:47 AM, Jouni Malinen j...@w1.fi wrote: There may be something else wrong (say, some kind of interference), but there is no way we can assume normal users to be able to fix such issues. If we make EAPOL frames go through more robustly, the connection can be

Re: Question on tx-power and number of chains.

2015-02-25 Thread Ben Greear
On 02/25/2015 11:10 AM, Johannes Berg wrote: On Wed, 2015-02-25 at 10:51 -0800, Ben Greear wrote: Is there a table somewhere that explains how many chains are used by each rate? mcsindex.com? What about OFDM and CCK. Are those always 1 chain? Thanks, Ben -- Ben Greear

Re: brcmfmac43241b4-sdio / Thinkpad Tablet 10 issues

2015-02-25 Thread Arend van Spriel
On 02/25/15 13:23, Jocky Wilson wrote: Sebastien Bourdeauducqsb@... writes: On Tuesday, February 17, 2015 03:49 AM, Arend van Spriel wrote: So it is a one-off and not showing the issue you are seeing. Your issue seems to be due to failing firmware so you may need b5 firmware. Making some

Re: [ath9k-devel] AR9462 problems connecting again..

2015-02-25 Thread Peter Stuge
Linus Torvalds wrote: Last time I had connection issues with this laptop, nothing ended up happening in the end, and I had people pipe up saying they had had similar problems. I'd hate for the same nothing to happen this time just because people aren't 100% sure what the final right thing is

Re: [PATCH] rtlwifi: rtl8192cu: Add case in rtl92cu_get_hw_reg

2015-02-25 Thread Larry Finger
On 02/25/2015 11:58 AM, Taehee Yoo wrote: rtl_op_stop get wowlan state but rtl92cu_get_hw_reg has not process. Signed-off-by: Taehee Yoo ap420...@gmail.com Has this been tested? I am not aware that the RTL8192CU firmware could handle WOWLAN. Larry ---

Re: [PATCH] rtlwifi: rtl8192cu: Add case in rtl92cu_get_hw_reg

2015-02-25 Thread ap420073 .
2015-02-26 3:33 GMT+09:00 Larry Finger larry.fin...@lwfinger.net: On 02/25/2015 11:58 AM, Taehee Yoo wrote: rtl_op_stop get wowlan state but rtl92cu_get_hw_reg has not process. Signed-off-by: Taehee Yoo ap420...@gmail.com Has this been tested? I am not aware that the RTL8192CU firmware

Re: Question on tx-power and number of chains.

2015-02-25 Thread Arend van Spriel
On 02/25/15 20:10, Johannes Berg wrote: On Wed, 2015-02-25 at 10:51 -0800, Ben Greear wrote: Is there a table somewhere that explains how many chains are used by each rate? mcsindex.com? Nice. Adding that to my bookmarks. What happened to that quirky MCS32. Regards, Arend -- To

[PATCH] rtlwifi: rtl8192cu: Add case in rtl92cu_get_hw_reg

2015-02-25 Thread Taehee Yoo
Add HAL_DEF_WOWLAN case in rtl92cu_get_hw_reg Signed-off-by: Taehee Yoo ap420...@gmail.com --- drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c index

Question on tx-power and number of chains.

2015-02-25 Thread Ben Greear
Suppose a NIC wants to decrease TX power for certain rates based on the number of chains (ie, subtract amount A from requested rate for 2 chains, and B for 3 chains). I assume the NIC wants to do this is because if the pkt is transmitted out each antenna, then there is ~3x the power put onto the

Re: [PATCH] rtlwifi: rtl8192cu: Add case in rtl92cu_get_hw_reg

2015-02-25 Thread Larry Finger
On 02/25/2015 12:59 PM, ap420073 . wrote: 2015-02-26 3:33 GMT+09:00 Larry Finger larry.fin...@lwfinger.net: On 02/25/2015 11:58 AM, Taehee Yoo wrote: rtl_op_stop get wowlan state but rtl92cu_get_hw_reg has not process. Signed-off-by: Taehee Yoo ap420...@gmail.com Has this been tested? I

Re: Question on tx-power and number of chains.

2015-02-25 Thread Johannes Berg
On Wed, 2015-02-25 at 20:21 +0100, Arend van Spriel wrote: On 02/25/15 20:10, Johannes Berg wrote: On Wed, 2015-02-25 at 10:51 -0800, Ben Greear wrote: Is there a table somewhere that explains how many chains are used by each rate? mcsindex.com? Nice. Adding that to my bookmarks.

Re: [PATCH] rtlwifi: rtl8192cu: Add case in rtl92cu_get_hw_reg

2015-02-25 Thread ap420073 .
2015-02-26 4:12 GMT+09:00 Larry Finger larry.fin...@lwfinger.net: On 02/25/2015 12:59 PM, ap420073 . wrote: 2015-02-26 3:33 GMT+09:00 Larry Finger larry.fin...@lwfinger.net: On 02/25/2015 11:58 AM, Taehee Yoo wrote: rtl_op_stop get wowlan state but rtl92cu_get_hw_reg has not process.

Re: [PATCH] rtlwifi: rtl8192cu: Add case in rtl92cu_get_hw_reg

2015-02-25 Thread Larry Finger
On 02/25/2015 01:34 PM, Taehee Yoo wrote: Add HAL_DEF_WOWLAN case in rtl92cu_get_hw_reg Signed-off-by: Taehee Yoo ap420...@gmail.com Acked-by: Larry Finger larry.fin...@lwfinger.net @Kalle: This is V2. V1 is not OK. Larry --- drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 2 ++ 1 file

Re: [ath9k-devel] AR9462 problems connecting again..

2015-02-25 Thread Adrian Chadd
On 25 February 2015 at 10:14, Linus Torvalds torva...@linux-foundation.org wrote: While I realize that people may disagree about the exact details of how to fix this in the long run, may I suggest that in the meantime we at least get the two workaround patches applied? I'm talking about the

Re: [PATCH v2 0/10] Improve Minstrels Minstrel-HTs common code base statistics

2015-02-25 Thread Bastian Bittorf
* Job tho...@net.t-labs.tu-berlin.de [13.02.2015 16:32]: This patch series adds several improvements to the readability, the output format of rc_stats and the calculated statistics of Minstrel and Minstrel-HT. Variable names got more consistent and functions got unified between both rate

[PATCH] ath: support new FCC DFS Radar Type 1

2015-02-25 Thread Peter Oh
Add support for new FCC DFS rules released on August 14, 2014. FCC has added a new radar type named Radar Type 1 and original Radar Type 1 is renamed to Radar Type 0 in consequence. In fact, the type ID does nothing to functionalities. In other words, even if we re-order the IDs, DFS detection

Re: [PATCH v6 1/2] cfg80211: Add API to change the indoor regulatory setting

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 02:30:40PM +, Peer, Ilan wrote: Hi Luis, -Original Message- From: Luis R. Rodriguez [mailto:mcg...@suse.com] Sent: Tuesday, February 24, 2015 02:03 To: Peer, Ilan; Jouni Malinen Cc: linux-wireless@vger.kernel.org; ArikX Nemtsov Subject: Re: [PATCH

Re: [PATCH v7 3/3] cfg80211: Schedule timeout for all CRDA calls

2015-02-25 Thread Luis R. Rodriguez
On Wed, Feb 25, 2015 at 04:47:04AM -0500, Ilan Peer wrote: Timeout was scheduled only in case CRDA was called due to user hints, but was not scheduled for other cases. This can result in regulatory hint processing getting stuck in case that there is no CRDA configured. Change this by

Re: [ath9k-devel] AR9462 problems connecting again..

2015-02-25 Thread Andrew McGregor
On Thu, Feb 26, 2015 at 7:22 AM, Adrian Chadd adr...@freebsd.org wrote: On 25 February 2015 at 10:14, Linus Torvalds torva...@linux-foundation.org wrote: While I realize that people may disagree about the exact details of how to fix this in the long run, may I suggest that in the meantime we

Re: [ath9k-devel] AR9462 problems connecting again..

2015-02-25 Thread Linus Torvalds
On Wed, Feb 25, 2015 at 10:14 AM, Linus Torvalds torva...@linux-foundation.org wrote: I'm talking about the two from Jouni - the don't encrypt EAPOL frames one, and the one-liner that makes all EAPOL frames go at the lowest data rate. So I just found out and confirmed that this is not

Re: Question on tx-power and number of chains.

2015-02-25 Thread Johannes Berg
On Wed, 2015-02-25 at 11:50 -0800, Ben Greear wrote: On 02/25/2015 11:10 AM, Johannes Berg wrote: On Wed, 2015-02-25 at 10:51 -0800, Ben Greear wrote: Is there a table somewhere that explains how many chains are used by each rate? mcsindex.com? What about OFDM and CCK. Are those

Re: [PATCH v2 4/4] ath10k: introduce basic tdls functionality

2015-02-25 Thread Michal Kazior
On 25 February 2015 at 08:55, Marek Puzyniak marek.puzyn...@tieto.com wrote: [...] diff --git a/drivers/net/wireless/ath/ath10k/core.h b/drivers/net/wireless/ath/ath10k/core.h index 94a8788..14b99c8 100644 --- a/drivers/net/wireless/ath/ath10k/core.h +++

Re: [PATCH v3] wext: Return -E2BIG when the buffer is too small for the full scan results, including IEs.

2015-02-25 Thread Johannes Berg
On Tue, 2015-02-24 at 12:58 -0600, James Minor wrote: When using the wext compatibility code in cfg80211, part of the IEs can be truncated if the passed user buffer is large enough for the BSS but not large enough for all of the IEs. This can cause an EAP network to show up as a PSK network.

[PATCH] ath10k: fix ap u-apsd cmd on qca6174 w/ wmi-tlv

2015-02-25 Thread Michal Kazior
The command was truncated so the parameter value was seen in fw as 0. This caused U-APSD enabled stations to be misconfigured and mistreated by AP. Signed-off-by: Michal Kazior michal.kaz...@tieto.com --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v6 2/3] mac80211/minstrel_ht: use the new rate control API

2015-02-25 Thread Sven Eckelmann
Hi Felix, On Friday 20 February 2015 15:12:10 Sven Eckelmann wrote: static void @@ -846,6 +857,8 @@ minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, msp-is_ht = true; memset(mi, 0, sizeof(*mi)); + + mi-sta = sta;

[PATCH] mac80211: remove TX latency measurement code

2015-02-25 Thread Johannes Berg
From: Johannes Berg johannes.b...@intel.com Revert commit ad38bfc916da (mac80211: Tx frame latency statistics) (along with some follow-up fixes). This code turned out not to be as useful in the current form as we thought, and we've internally hacked it up more, but that's not very suitable for

mt7601u dies during channel switch (was: MediaTek WiFi hardware support in upstream kernel)

2015-02-25 Thread Jakub Kiciński
On Wed, 25 Feb 2015 01:49:02 +0100, Sergei Antonov wrote: On 6 February 2015 at 18:29, Jakub Kiciński moorr...@wp.pl wrote: Hello everyone! I put together a mac80211 driver for Mediatek MT7601U. It's partially based on Felix's mt76, but I'm not sure if it will make sense to merge the

Re: Connection issues with BW Tracking in mac80211

2015-02-25 Thread Johannes Berg
On Wed, 2015-02-25 at 02:41 +0530, Krishna Chaitanya wrote: On Wed, Feb 25, 2015 at 2:17 AM, Johannes Berg johan...@sipsolutions.net wrote: On Wed, 2015-02-25 at 02:03 +0530, Krishna Chaitanya wrote: Use case2: When changing from HT40-VHT80, the connection goes through but it still

[PATCH 1/4] mwifiex: avoid queue_work while work is ongoing

2015-02-25 Thread Avinash Patil
From: Marc Yang yangy...@marvell.com Current code does not check whether main_work_queue or rx_work_queue is running when preparing to do queue_work, this code fix add check before calling queue_work, reducing unnecessary queue_work switch. This change instead sets more_task flag to ensure we

[PATCH 3/4] mwifiex: remove_bss_prio_lock

2015-02-25 Thread Avinash Patil
From: Zhaoyang Liu li...@marvell.com This patch does away with spinlock in mwifiex_wmm_get_highest_priolist_ptr in order to improve TP. Signed-off-by: Zhaoyang Liu li...@marvell.com Signed-off-by: Shengzhen Li s...@marvell.com Signed-off-by: Cathy Luo c...@marvell.com Signed-off-by: Amitkumar

[PATCH 4/4] mwifiex: preprocess packets from TX queue

2015-02-25 Thread Avinash Patil
From: Zhaoyang Liu li...@marvell.com During profiling, we discovered that driver remains idle for time when pakcet is downloaded to FW but no TX_DONE has been received i.e. while data_sent is true. This patch adds enhancement to TX routine where we preprocess packets from TX queue, make them