[RFC 0/4] wireless: Per-sta NoAck and offload support

2018-03-27 Thread Vasanthakumar Thiagarajan
of the station. Vasanthakumar Thiagarajan (4): mac80211: Add NoAck policy functionality offload infrastructure nl80211/mac80211: Extend NoAck policy command with peer MAC address mac80211: Apply per-peer NoAck tid bitmap configuration mac80211: Advertise per-peer NoAck policy support include

[RFC 4/4] mac80211: Advertise per-peer NoAck policy support

2018-03-27 Thread Vasanthakumar Thiagarajan
This enables per-peer NoAck handling in mac80211 when the functionality is not offloaded to the drivers. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@codeaurora.org> --- net/mac80211/main.c | 4 1 file changed, 4 insertions(+) diff --git a/net/mac80211/main.c b/net/mac80211/

[RFC 2/4] nl80211/mac80211: Extend NoAck policy command with peer MAC address

2018-03-27 Thread Vasanthakumar Thiagarajan
specific configuration takes precedence over netdev level configuration when both are set by the user. Drivers supporting per-sta NoAck policy must advertise the support through the extended flag index NL80211_EXT_FEATURE_PER_STA_NOACK_MAP. Signed-off-by: Vasanthakumar Thiagarajan <vt

[RFC 1/4] mac80211: Add NoAck policy functionality offload infrastructure

2018-03-27 Thread Vasanthakumar Thiagarajan
skb. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@codeaurora.org> --- include/net/mac80211.h| 15 +++ net/mac80211/cfg.c| 10 -- net/mac80211/debugfs.c| 1 + net/mac80211/driver-ops.h | 21 + net/mac80211/iface.c | 4 +++

[RFC 3/4] mac80211: Apply per-peer NoAck tid bitmap configuration

2018-03-27 Thread Vasanthakumar Thiagarajan
to the drivers supporting the NoAck offload functionality (IEEE80211_HW_SUPPORTS_NOACK_POLICY). Signed-off-by: Vasanthakumar Thiagarajan <vthia...@codeaurora.org> --- include/net/mac80211.h| 7 +-- net/mac80211/cfg.c| 42 +- net/mac80211/driver

Re: [PATCH] ath10k: Add sta rx packet stats per tid

2018-03-02 Thread Vasanthakumar Thiagarajan
On Wednesday 28 February 2018 06:47 PM, Kalle Valo wrote: > Vasanthakumar Thiagarajan <vthia...@codeaurora.org> writes: > >> Added per tid sta counters for the following >> >> - Total number MSDUs received from firmware >> - Number of MSDUs received with e

[PATCH] ath10k: Add sta rx packet stats per tid

2018-01-31 Thread Vasanthakumar Thiagarajan
[05] 0 [06] 0 Signed-off-by: Vasanthakumar Thiagarajan <vthia...@codeaurora.org> --- drivers/net/wireless/ath/ath10k/core.h| 45 drivers/net/wireless/ath/ath10k/debug.c | 48 + drivers/net/wireless/ath/ath10k/debug.h | 31 +++ drivers/net/w

Re: [v3] ath10k: rebuild crypto header in rx data frames

2017-10-31 Thread Vasanthakumar Thiagarajan
;>> GCMP-256 ciphers >>> in raw mode needs to be fixed. Since Rx with these ciphers in raw >>> mode does not work in the current form even without this patch and >>> removing crypto tail for these chipers needs clean up, raw mode related >>> issues in CCMP-256,

[PATCH] ath10k: Fix data rx for CCMP-256, GCMP and GCMP-256 in raw mode

2017-10-26 Thread Vasanthakumar Thiagarajan
lengh for the cipher to make it clean. Fixes: 2ea9f12cefe4 ("ath10k: add new cipher suite support") Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- This patch depends on https://patchwork.kernel.org/patch/10028621/ drivers/net/wireless/ath/ath1

Re: [PATCH] ath10k: rebuild crypto header in RX data frames

2017-10-23 Thread Vasanthakumar Thiagarajan
On Saturday 21 October 2017 01:41 AM, Sebastian Gottschall wrote: > i suggest the following patch on top of yours. please tell me if my thoughts > are correct here. its mainly a guess I agree we need to take care of this for newly added ciphers as well. How about making it as a separate patch

[PATCH] cfg80211: Fix dfs state propagation for non-DFS center channel

2017-04-18 Thread Vasanthakumar Thiagarajan
solutions.net> Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- net/wireless/reg.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index a38f315..5fae296 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -

Re: [PATCH V2 3/3] cfg80211: Share Channel DFS state across wiphys of same DFS domain

