[PATCH 2/7] staging: wilc1000: Add function to calculate ac queue limit

2017-06-26 Thread Aditya Shankar
This patch adds a function which calculates the queue limit for a given access category queue. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 42 1 file changed, 42 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/

[PATCH 3/7] staging: wilc1000: WMM classification of data

2017-06-26 Thread Aditya Shankar
This patch adds a new function to classify data to available WMM access categories based on the DSCP value in the header. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 51 1 file changed, 51 insertions(+) diff --git a/drivers/stagi

[PATCH 1/7] staging: wilc1000: Add support for AC classification.

2017-06-26 Thread Aditya Shankar
This patch adds new variables and defines for adding access category classification Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.h | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc10

[PATCH 4/7] staging: wilc1000: Add function to balance packet count

2017-06-26 Thread Aditya Shankar
Add a new function to track the cound of packets and determine the ratio of current number of packets to maximum count of packets. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/staging/wilc100

[PATCH 5/7] staging: wilc1000: Get packet count from firmware

2017-06-26 Thread Aditya Shankar
Add a new function to get packet count from the firmware. 31:25 24 23:17 16 15:98 7:2 1 0 VO CNT VO ACM VI CNT VI ACM BE CNT BE ACM BK CNT BK ACM VMM ready Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 8 1 fi

[PATCH 0/7] Enable access category classification on Tx path

2017-06-26 Thread Aditya Shankar
This patch series adds changes made to implement access category based data classification and manages buffers allocation between different access categories on the Tx path. Aditya Shankar (7): staging: wilc1000: Add support for AC classification. staging: wilc1000: Add function to calculate a

[PATCH 6/7] staging: wilc1000: Change ac based on acm status

2017-06-26 Thread Aditya Shankar
Add a new function to check and alter the ac if needed based on the acm status for a particular queue. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wi

[PATCH 7/7] staging: wilc1000: Update ACM bit status

2017-06-26 Thread Aditya Shankar
Add a new function to update ACM bit status for a queue for all access categories. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index

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

