[PATCH v2 02/10] rtlwifi: Add BT_MP_INFO to c2h handler.

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih We use H2C to ask BT's status, and C2H will return the status. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc:

[PATCH v2 04/10] rtlwifi: add amplifier type for 8812ae

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih With correct amplifier_type, the phy praser can choose correct parameters. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu

[PATCH v2 00/10] Set 3 of changes related to updates of btcoexist

2017-06-25 Thread Larry Finger
To get maximum benefit of the recent changes in btcoexist, changes need to be made in the drivers for the NIC. This is set 3 of those changes. v2 - remove \r characters as suggested by Joe Perches Ping-Ke Shih (10): rtlwifi: Fill in_4way field by driver rtlwifi: Add BT_MP_INFO to c2h

[PATCH v2 10/10] rtlwifi: btcoex: Use seq_file to dump btcoex status

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih If we use seq_file to dump status, then we can use 'cat' to access debugfs. Other related changes are 1. implement btc_disp_dbg_msg() to access btcoex's common status. 2. remove obsolete field bt_exist Signed-off-by: Ping-Ke Shih

[PATCH] drivers: staging: wilc1000/host_interface.c Fix sparse warning: right shift by bigger than source value

2017-06-25 Thread Guillermo O. Freschi
Shifting by equal to or bigger than the width of a type results in undefined behavior. By using a wide enough temporary variable the issue can be avoided. Signed-off-by: Guillermo O. Freschi --- drivers/staging/wilc1000/host_interface.c | 10 ++ 1 file changed, 6

[PATCH v2 01/10] rtlwifi: Fill in_4way field by driver

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih Because it isn't always correct to use EAPOL to check 4-way, we add a timer to handle exception. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc:

[PATCH v2 06/10] rtlwifi: Rename rtl_desc92_rate to rtl_desc_rate

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih This is a common enumeration, so we use a common name. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu

[PATCH v2 08/10] rtlwifi: move IS_HARDWARE_TYPE_xxx checker to wifi.h

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih Use rtlpriv instead of rtlhal as argument, so driver and btcoex use the same definitions. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu

[PATCH v2 03/10] rtlwifi: Add board type for 8723be and 8192ee

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih With correct board_type, the phy praser can choose correct parameters. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu

[PATCH v2 09/10] rtlwifi: use debugfs to debug.

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih Use debugfs to dump register and btcoex status. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu

[PATCH v2 07/10] rtlwifi: Uses addr1 instead DA to determine broadcast and multicast addr.

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih We should check addr1 to indicate a packet as broadcast or multicast in tx desc. An obvious example, a STA transmit an *unicast* ARP packet where addr1 and DA are the addresses of AP and broadcast respectively. Signed-off-by: Ping-Ke Shih

[PATCH v2 05/10] rtlwifi: Update 8723be new phy parameters and its parser.

2017-06-25 Thread Larry Finger
From: Ping-Ke Shih There are new PHY table values for the RTL8723BE. The changes require new parsing code. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu

rfkill(8) move and improvements

2017-06-25 Thread Sami Kerola
Hello maintainers and other, The otherday I ran powertop and it did rfkill to save battery, which was particularly annoying because I had not installed rfkill(8) package. Fixing the immediate issue was relatively easy, but the ordeal made me wonder if this tool could be moved to a package

Re: mac80211: out of date seq number cause network stall

2017-06-25 Thread 孙建希
hi, In function `ieee80211_sta_manage_reorder_buf`: 1104 /* frame with out of date sequence number */ 1105 if (ieee80211_sn_less(mpdu_seq_num, head_seq_num)) { 1106 dev_kfree_skb(skb); 1107 goto out; 1108 } 1109 head_seq_num will out of

[PATCH 17/26] iwlwifi: mvm: set assoc_beacon_arrive_time

2017-06-25 Thread Luca Coelho
From: Avraham Stern When updating the mac context after association, assoc_beacon_arrive_time is not being set, which causes the FW to set a wrong TSF to the MAC. Fix this by setting the assoc_beacon_arrive_time when updating the mac context after association.

[PATCH 06/26] iwlwifi: mvm: disentangle union in TX status struct

2017-06-25 Thread Luca Coelho
From: Johannes Berg This improves documentation, since kernel-doc can't deal with the union well. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw-api-tx.h | 73

[PATCH 12/26] iwlwifi: pcie: don't disable bh when handling FW errors

2017-06-25 Thread Luca Coelho
From: Luca Coelho When we started using threaded irqs, all the opmode calls were changed to be called with local_bh disabled. The reason for this was it was that mac80211 needs that. When we are handling FW errors, mac80211 is not involved, so we don't need it.