2017-04-18 Thread Vasanthakumar Thiagarajan
On Tuesday 18 April 2017 04:20 PM, Johannes Berg wrote: > >> +void regulatory_propagate_dfs_state(struct wiphy *wiphy, >> +struct cfg80211_chan_def >> *chandef, >> +enum nl80211_dfs_state >> dfs_state, >> +

[PATCH V2 2/3] cfg80211: Disallow moving out of operating DFS channel in non-ETSI

2017-02-27 Thread Vasanthakumar Thiagarajan
link. Better do not allow any off-channel switch from a DFS operating channel in non-ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- net/wireless/nl80211.c | 52 ++ 1 file changed, 52 insertions(+) diff

[PATCH V2 3/3] cfg80211: Share Channel DFS state across wiphys of same DFS domain

2017-02-27 Thread Vasanthakumar Thiagarajan
channel associated to a particular wiphy the the same state change is propagated to other wiphys having the same DFS reg domain configuration. Also when a new wiphy is created the dfs channel state of other existing wiphys of same DFS domain is copied. Signed-off-by: Vasanthakumar Thiagarajan

[PATCH V2 1/3] cfg80211: Make pre-CAC results valid only for ETSI domain

2017-02-27 Thread Vasanthakumar Thiagarajan
when DFS channel is moved from available to usable state after the grace period. Also make sure the DFS channel state is reset to usable once the beaconing operation on that channel is brought down (like stop_ap, leave_ibss and leave_mesh) in non-ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan

[PATCH V2 0/3] Pre-CAC and sharing DFS state across multiple radios

2017-02-27 Thread Vasanthakumar Thiagarajan
the current behaviour of pre-CAC for non-ETSI domain by giving 2 seconds grace period for dfs master interface to start operating on the CAC completed channel. This patch set also adds support to share dfs channel state across multiple radios of the same regulatory configuration. Vasanthakumar Thiagarajan

[PATCH 3/3] cfg80211: Share Channel DFS state across wiphys of same DFS domain

2017-02-20 Thread Vasanthakumar Thiagarajan
channel associated to a particular wiphy the the same state change is propagated to other wiphys having the same DFS reg domain configuration. Also when a new wiphy is created the dfs channel state of other existing wiphys of same DFS domain is copied. Signed-off-by: Vasanthakumar Thiagarajan

[PATCH 1/3] cfg80211: Make pre-CAC results valid only for ETSI domain

2017-02-20 Thread Vasanthakumar Thiagarajan
when DFS channel is moved from available to usable state after the grace period. Also make sure the DFS channel state is reset to usable once the beaconing operation on that channel is brought down (like stop_ap, leave_ibss and leave_mesh) in non-ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan

[PATCH 2/3] cfg80211: Disallow moving out of operating DFS channel in non-ETSI

2017-02-20 Thread Vasanthakumar Thiagarajan
link. Better do not allow any off-channel switch from a DFS operating channel in non-ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- net/wireless/nl80211.c | 52 ++ 1 file changed, 52 insertions(+) diff

[PATCH 0/3] Pre-CAC and sharing DFS state across multiple radios

2017-02-20 Thread Vasanthakumar Thiagarajan
the current behaviour of pre-CAC for non-ETSI domain by giving 2 seconds grace period for dfs master interface to start operating on the CAC completed channel. This patch set also adds support to share dfs channel state across multiple radios of the same regulatory configuration. Vasanthakumar Thiagarajan

[RFC V2 2/3] cfg80211: Disallow moving out of operating DFS channel in non-ETSI

2017-02-16 Thread Vasanthakumar Thiagarajan
link. Better do not allow any off-channel switch from a DFS operating channel in non-ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- V2: Addressing below comments from Johannes - Add locking assertion to cfg80211_off_channel_oper_a

[RFC V2 1/3] cfg80211: Make pre-CAC results valid only for ETSI domain

2017-02-16 Thread Vasanthakumar Thiagarajan
when DFS channel is moved from available to usable state after the grace period. Also make sure the DFS channel state is reset to usable once the beaconing operation on that channel is brought down (like stop_ap, leave_ibss and leave_mesh) in non-ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan

[RFC V2 3/3] cfg80211: Share Channel DFS state across wiphys of same DFS domain

2017-02-16 Thread Vasanthakumar Thiagarajan
channel associated to a particular wiphy the the same state change is propagated to other wiphys having the same DFS reg domain configuration. Also when a new wiphy is created the dfs channel state of other existing wiphys of same DFS domain is copied. Signed-off-by: Vasanthakumar Thiagarajan

[RFC V2 0/3] Pre-CAC and sharing DFS state across multiple radios

2017-02-16 Thread Vasanthakumar Thiagarajan
the current behaviour of pre-CAC for non-ETSI domain by giving 2 seconds grace period for dfs master interface to start operating on the CAC completed channel. This patch set also adds support to share dfs channel state across multiple radios of the same regulatory configuration. Vasanthakumar Thiagarajan

[RFC 3/3] cfg80211: Share Channel DFS state across wiphys of same DFS domain

2017-01-25 Thread Vasanthakumar Thiagarajan
channel associated to a particular wiphy the the same state change is propagated to other wiphys having the same DFS reg domain configuration. Also when a new wiphy is created the DFS channel state of other existing wiphys of same DFS domain is copied. Signed-off-by: Vasanthakumar Thiagarajan <vt

[RFC 2/3] cfg80211: Disallow moving out of operating DFS channel in non-ETSI

2017-01-25 Thread Vasanthakumar Thiagarajan
link. Better do not allow any off-channel switch from a DFS operating channel in non-ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- net/wireless/nl80211.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/net/wi

[RFC 1/3] cfg80211: Make pre-CAC results valid only for ETSI domain

2017-01-25 Thread Vasanthakumar Thiagarajan
when DFS channel is moved from available to usable state after the grace period. Also make sure the DFS channel state is reset to usable once the beaconing operation on that channel is brought down (like stop_ap, leave_ibss and leave_mesh) in non-ETSI domain. Signed-off-by: Vasanthakumar Thiagarajan

[RFC 0/3] Pre-CAC and sharing DFS state across multiple radios

2017-01-25 Thread Vasanthakumar Thiagarajan
the current behaviour of pre-CAC for non-ETSI domain by giving 2 seconds grace period for dfs master interface to start operating on the CAC completed channel. This patch set also adds support to share dfs channel state across multiple radios of the same regulatory configuration. Vasanthakumar Thiagarajan

[RFC 3/3] mac80211: Add receive path for ethernet frame format

2016-12-14 Thread Vasanthakumar Thiagarajan
-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- include/net/mac80211.h | 19 + net/mac80211/rx.c | 189 - 2 files changed, 206 insertions(+), 2 deletions(-) diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 225abaa..7

[RFC 2/3] mac80211: Implement data xmit for 802.11 encap offload

2016-12-14 Thread Vasanthakumar Thiagarajan
using 802.11 encap offload. Currently ath10k fw is capable of doing 802.11 encapsulation/decapsulationi offload. With the corresponding driver changes, using 802.11 encap/decap offload might improve performance. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- inclu

[RFC 1/3] mac80211: Add provision for 802.11 encap/decap offload

2016-12-14 Thread Vasanthakumar Thiagarajan
check offload - Rx duplication check offload - Hardware rate control - Powersave offload Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- include/net/mac80211.h| 16 net/mac80211/debugfs.c| 1 + net/mac80211/driver

[RFC 0/3] Add new data path for ethernet frame format

2016-12-14 Thread Vasanthakumar Thiagarajan
x/rx stats for ethernet frame format. - Any optimization to reduce the amount of code change. - Improve commit log and doc Vasanthakumar Thiagarajan (3): mac80211: Add provision for 802.11 encap/decap offload mac80211: Implement data xmit for 802.11 encap offload mac80211: Add re

[PATCH] ath10k: Fix kernel panic due to race in accessing arvif list

2016-10-10 Thread Vasanthakumar Thiagarajan
, list) { 769 if (arvif->vdev_id == vdev_id && 770 ath10k_mac_vif_chan(arvif->vif, ) == 0) 771 return def.chan; 772 } 773 Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> ---