2017-06-26 Thread kbuild test robot
Hi Guillermo, [auto build test WARNING on staging/staging-testing] [also build test WARNING on next-20170626] [cannot apply to v4.12-rc7] [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

Re: [PATCH] nl80211: Don't verify owner_nlportid on NAN commands

2017-06-26 Thread Johannes Berg
On Fri, 2017-06-23 at 23:03 +0200, Arend van Spriel wrote: > > Also is this not a more fundamental flaw in netlink socket behavior. > Should there be some priority imposed on command responses over event > messages. Just seems like this patch is a workaround. In a way, but it's not that easy. ACK

Re: [RFC 3/6] mac80211: add a TXQ for other powersave-buffered frames

2017-06-26 Thread Johannes Berg
On Fri, 2017-06-23 at 05:27 -0700, Ben Greear wrote: > I don't understand the code well enough to know if this matters or > not, but the ath10k wave-2 stuff has some txq prefetch logic in the > firmware (and support in the driver).  But, it doesn't prefetch for > the mgt tid as far as I can tell. 

Re: [PATCH] nl80211: Don't verify owner_nlportid on NAN commands

2017-06-26 Thread Luca Coelho
On Fri, 2017-06-23 at 23:03 +0200, Arend van Spriel wrote: > On 23-06-17 11:26, Luca Coelho wrote: > > From: Andrei Otcheretianski > > > > If NAN interface is created with NL80211_ATTR_SOCKET_OWNER, the socket > > that is used to create the interface is used for all NAN operations and > > reporti

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

2017-06-26 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 insertions(+), 4 deletio

[PATCH v2 0/8] Enable access category classification on Tx path

2017-06-26 Thread Aditya Shankar
This patch series adds changes made to implement access category based data classification and manages buffers allocation between different access categories on the Tx path. Aditya Shankar (8): staging: wilc1000: Add support for AC classification. staging: wilc1000: Add function to calculate a

[PATCH v2 4/8] staging: wilc1000: Add function to balance packet count

2017-06-26 Thread Aditya Shankar
Add a new function to track the cound of packets and determine the ratio of current number of packets to maximum count of packets. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/staging/wilc100

[PATCH v2 1/8] staging: wilc1000: Add support for AC classification.

2017-06-26 Thread Aditya Shankar
This patch adds new variables and defines for adding access category classification Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.h | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc10

[PATCH v2 2/8] staging: wilc1000: Add function to calculate ac queue limit

2017-06-26 Thread Aditya Shankar
This patch adds a function which calculates the queue limit for a given access category queue. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 42 1 file changed, 42 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/

[PATCH v2 5/8] staging: wilc1000: Add new variable for ac queue management

2017-06-26 Thread Aditya Shankar
This patch adds a new variable in the wilc struct to manage ac queues. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wfi_netdevice.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/wilc1000/wilc_wfi_netdevice.h b/drivers/staging/wilc1000/wilc_wfi_netdevice.

[PATCH v2 8/8] staging: wilc1000: Update ACM bit status

2017-06-26 Thread Aditya Shankar
Add a new function to update ACM bit status for a queue for all access categories. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index

[PATCH v2 3/8] staging: wilc1000: WMM classification of data

2017-06-26 Thread Aditya Shankar
This patch adds a new function to classify data to available WMM access categories based on the DSCP value in the header. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 51 1 file changed, 51 insertions(+) diff --git a/drivers/stagi

[PATCH v2 6/8] staging: wilc1000: Get packet count from firmware

2017-06-26 Thread Aditya Shankar
Add a new function to get packet count from the firmware. 31:25 24 23:17 16 15:98 7:2 1 0 VO CNT VO ACM VI CNT VI ACM BE CNT BE ACM BK CNT BK ACM VMM ready Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 8 1 fi

[PATCH v2 7/8] staging: wilc1000: Change ac based on acm status

2017-06-26 Thread Aditya Shankar
Add a new function to check and alter the ac if needed based on the acm status for a particular queue. Signed-off-by: Aditya Shankar --- drivers/staging/wilc1000/wilc_wlan.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wi

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

2017-06-26 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 | 11 +++ 1 file changed, 7 insertions(+), 4 deleti

Re: [RFC 3/6] mac80211: add a TXQ for other powersave-buffered frames

2017-06-26 Thread Ben Greear
On 06/26/2017 04:00 AM, Johannes Berg wrote: On Fri, 2017-06-23 at 05:27 -0700, Ben Greear wrote: I don't understand the code well enough to know if this matters or not, but the ath10k wave-2 stuff has some txq prefetch logic in the firmware (and support in the driver). But, it doesn't prefe

Re: [RFC 3/6] mac80211: add a TXQ for other powersave-buffered frames

2017-06-26 Thread Johannes Berg
On Mon, 2017-06-26 at 07:15 -0700, Ben Greear wrote: > > This *can* be solved, even in this piece of code I inserted here, > > but it'd have to keep state about the queues and then insert some > > hooks elsewhere. I'm pretty sure I can solve that, but don't have > > the time (or even hardware) to

[PATCH v2] nl80211: Don't verify owner_nlportid on NAN commands

2017-06-26 Thread Luca Coelho
From: Andrei Otcheretianski If NAN interface is created with NL80211_ATTR_SOCKET_OWNER, the socket that is used to create the interface is used for all NAN operations and reporting NAN events. However, it turns out that sending commands and receiving events on the same socket is not possible in a

Re: brcmfmac: don't warn user if requested nvram fails

2017-06-26 Thread Rafał Miłecki
On 8 April 2017 at 11:53, Hans de Goede wrote: > On 07-04-17 23:43, Arend Van Spriel wrote: >> On 6-4-2017 14:14, Hans de Goede wrote: >>> I noticed your patch-series on the lwn.net kernel page, >>> and I took a peek :) >>> >>> I don't think that this patch: >>> >>> >>> https://git.kernel.org/pub/

Re: [PATCH 6/7] staging: wilc1000: Change ac based on acm status

2017-06-26 Thread kbuild test robot
Hi Aditya, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.12-rc7 next-20170626] [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/Aditya-Shankar/staging-wilc1000

[PATCH] ti: wl18xx: add checks on wl18xx_top_reg_write() return value

2017-06-26 Thread Gustavo A. R. Silva
Check return value from call to wl18xx_top_reg_write(), so in case of error jump to goto label out and return. Also, remove unnecessary value check before goto label out. Addresses-Coverity-ID: 1226938 Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/ti/wl18xx/main.c | 6 -- 1 fi

[PATCH] ath9k: remove useless variable assignment in ath_mci_intr()

2017-06-26 Thread Gustavo A. R. Silva
Value assigned to variable offset at line 551 is overwritten at line 562, before it can be used. This makes such variable assignment useless. Addresses-Coverity-ID: 1226941 Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/ath/ath9k/mci.c | 2 +- 1 file changed, 1 insertion(+), 1 delet