[PATCH 14/26] iwlwifi: mvm: don't mark TIDs that are not idle wrt BA as inactive

2017-06-25 Thread Luca Coelho
From: Emmanuel Grumbach A TID may not have traffic but still have a BA agreement active (or being setup / torn down) since a BA agreement can be triggered by a debugfs hook. Just avoid to consider such a TID as inactive to make the logic safer. Signed-off-by:

[PATCH 11/26] iwlwifi: mvm: fix the recovery flow while connecting

2017-06-25 Thread Luca Coelho
From: Emmanuel Grumbach In BSS mode in the disconnection flow, mac80211 removes the AP station before the vif is set to unassociated. Our firmware wants it the other way around: first set the vif as unassociated, and then remove the AP station. In order to bridge

[PATCH 19/26] iwlwifi: mvm: support new flush API

2017-06-25 Thread Luca Coelho
From: Mordechai Goodstein This new API allows flushing queues based on station ID and TID in A000 devices. One reason for using this is that tfd_queue_mask is only good for 32 queues, which is not enough for A000 devices. Signed-off-by: Sara Sharon

[PATCH 21/26] iwlwifi: mvm: print base HW address during init

2017-06-25 Thread Luca Coelho
From: Luca Coelho It's sometimes hard to find out which HW address the iwlwifi device is using, for instance when reading crouded sniffer logs. To make it easier, print out an info level message with the HW address as soon as we know it. Signed-off-by: Luca Coelho

[PATCH 26/26] iwlwifi: mvm: support TX on MONITOR iface

2017-06-25 Thread Luca Coelho
From: Liad Kaufman When trying to TX through a monitor interface, the conditions in iwl_mvm_tx_skb_non_sta() don't match and the frame tries to go out from an usued TXQ. Add a check for monitor iface, and use the AUX queue in such a case. In non-DQA mode the frame is

[PATCH 20/26] iwlwifi: mvm: document assoc_beacon_arrive_time

2017-06-25 Thread Luca Coelho
From: Luca Coelho Document the assoc_beacon_arrive_time element in the iwl_mac_data_sta struct. Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw-api-mac.h | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 15/26] iwlwifi: add a W/A for a scheduler hardware bug

2017-06-25 Thread Luca Coelho
From: Emmanuel Grumbach In case we need to move the scheduler write pointer by steps of 0x40, 0x80 or 0xc0, the scheduler gets stuck. This leads to hardware error interrupts with status: 0x5A5A5A5A or alike. In order to work around this, detect in the transport

[PATCH 22/26] iwlwifi: pcie: reduce unwanted noise in the logs

2017-06-25 Thread Luca Coelho
From: Luca Coelho The driver prints "L1 Enabled - LTR Enabled" all the time as dev_info, which is just useless noise in most cases. Convert this to IWL_DEBUG_POWER() so we don't pollute the log unnecessarily but still can get this info on demand. Signed-off-by: Luca

[PATCH 10/26] iwlwifi: mvm: fix nvm_data leak

2017-06-25 Thread Luca Coelho
From: Luca Coelho We allocate nvm_data in iwl_mvm_nvm_get_from_fw(). If something goes wrong after the allocation (i.e. if no valid MAC address is valid), we should free nvm_data before returning an error. Signed-off-by: Luca Coelho ---

[PATCH 24/26] iwlwifi: mvm: fix typo in CTDP_CMD_OPERATION_REPORT description

2017-06-25 Thread Luca Coelho
From: Chaya Rachel Ivgi Signed-off-by: Chaya Rachel Ivgi Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/mvm/fw-api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 16/26] iwlwifi: pcie: make iwl_pcie_apm_stop_master() return void

2017-06-25 Thread Luca Coelho
From: Johannes Berg Nothing ever checks the return value of iwl_pcie_apm_stop_master(), so there's no point in it having one - make it return void. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho ---

[PATCH 09/26] iwlwifi: remove useless iwl_free_nvm_data() function

2017-06-25 Thread Luca Coelho
From: Luca Coelho This function just calls kfree(), so it only obscures the code without bringing any benefits. Remove it. Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/dvm/main.c | 4 ++--

[PATCH 03/26] iwlwifi: pcie: fix command completion name debug

2017-06-25 Thread Luca Coelho
From: Johannes Berg When the command name is printed on command completion, the wrong group is used, leading to the wrong name being printed. Fix this by using the group ID without inappropriately mangling it through iwl_cmd_groupid() - it's already a u8. Also, while at

[PATCH 08/26] iwlwifi: document transmit buffer bits better