[PATCH] ath10k: Fix rfc1042 header retrieval in QCA4019 with eth decap mode

2016-07-27 Thread Vasanthakumar Thiagarajan
long with "ath10k: Properly remove padding from the start of rx payload" will fix traffic failure in ethernet decap mode for QCA4019. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/core.c | 12 drivers/net

[PATCH 3/4] ath10k: Properly remove padding from the start of rx payload

2016-07-27 Thread Vasanthakumar Thiagarajan
to retrieve the number of padded bytes and use this while doing undecap. This should fix padding related issues with ethernt decap format with QCA99X0, QCA9984, QCA9888 and QCA4019 hw. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/htt_rx.

[PATCH 4/4] ath10k: Remove 4-addr padding related hw_param configuration

2016-07-27 Thread Vasanthakumar Thiagarajan
, this hw_param is not needed any more. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/core.c | 9 - drivers/net/wireless/ath/ath10k/hw.h | 8 2 files changed, 17 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/cor

[PATCH 2/4] ath10k: Add provision for Rx descriptor abstraction

2016-07-27 Thread Vasanthakumar Thiagarajan
at the begining of the rx payload and this information is needed to undecap the rx packet. Add an abstraction for Rx desc to make use of the new desc information available. The callback that this patch defines to retrieve the padding bytes will be used in follow-up patch. Signed-off-by: Vasanthakumar Thiagarajan

[PATCH 1/4] ath10k: Move ath10k_hw_params definition to hw.h

2016-07-27 Thread Vasanthakumar Thiagarajan
This is to prepare for rx descriptor abstraction where we'll be dereferencing ath10k_hw_params member in hw.h. Moreover hw.h looks more suitable to house ath10k_hw_params definition than core.h Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wirele

[PATCH 0/4] ath10k: Padding related clean ups in rx

2016-07-27 Thread Vasanthakumar Thiagarajan
CA9984 qnd QCA4019 but even fixing this bug will not make ethernet decap mode work, there needs to be some more fix wich would follow this patch series. Vasanthakumar Thiagarajan (4): ath10k: Move ath10k_hw_params definition to hw.h ath10k: Add provision for Rx descriptor abstraction ath10k

[PATCH] ath10k: Fix possible wrong rx_busy time reporting in QCA4019

2016-07-01 Thread Vasanthakumar Thiagarajan
("ath10k: fix cycle counter wraparound handling for QCA4019") Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/hw.

[PATCH 1/2] ath10k: Define an enum to enable cycle counter wraparound logic

2016-06-03 Thread Vasanthakumar Thiagarajan
wraparound behaviour. This patch keeps the existing logic functionally same and a prepares cycle counter wraparound handling to extend for other chips. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/core.c | 4 ++-- drivers/net/wirele

[PATCH 2/2] ath10k: Fix cycle counter wraparound handling for QCA4019

2016-06-03 Thread Vasanthakumar Thiagarajan
Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/core.c | 2 +- drivers/net/wireless/ath/ath10k/hw.c | 24 drivers/net/wireless/ath/ath10k/hw.h | 9 + 3 files changed, 30 insertions(+), 5 deletions(-) diff --g

[PATCH] ath10k: Fix some of the macro definitions of HTT_RX_IND message

2016-06-02 Thread Vasanthakumar Thiagarajan
these information follow the tid right after. This patch does not really fix anything functionally because these macros are not used currently. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/htt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 del

[PATCH 2/2] ath10k: Fix survey reporting with QCA4019

2016-05-06 Thread Vasanthakumar Thiagarajan
In QCA4019, cycle counter wraparound in same fashion as QCA988X. When the cycle counter wraparound it resets to 0x7fff. Set has_shifted_cc_wraparound to true for QCA4019 to enable the code path to handle cycle counter wraparound for consistent survey report. Signed-off-by: Vasanthakumar

[PATCH 1/2] ath10k: suppress warnings when getting wmi peer_rate_code_list event

2016-05-06 Thread Vasanthakumar Thiagarajan
In 10.4, fw sends WMI PEER_RATECODE_LIST_EVENTID after successful peer_assoc cmd. As of now this event is not of much use and not implemented. Change the debug level and messsage as appropriate to suppress "Unknown eventid: 36898". Signed-off-by: Vasanthakumar Thiagara

[PATCH 3/4] ath10k: Define rx_ppdu_end for QCA9984

2016-04-20 Thread Vasanthakumar Thiagarajan
QCA9984 Rx descriptor has two 32-bit words of location information when compared to one 32-bit word in QCA99X0. To handle this difference in rx descriptor ppdu_end, define a new ppdu_end for QCA9984 descriptor which has the new structure to represent rx_location_info. Signed-off-by: Vasanthakumar

[PATCH 2/4] ath10k: Clean up growing hw checks during safe and full reset

2016-04-20 Thread Vasanthakumar Thiagarajan
rid of those hw revision checks in ath10k_pci_safe_chip_reset() and ath10k_pci_chip_reset(). As such this patch does not fix any issue. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/pci.c | 44 ++- d

[PATCH 1/4] ath10k: Move rx_location_info out of struct rx_pkt_end

2016-04-20 Thread Vasanthakumar Thiagarajan
Define rx_location_info in struct rx_ppdu_end_qca99x0 after rx_pkt_end. This is to prepare rx_ppdu_end for QCA9984 chip. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/rx_desc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/4] Add support for QCA9984

2016-04-20 Thread Vasanthakumar Thiagarajan
This patch set adds QCA9984/QCA9994 1.0 support. Boot sequence is same as QCA99X0. Vasanthakumar Thiagarajan (4): ath10k: Move rx_location_info out of struct rx_pkt_end ath10k: Clean up growing hw checks during safe and full reset ath10k: Define rx_ppdu_end for QCA9984 ath10k: Enable

[PATCH] ath10k: Advertise force AP scan feature

2016-03-15 Thread Vasanthakumar Thiagarajan
Results obtained from scan can be used for spectrum management by doing something like building information of preferred channel lists and sharing them with stations around. It is to be noted that traffic to the connected stations would be affected during the scan. Signed-off-by: Vasanthakumar