2017-06-25 Thread Luca Coelho
From: Johannes Berg Properly document the transmit buffer bits using an enum and kernel-doc documentation. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho --- drivers/net/wireless/intel/iwlwifi/iwl-fh.h | 18

[PATCH 00/26] iwlwifi: updates intended for v4.13 2017-06-25

2017-06-25 Thread Luca Coelho
From: Luca Coelho Hi, More patches intended for 4.13. These are the changes: * Support for a new version of the TX flush FW API; * Some fixes in monitor interfaces; * A few fixes in the recovery flows; * Documentation fixes and FW API struct cleanups; * Remove some

[PATCH 04/26] iwlwifi: mvm: docs: fix enum link, provide TX response link

2017-06-25 Thread Luca Coelho
From: Johannes Berg Fix the enum link by adding the missing & and provide the link to the TX response documentation. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho ---

[PATCH 01/26] iwlwifi: simplify data tracepoint

2017-06-25 Thread Luca Coelho
From: Johannes Berg There's no need to calculate the data_len outside of the tracepoint, since it's always skb->len - hdr_len, which are both available inside. Simplify the callers and move the calculation in. Signed-off-by: Johannes Berg

[PATCH 02/26] iwlwifi: fix TX tracing for non-linear SKBs

2017-06-25 Thread Luca Coelho
From: Johannes Berg When sending non-linear SKBs that should be included in the regular TX tracing completely (and not be pushed into the tx_data tracing), the (tracing) code didn't correctly take the fact that they were non-linear into account and added only the skb

[PATCH 25/26] iwlwifi: pcie: work around suspend/resume issue

2017-06-25 Thread Luca Coelho
From: Johannes Berg In some platforms, having the device enabled with certain radio frontends causes the platform to not be able to resume properly from suspend, regardless of the wakeup cause. This was traced to a hardware issue with the integrated 9000-series A-step

[PATCH 23/26] iwlwifi: pcie: delete the Tx queue timer earlier upon firmware crash

2017-06-25 Thread Luca Coelho
From: Emmanuel Grumbach When the firmware crashes, the transmit queues can't make any progress. This is why we stop the counter that monitor the transmit queues' activity. The call that notifies the error to the op_mode may take a bit of time, so stop the timer of

[PATCH 13/26] iwlwifi: mvm: reset the HW before dumping if HW error is detected

2017-06-25 Thread Luca Coelho
From: Luca Coelho If the hardware is stuck, we can't read any of the memory we need to dump it, so we end up printing only 0xa5a5a5a5, which is useless. To solve this, poke the hardware by triggering a reset and re-enabling the clocks if we detect a HW error.

Re: pull-request: wireless-drivers-next 2017-06-25

2017-06-25 Thread David Miller
From: Kalle Valo Date: Sun, 25 Jun 2017 20:48:36 +0300 > yet another pull request to net-next for 4.13, more info in the signed > tag below. While doing a test merge on net-next I noticed git doing > quite a lot of auto-merging, maybe because of mac80211 API changes, but >

[PATCH][-next] ath10k: fix a bunch of spelling mistakes in messages

2017-06-25 Thread Colin King
From: Colin Ian King Fix the following spelling mistakes in messages: syncronise -> synchronize unusally -> unusually addrress -> address inverval -> interval Signed-off-by: Colin Ian King --- drivers/net/wireless/ath/ath10k/mac.c

pull-request: wireless-drivers-next 2017-06-25

2017-06-25 Thread Kalle Valo
Hi Dave, yet another pull request to net-next for 4.13, more info in the signed tag below. While doing a test merge on net-next I noticed git doing quite a lot of auto-merging, maybe because of mac80211 API changes, but luckily no conflicts. But please do let me know if you have any problems.

Re: [[linux-nfc][PATCH v1] 2/6] NFC: nfcst: Add ST NFC Transceiver core framework

2017-06-25 Thread Samuel Ortiz
Hi Shikha, On Tue, May 02, 2017 at 02:03:39AM -0400, Shikha Singh wrote: > +static int nfcst_in_send_cmd(struct nfc_digital_dev *ddev, > + struct sk_buff *skb, > + u16 timeout, > + nfc_digital_cmd_complete_t cb, > +

Update regulatory rules for Kazakhstan (KZ) on 5GHz

2017-06-25 Thread Vasiliy Safronov
Please add support 5ghz for Kazakhstan. In Kazakhstan there are no restrictions up to 100mW country KZ: DFS-ETSI (2402 - 2482 @ 40), (20) (5170 - 5250 @ 80), (20), AUTO-BW (5250 - 5330 @ 80), (20), DFS, AUTO-BW (5650 - 5730 @ 80), (30), DFS (5735 - 5835 @ 80), (30)