[PATCH] mac80211: Allow probe response frame rx to user space in AP mode

2016-03-06 Thread Vasanthakumar Thiagarajan
capability to receive probe response frame in AP mode to user space. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- net/mac80211/main.c | 2 ++ net/mac80211/rx.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/net/mac80211/main.c b/net/mac80211/main.c

Re: [PATCH V2 0/3] Fix few WMI/HTT interfaces

2015-11-05 Thread Vasanthakumar Thiagarajan
On Thursday 05 November 2015 04:33 PM, Kalle Valo wrote: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> writes: On Wed, Nov 04, 2015 at 07:59:39PM +0200, Kalle Valo wrote: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> writes: This patch set fixes mismatch i

[PATCH V3 3/3] ath10k: Fix peerid configuration in htt tx desc for htt version < 3.4

2015-11-04 Thread Vasanthakumar Thiagarajan
fix offchan reliability") Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/htt.h| 9 +++-- drivers/net/wireless/ath/ath10k/htt_tx.c | 11 +-- drivers/net/wireless/ath/ath10k/mac.c| 5 +++-- drivers/net/wireless/ath/ath

[PATCH V3 0/3] Fix few WMI/HTT interfaces

2015-11-04 Thread Vasanthakumar Thiagarajan
eck to the helper and use it in ath10k_htt_tx() while configuring peerid. V3: - Rebase on top of ath:master TOT Vasanthakumar Thiagarajan (3): ath10k: Fix peer assoc complete WMI command for 10.4 ath10k: Rename the helper which is used for off-channel tx ath10k: Fix pee

[PATCH V3 2/3] ath10k: Rename the helper which is used for off-channel tx

2015-11-04 Thread Vasanthakumar Thiagarajan
Rename ath10k_mac_need_offchan_tx_work() to ath10k_mac_tx_frm_has_freq() to make it more meaningful. This helper will be used in the future change. No functionality change. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/mac

[PATCH V3 1/3] ath10k: Fix peer assoc complete WMI command for 10.4

2015-11-04 Thread Vasanthakumar Thiagarajan
may be using this new member. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/wmi.c | 37 ++- drivers/net/wireless/ath/ath10k/wmi.h | 5 + 2 files changed, 41 insertions(+), 1 deletion(-) diff

Re: [PATCH V2 0/3] Fix few WMI/HTT interfaces

2015-11-04 Thread Vasanthakumar Thiagarajan
On Wed, Nov 04, 2015 at 07:59:39PM +0200, Kalle Valo wrote: > Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> writes: > > > This patch set fixes mismatch in peer_assoc complete wmi command for > > version 10.4 and peer_id configuration for HTT version < 3.4. >

[PATCH V2 0/3] Fix few WMI/HTT interfaces

2015-11-04 Thread Vasanthakumar Thiagarajan
eck to the helper and use it in ath10k_htt_tx() while configuring peerid. Vasanthakumar Thiagarajan (3): ath10k: Fix peer assoc complete WMI command for 10.4 ath10k: Rename the helper which is used for off-channel tx ath10k: Fix peerid configuration in htt tx desc for htt version &l

[PATCH V2 2/3] ath10k: Rename the helper which is used for off-channel tx

2015-11-04 Thread Vasanthakumar Thiagarajan
Rename ath10k_mac_need_offchan_tx_work() to ath10k_mac_tx_frm_has_freq() to make it more meaningful. This helper will be used in the future change. No functionality change. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/mac

[PATCH V2 3/3] ath10k: Fix peerid configuration in htt tx desc for htt version < 3.4

2015-11-04 Thread Vasanthakumar Thiagarajan
fix offchan reliability") Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/htt.h| 9 +++-- drivers/net/wireless/ath/ath10k/htt_tx.c | 11 +-- drivers/net/wireless/ath/ath10k/mac.c| 5 +++-- drivers/net/wireless/ath/ath

[PATCH V2 1/3] ath10k: Fix peer assoc complete WMI command for 10.4

2015-11-04 Thread Vasanthakumar Thiagarajan
may be using this new member. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/wmi.c | 37 ++- drivers/net/wireless/ath/ath10k/wmi.h | 5 + 2 files changed, 41 insertions(+), 1 deletion(-) diff

[PATCH 2/2] ath10k: Fix peerid configuration in htt tx desc for htt version < 3.4

2015-11-02 Thread Vasanthakumar Thiagarajan
fe use target_version_major and target_version_minor along with htt-op-version before configuring peer id and freq in htt tx desc. Fixes: 8d6d36243610 ("ath10k: fix offchan reliability") Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/at

[PATCH 1/2] ath10k: Fix peer assoc complete WMI command for 10.4

2015-11-02 Thread Vasanthakumar Thiagarajan
may be using this new member. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/wmi.c | 37 ++- drivers/net/wireless/ath/ath10k/wmi.h | 5 + 2 files changed, 41 insertions(+), 1 deletion(-) diff

Re: [PATCH 2/2] ath10k: Fix peerid configuration in htt tx desc for htt version < 3.4

2015-11-02 Thread Vasanthakumar Thiagarajan
On Monday 02 November 2015 03:57 PM, Michal Kazior wrote: On 2 November 2015 at 09:33, Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> wrote: Of a word in struct htt_data_tx_desc htt version >= 3.4 firmware uses LSB 16-bit for frequency configuration which is used for offc

[PATCH 1/3] ath10k: Add new service defines for 10.4

2015-10-29 Thread Vasanthakumar Thiagarajan
No functional changes, adds new wmi service bits for 10.4 firmware to be sync with 10.4 firmware. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/wmi.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/net/wi

[PATCH 0/3] Add new WMI defines to 10.4

2015-10-29 Thread Vasanthakumar Thiagarajan
This patch set does not have any real functionality changes. Adds new WMI defines to be in sync with 10.4 firmware. Vasanthakumar Thiagarajan (3): ath10k: Add new service defines for 10.4 ath10k: Add new WMI cmd/event defines for 10.4 ath10k: Add new pdev params defines to 10.4 drivers

[PATCH 3/3] ath10k: Add new pdev params defines to 10.4

2015-10-29 Thread Vasanthakumar Thiagarajan
No functionality change, just sync to the latest pdev params that 10.4 firmware defines. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/wmi.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k

[PATCH 2/3] ath10k: Add new WMI cmd/event defines for 10.4

2015-10-29 Thread Vasanthakumar Thiagarajan
No real functionality change, add WMI command/event defines to be in sync with 10.4 firmware. Signed-off-by: Vasanthakumar Thiagarajan <vthia...@qti.qualcomm.com> --- drivers/net/wireless/ath/ath10k/wmi.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/

[PATCH] ath10k: Fix DMA alloc failure for target requested memory chunks

2015-08-28 Thread Vasanthakumar Thiagarajan
*16kB (UEMR) 404*32kB (UEMR) 455*64kB (UEMR) 424*128kB (UEMR) 379*256kB (UMR) 327*512kB (UMR) 1*1024kB (R) 0*2048kB 0*4096kB = 374544kB Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c | 1 + drivers/net/wireless/ath/ath10k/wmi.c | 76

[PATCH] ath10k: Fill in wmi 10.4 command handlers for addba/delba debug commands

2015-08-13 Thread Vasanthakumar Thiagarajan
/XX:XX:XX:XX:XX:XX/addba_resp /sys/kernel/debug/ieee80211/phyX/netdev:wlanX/stations/XX:XX:XX:XX:XX:XX/delba Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k

[PATCH 1/2] ath10k: Fix invalid survey reporting for QCA99X0

2015-08-12 Thread Vasanthakumar Thiagarajan
reported with CHAN_INFO_PRE_COMPLETE. Without this fix there will be lots of 0 msecs reported as active and busy time. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/wmi.c | 6 -- drivers/net/wireless/ath/ath10k/wmi.h | 1 + 2 files changed

[PATCH 2/2] ath10k: Add cycle/rx_clear counters frequency to hw_params

2015-08-12 Thread Vasanthakumar Thiagarajan
. This change fixes inconsistent channel active/busy time. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c | 5 + drivers/net/wireless/ath/ath10k/core.h | 2 ++ drivers/net/wireless/ath/ath10k/hw.c | 4 ++-- drivers/net/wireless/ath

Re: [PATCH] ath10k: Add QCA99X0 to supported device list

2015-08-06 Thread Vasanthakumar Thiagarajan
On Wednesday 05 August 2015 05:51 PM, Felix Fietkau wrote: On 2015-07-21 13:36, Vasanthakumar Thiagarajan wrote: Add vendor/device id of QCA99X0 V2.0 to pci id table and QCA99X0_HW_2_0_CHIP_ID_REV to ath10k_pci_supp_chips[] for QCA99X0 to get detected by the driver. Signed-off

Re: [PATCH] ath10k: remove NULL ptr deref in variable init of ath10k_monitor_vdev_start

2015-07-27 Thread Vasanthakumar Thiagarajan
On Tuesday 28 July 2015 12:52 AM, John W. Linville wrote: In ath10k_monitor_vdev_start, chandef is initialized to NULL and then channel is immediately thereafter initialized to chandef-chan (i.e. NULL-chan). This appears to be some sort of cut-n-paste error, since the same assignment is done

[PATCH] ath10k: Add QCA99X0 to supported device list

2015-07-21 Thread Vasanthakumar Thiagarajan
Add vendor/device id of QCA99X0 V2.0 to pci id table and QCA99X0_HW_2_0_CHIP_ID_REV to ath10k_pci_supp_chips[] for QCA99X0 to get detected by the driver. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/pci.c | 2 ++ 1 file changed, 2

[PATCH V2] ath10k: Delay device access after cold reset

2015-07-10 Thread Vasanthakumar Thiagarajan
after write of SOC_GLOBAL_RESET_ADDRESS to fix this issue. This patch is tested on QCA988X. This is also tested on QCA99X0 which is WIP. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- V2: - Include tested hw in commit log. drivers/net/wireless/ath/ath10k/pci.c | 20

[PATCH] ath10k: Fix target to cpu address conversion logic

2015-07-03 Thread Vasanthakumar Thiagarajan
'commit 418ca5992e2f (ath10k: Make target cpu address to CE address conversion chip specific)' mask 0x7fff is added by mistake instead of 0x7ff. Fix this regression. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/pci.c | 2 +- 1 file

[PATCH] ath10k: Delay device access after cold reset

2015-07-03 Thread Vasanthakumar Thiagarajan
after write of SOC_GLOBAL_RESET_ADDRESS to fix this issue. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/pci.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b

Re: [PATCH V2 09/10] ath10k: Add support for code swap

2015-06-29 Thread Vasanthakumar Thiagarajan
On Monday 29 June 2015 04:51 PM, Kalle Valo wrote: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com writes: Code swap is a mechanism to use host memory to store some fw binary code segment. Ath10k host driver allocates and loads the code swap binary into the host memory and configures

[PATCH V2 01/10] ath10k: Add a table to store hw specific values

2015-06-18 Thread Vasanthakumar Thiagarajan
This is to prepare ath10k to support newer chip set. Values like CE_COUNT, MSI_ASSIGN_CE_MAX and RTC_STATE_V_ON can be different for different chips. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c | 2 ++ drivers/net/wireless/ath

[PATCH V2 02/10] ath10k: Add new reg_address/mask to hw register table

2015-06-18 Thread Vasanthakumar Thiagarajan
Add more register address and mask which can be different for newer chip to hw_reg table. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/ce.h | 6 -- drivers/net/wireless/ath/ath10k/hw.c | 22 ++ drivers/net

[PATCH V2 06/10] ath10k: Add chip reset sequence for QCA99X0

2015-06-18 Thread Vasanthakumar Thiagarajan
QCA99X0 supports only cold reset. Also, made ath10k_pci_irq_msi_fw_mask() and ath10k_pci_irq_msi_fw_unmask() non-99X0 specific till we get proper register configuration to mask/unmask irq/MSI. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k

Re: [PATCH 00/10] Add QCA99X0 support

2015-06-18 Thread Vasanthakumar Thiagarajan
On Thu, Jun 18, 2015 at 09:20:51AM +0300, Kalle Valo wrote: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com writes: This patch set adds changes for QCA99X0 chip in pci probe, Copy Engine init and firmware downloads. Since it is still work in progress the support for this chip

[PATCH V2 05/10] ath10k: Make target cpu address to CE address conversion chip specific

2015-06-18 Thread Vasanthakumar Thiagarajan
Make the helper converting target virtual address space to CE address space a target type specific to support QCA99X0. Also make this as function instead of macro. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/pci.c | 25

[PATCH V2 03/10] ath10k: Add hw register/values for QCA99X0 chip

2015-06-18 Thread Vasanthakumar Thiagarajan
This is to prepare the driver for QCA99X0 chip support. This commit adds hw_params, hw register table and hw_values table for QCA99X0 chip. Please note this is only a partial patch adding support for QCA99X0, so the device id is not yet added to pci device table. Signed-off-by: Vasanthakumar

[PATCH V2 04/10] ath10k: Copy Engine related changes for QCA99X0

2015-06-18 Thread Vasanthakumar Thiagarajan
QCA99X0 supports upto 12 Copy engines. Host and target CE configuration table is updated to support new copy engine pipes. This also fixes the assumption of diagnostic CE by making CE_7 as the one instead of CE_COUNT - 1. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com

[PATCH V2 07/10] ath10k: Extend CE src desc flags for interrupt indication

2015-06-18 Thread Vasanthakumar Thiagarajan
and CE_DESC_FLAGS_META_DATA_LSB are based on the target type. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/ce.c | 1 + drivers/net/wireless/ath/ath10k/ce.h | 9 +++-- drivers/net/wireless/ath/ath10k/hw.c | 6 ++ drivers/net/wireless/ath/ath10k/hw.h

[PATCH V2 09/10] ath10k: Add support for code swap

2015-06-18 Thread Vasanthakumar Thiagarajan
swap support for firmware binary. Code swap binary for firmware bin is available in ATH10K_FW_IE_FW_CODE_SWAP_IMAGE. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/Makefile | 3 +- drivers/net/wireless/ath/ath10k/core.c | 24 drivers

[PATCH V2 08/10] ath10k: Fix BMI communication timeout for QCA99X0

2015-06-18 Thread Vasanthakumar Thiagarajan
There is more than 1 sec delay in getting response from target through BMI in QCA99X0. Increase the BMI communication timeout to 2*HZ to fix BMI failures. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/bmi.h | 2 +- 1 file changed, 1

[PATCH V2 10/10] ath10k: Add BMI param value to execute otp to hw_param

2015-06-18 Thread Vasanthakumar Thiagarajan
BMI parameter value to execute downloaded otp binary is different for QCA99X0. Have a member in hw_params to hold hw specific BMI param. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c | 8 +++- drivers/net/wireless/ath/ath10k

[PATCH 07/10] ath10k: Extend CE src desc flags for interrupt indication

2015-06-15 Thread Vasanthakumar Thiagarajan
and CE_DESC_FLAGS_META_DATA_LSB are based on the target type. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/ce.c | 1 + drivers/net/wireless/ath/ath10k/ce.h | 9 +++-- drivers/net/wireless/ath/ath10k/hw.c | 6 ++ drivers/net/wireless/ath/ath10k/hw.h

[PATCH 08/10] ath10k: Fix BMI communication timeout for QCA99X0

2015-06-15 Thread Vasanthakumar Thiagarajan
There is more than 1 sec delay in getting response from target through BMI in QCA99X0. Increase the BMI communication timeout to 2*HZ to fix BMI failures. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/bmi.h | 2 +- 1 file changed, 1

[PATCH 09/10] ath10k: Add support for code swap

2015-06-15 Thread Vasanthakumar Thiagarajan
swap support for firmware binary. Code swap binary for firmware bin is available in ATH10K_FW_IE_FW_CODE_SWAP_IMAGE. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/Makefile | 3 +- drivers/net/wireless/ath/ath10k/core.c | 24 drivers

[PATCH 03/10] ath10k: Add hw register/values for QCA99X0 chip

2015-06-15 Thread Vasanthakumar Thiagarajan
This is to prepare the driver for QCA99X0 chip support. This commit adds hw_params, hw register table and hw_values table for QCA99X0 chip. Please note this is only a partial patch adding support for QCA99X0, so the device id is not yet added to pci device table. Signed-off-by: Vasanthakumar

[PATCH 10/10] ath10k: Add BMI param value to execute otp to hw_param

2015-06-15 Thread Vasanthakumar Thiagarajan
BMI parameter value to execute downloaded otp binary is different for QCA99X0. Have a member in hw_params to hold hw specific BMI param. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/core.c | 8 +++- drivers/net/wireless/ath/ath10k

[PATCH 06/10] ath10k: Add chip reset sequence for QCA99X0

2015-06-15 Thread Vasanthakumar Thiagarajan
QCA99X0 supports only cold reset. Also, made ath10k_pci_irq_msi_fw_mask() and ath10k_pci_irq_msi_fw_unmask() non-99X0 specific till we get proper register configuration to mask/unmask irq/MSI. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k

[PATCH 00/10] Add QCA99X0 support

2015-06-15 Thread Vasanthakumar Thiagarajan
This patch set adds changes for QCA99X0 chip in pci probe, Copy Engine init and firmware downloads. Since it is still work in progress the support for this chip is not yet advertised in pci device table. Vasanthakumar Thiagarajan (10): ath10k: Add a table to store hw specific values ath10k

[PATCH 02/10] ath10k: Add new reg_address/mask to hw register table

2015-06-15 Thread Vasanthakumar Thiagarajan
Add more register address and mask which can be different for newer chip to hw_reg table. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/ce.h | 6 -- drivers/net/wireless/ath/ath10k/hw.c | 22 ++ drivers/net

[PATCH 05/10] ath10k: Make target cpu address to CE address conversion chip specific

2015-06-15 Thread Vasanthakumar Thiagarajan
Make the helper converting target virtual address space to CE address space a target type specific to support QCA99X0. Also make this as function instead of macro. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com --- drivers/net/wireless/ath/ath10k/pci.c | 25

[PATCH 04/10] ath10k: Copy Engine related changes for QCA99X0

2015-06-15 Thread Vasanthakumar Thiagarajan
QCA99X0 supports upto 12 Copy engines. Host and target CE configuration table is updated to support new copy engine pipes. This also fixes the assumption of diagnostic CE by making CE_7 as the one instead of CE_COUNT - 1. Signed-off-by: Vasanthakumar Thiagarajan vthia...@qti.qualcomm.com

  1   2   >