[PATCH 12/21] ath10k: Support up to 64 vdevs.

2016-05-09 Thread greearb
From: Ben Greear The (1 << x) - 1 trick won't work when you are trying to fill up all 64 bits, so add special case for that. And, move the limits to the per-nic structure instead of per-driver to allow better dynamic use of the limits. Signed-off-by: Ben Greear

[PATCH 19/21] ath10k: Enable adhoc mode for CT firmware.

2016-05-09 Thread greearb
From: Ben Greear CT firmware can support IBSS mode, so allow users to configure this. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/mac.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 13/21] ath10k: Document cycle count related counters.

2016-05-09 Thread greearb
From: Ben Greear They are not necessarily named in an intuitive manner, so at least add some comments to help the next person. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/core.h | 8 1 file changed, 4 insertions(+),

[PATCH 00/21] ath10k patches, generic and CT firmware related.

2016-05-09 Thread greearb
From: Ben Greear These are against wireless-testing from a few days ago. Here are a bunch of ath10k patches. First one is a crash fix. Next few are at least somewhat useful for generic firmware, and more useful for CT firmware. Much of it is related to better

[PATCH 01/21] ath10k: Fix crash related to printing features.

2016-05-09 Thread greearb
From: Ben Greear This looks like a regression from c4cdf753 (move fw_features to struct ath10k_fw_file) Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 03/21] ath10k: Support setting debug mask from driver code.

2016-05-09 Thread greearb
From: Ben Greear Might want to turn off verbose debug as soon as you see a firmware crash, for instance. Helps keep dmesg output from over-running the stuff you care about. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/debug.c

[PATCH 15/21] ath10k: support CT firmware flag.

2016-05-09 Thread greearb
From: Ben Greear Add placeholder so CT firmware can more easily co-exist with upstream kernel. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/core.c | 1 + drivers/net/wireless/ath/ath10k/core.h | 3 +++ 2 files changed, 4

[PATCH v2] mac80211: add vht cap decode to debugfs.

2016-05-02 Thread greearb
From: Ben Greear This makes it a lot easier to understand the capabilities used by the station: VHT supported cap: 0x300819b2 MAX-MPDU-11454 RXLDPC SHORT-GI-80 TXSTBC RXSTBC_1

[PATCH] mac80211: add vht cap decode to debugfs.

2016-05-02 Thread greearb
From: Ben Greear This makes it a lot easier to understand the capabilities used by the station: VHT supported cap: 0x300819b2 MAX-MPDU-11454 RXLDPC SHORT-GI-80 TXSTBC RXSTBC_1

[PATCH] mac80211: Ensure no limits on station rhashtable.

2016-04-01 Thread greearb
From: Ben Greear By default, the rhashtable logic will fail to insert objects if the key-chains are too long and un-balanced. In the degenerate case where mac80211 is creating many station vdevs connected to the same peer, this case can be hit. So, set

[PATCH v2 2/5] ath10k: Ensure peer_map references are cleaned up.

2016-04-01 Thread greearb
From: Ben Greear While debugging OS crashes due to firmware crashes, I enabled kasan, and it noticed that peer objects were being used-after-freed. Looks like there are two places we could be leaving stale references in the peer-map, so clean that up. Signed-off-by:

[PATCH v2 5/5] ath10k: Fix deadlock when peer cannot be created.

2016-04-01 Thread greearb
From: Ben Greear We must not attempt to send WMI packets while holding the data-lock, as it may deadlock: BUG: sleeping function called from invalid context at drivers/net/wireless/ath/ath10k/wmi.c:1824 in_atomic(): 1, irqs_disabled(): 0, pid: 2878, name:

[PATCH v2 4/5] ath10k: Clean up peer when sta goes away.

2016-04-01 Thread greearb
From: Ben Greear If WMI and/or firmware has issues removing the peer object, then we still need to clean up the peer object in the driver. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/mac.c | 12 ++-- 1 file changed,

[PATCH v2 3/5] ath10k: Add WARN_ON if we over-write peer-map pointer.

2016-04-01 Thread greearb
From: Ben Greear Not sure this can happen, but seems like a reasonable sanity check. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/txrx.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v2 1/5] ath10k: Ensure txrx-compl-task is stopped when cleaning htt-tx.

2016-04-01 Thread greearb
From: Ben Greear Otherwise, the txrx-compl-task may access some bad memory? Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/htt_tx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c

[PATCH] ath10k: Clean up peer when sta goes away.

2016-03-31 Thread greearb
From: Ben Greear If WMI and/or firmware has issues removing the peer object, then we still need to clean up the peer object in the driver. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/mac.c | 10 -- 1 file changed, 8

[PATCH 3/3] ath10k: Add BUG_ON if we over-write peer-map pointer.

2016-03-31 Thread greearb
From: Ben Greear Not sure this can happen, but seems like a reasonable sanity check. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/txrx.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 1/3] ath10k: Ensure txrx-compl-task is stopped when cleaning htt-tx.

2016-03-31 Thread greearb
From: Ben Greear Otherwise, the txrx-compl-task may access some bad memory? Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/htt_tx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c

[PATCH 2/3] ath10k: Ensure peer_map references are cleaned up.

2016-03-31 Thread greearb
From: Ben Greear While debugging OS crashes due to firmware crashes, I enabled kasan, and it noticed that peer objects were being used-after-freed. Looks like there are two places we could be leaving stale references in the peer-map, so clean that up. Signed-off-by:

[PATCH] ath10k: Fix deadlock when peer cannot be created.

2016-03-30 Thread greearb
From: Ben Greear We must not attempt to send WMI packets while dholding the data-lock, as it may deadlock: BUG: sleeping function called from invalid context at drivers/net/wireless/ath/ath10k/wmi.c:1824 in_atomic(): 1, irqs_disabled(): 0, pid: 2878, name:

[PATCH-v2] mac80211: Let VHT work on 2.4Ghz

2016-03-10 Thread greearb
From: Ben Greear ath10k supports VHT on 2.4Ghz band. If supplicant and hostapd and radio think VHT should be allowed, then kernel should let them try, as long as at least one band can do 80Mhz. If no bands can do 80Mhz, then that is an indication that VHT is not enabled

[PATCH] ath10k: Fix mgmt tx status for 10.4.3 firmware.

2016-02-29 Thread greearb
From: Ben Greear When testing a 10.4.3 firmware in station mode, I notice that when the AP is powered down, the ath10k does not notice AP is gone because mgt frames get tx status of 3, which is not handled. It appears that status 3 means something similar to

[PATCH] mac80211: Let VHT work on 2.4Ghz

2016-02-22 Thread greearb
From: Ben Greear ath10k supports VHT on 2.4Ghz band. If supplicant and hostapd and radio think VHT should be allowed, then kernel should let them try. Signed-off-by: Ben Greear --- net/mac80211/mlme.c | 16 net/mac80211/util.c

[RFC] mac80211: Support 65 tx-queues.

2015-12-03 Thread greearb
From: Ben Greear ath10k wants to use one tx-queue per vdev, and I want to support up to 64 vdevs. One additional q is needed for off-channel work. So, re-work mac80211 to allow 65 tx queues. This should have small run-time effect, but it will cause a fair bit more RAM

[PATCH 2/2] ath6kl: add log messages for firmware failure cases.

2015-11-30 Thread greearb
From: Ben Greear This gives a user a chance to know why a firmware load is failing. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath6kl/init.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git

[PATCH 1/2] ath6kl: fix tx/rx antenna reporting for 2x2 devices.

2015-11-30 Thread greearb
From: Ben Greear My previous patch incorrectly reported the antenna for 2x2 devices. It should be a mask instead of a numeric count. This patch fixes that. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath6kl/cfg80211.c | 4 ++-- 1

[PATCH-v2 2/2] ath6k: implement ethtool stats.

2015-10-22 Thread greearb
From: Ben Greear This supports a way to get target stats through normal ethtool stats API. For instance: # ethtool -S wlan1 NIC statistics: tx_pkts_nic: 353 tx_bytes_nic: 25142 rx_pkts_nic: 6 rx_bytes_nic: 996 d_tx_ucast_pkts: 89

[PATCH-v2 1/2] ath6k: break stats gathering code into separate method.

2015-10-22 Thread greearb
From: Ben Greear This will allow us to call it from elsewhere when implementing ethtool stats. Signed-off-by: Ben Greear --- v2: Make ethtool ops static per kbuild test robot suggestion. drivers/net/wireless/ath/ath6kl/debug.c | 55

[PATCH 3/3] ath6k: fix firmware version assignment.

2015-10-21 Thread greearb
From: Ben Greear Improper use of strlcpy caused garbage to be appended to the firmware version string. Fix this by paying attention to the ie_lenth. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath6kl/init.c | 2 +- 1 file changed,

[PATCH 1/3] ath6k: report antenna configuration.

2015-10-21 Thread greearb
From: Ben Greear This lets 'iw phy phy0 info' report antennas for the radio device: ... Available Antennas: TX 0x2 RX 0x2 Configured Antennas: TX 0x2 RX 0x2 ... Signed-off-by: Ben Greear --- This patch series is on top of my

[PATCH 1/2] ath6k: break stats gathering code into separate method.

2015-10-21 Thread greearb
From: Ben Greear This will allow us to call it from elsewhere when implementing ethtool stats. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath6kl/debug.c | 55 +++--

[PATCH-v2 1/2] mac80211: Take bitrates into account when building IEs.

2015-10-20 Thread greearb
From: Ben Greear If a user restricts the rateset for some reason, then the probe requests should not advertise rates that are not selected by the user. To implement this, we save the requested bitrates at the mac80211 level and take it into account when building the

[PATCH-v2 2/2] mac80211: ensure association req uses configured ratemask.

2015-10-20 Thread greearb
From: Ben Greear When sending the association request, pay attention to the legacy rates configured by the user, and do not advertise support for any that are not configured. This makes the assoc request packet look more correct when making modern hardware act like a /b

[RFC 1/2] mac80211: Take bitrates into account when building IEs.

2015-10-14 Thread greearb
From: Ben Greear If a user restricts the rateset for some reason, then the probe requests should not advertise rates that are not selected by the user. To implement this, we save the requested bitrates at the mac80211 level and take it into account when building the

[RFC 2/2] mac80211: ensure association req uses configured ratemask.

2015-10-14 Thread greearb
From: Ben Greear When sending the association request, pay attention to the legacy rates configured by the user, and do not advertise support for any that are not configured. This makes the assoc request packet look more correct when making modern hardware act like a /b

[PATCH] ath10k: Fix OFDM rx-rate reporting.

2015-10-06 Thread greearb
From: Ben Greear The ath10k hw_rate codes are duplicated for cck and ofdm modes, so we have to check a flag to see if rate is cck or not when searching for the proper bitrate. This fixes monitor mode reporting invalid rates on my setup. Signed-off-by: Ben Greear

[PATCH] mac80211: ensure association req uses configured ratemask.

2015-09-18 Thread greearb
From: Ben Greear When sending the association request, pay attention to the legacy rates configured by the user, and do not advertise support for any that are not configured. This makes the assoc request packet look more correct when making modern hardware act like a /b

[PATCH] mac80211: Take bitrates into account when building IEs.

2015-09-18 Thread greearb
From: Ben Greear If a user restricts the rateset for some reason, then the probe requests should not advertise rates that are not selected by the user. To implement this, we save the requested bitrates at the mac80211 level and take it into account when building the

[PATCH] nl80211: Print reasons for errors in setting bitrates.

2015-09-18 Thread greearb
From: Ben Greear Makes it easier to figure out why user-space calls are failing. Signed-off-by: Ben Greear --- net/wireless/nl80211.c | 37 + 1 file changed, 29 insertions(+), 8 deletions(-) diff --git

[PATCH] ath10k: Fix CCK rate definitions.

2015-09-15 Thread greearb
From: Ben Greear The old values did NOT match what is found in 10.1.467 firmware. I figure it is likely it is wrong for the others as well. Signed-off-by: Ben Greear --- drivers/net/wireless/ath/ath10k/hw.h | 14 +++--- 1 file

[PATCH] iw: print beacon-loss and wiphy delete events.

2015-06-11 Thread greearb
From: Ben Greear gree...@candelatech.com This is nicer than messages about unknown events. Signed-off-by: Ben Greear gree...@candelatech.com --- event.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/event.c b/event.c index b87a076..2c9694d

[PATCH] iw: Use ifname if available, print new/del/stop events.

2015-06-10 Thread greearb
From: Ben Greear gree...@candelatech.com If the kernel sends the IFNAME in the netlink message, then use it to save the call to map ifindex to name (and potentially fix races, especially when kernel is busy deleting an interface. Signed-off-by: Ben Greear gree...@candelatech.com --- event.c |

[PATCH] wireless: Add ifname to STOP_AP event.

2015-06-10 Thread greearb
From: Ben Greear gree...@candelatech.com In case user-space wants to know the name of the device, this will save a name lookup by index, and in case where kernel manages to fully delete the interface before user-space can determine the name, this will ensure user-space has proper name.

[PATCH 3/4] mac80211-hwsim: Pass rate-ctrl flags and tx-power to user-space

2015-04-03 Thread greearb
From: Ben Greear gree...@candelatech.com The flags field allows user-space to properly decode what the rate-idx really means. The tx-power field is useful as well, in case user-space is interested in doing something clever with path-loss calculations. Signed-off-by: Ben Greear

[PATCH 2/4] mac80211-hwsim: remove dmesg spam about get-survey.

2015-04-03 Thread greearb
From: Ben Greear gree...@candelatech.com This message just fills up dmesg and/or kernel logs and does not provide any useful information. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 4/4] mac80211-hwsim: enable better rx-status when using netlink.

2015-04-03 Thread greearb
From: Ben Greear gree...@candelatech.com This allows proper rx-status reporting for packets received from the netlink api. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 10 ++ drivers/net/wireless/mac80211_hwsim.h | 18 ++

[PATCH 1/4] mac80211-hwsim: notify user-space about channel change.

2015-04-03 Thread greearb
From: Ben Greear gree...@candelatech.com The goal is to allow the user-space application to properly filter packets before sending them down to the kernel. This should more closely mimic what a real piece of hardware would do. Signed-off-by: Ben Greear gree...@candelatech.com ---

[PATCH 2/2] hs20: Update hs20 server notes file.

2015-03-23 Thread greearb
From: Ben Greear gree...@candelatech.com Include example hostapd-radius config file for the OSEN radius server. Show example of how to use the ca/setup.sh script to generate keys. Show how to start OCSP responder and generate the ocsp cache file. Signed-off-by: Ben Greear

[PATCH 1/2] hs20-ca: Update key generation scripts and files.

2015-03-23 Thread greearb
From: Ben Greear gree...@candelatech.com This lets us properly over-ride the default w1.fi related strings in order to properly generate keys that can be used by the OCSP process. Signed-off-by: Ben Greear gree...@candelatech.com --- hs20/server/ca/openssl.cnf | 12 ++--

[PATCH] iw: Print OSEN element for HotSpot 2.0 IE.

2015-03-17 Thread greearb
From: Ben Greear gree...@candelatech.com Re-uses most of the print-rsn logic since only the header differs. Example output: ... HotSpot 2.0 OSEN: * Group cipher: NO-GROUP * Pairwise ciphers: CCMP * Authentication suites: OSEN

[RFC] mac80211-hwsim: Pass rate-ctrl flags and tx-power to user-space

2015-03-12 Thread greearb
From: Ben Greear gree...@candelatech.com The flags field allows user-space to properly decode what the rate-idx really means. The tx-power field is useful as well, in case user-space is interested in doing something clever with path-loss calculations. Signed-off-by: Ben Greear

[PATCH] iw: Allow configuring empty legacy and ht ratesets.

2015-03-10 Thread greearb
From: Ben Greear gree...@candelatech.com This allows one to configure exactly one rate for drivers such as ath10k that will only allow a single rate to be configured. Signed-off-by: Ben Greear gree...@candelatech.com --- bitrate.c | 4 1 file changed, 4 insertions(+) diff --git

[RFC] mac80211_hwsim: notify user-space about channel change.

2015-02-17 Thread greearb
From: Ben Greear gree...@candelatech.com The goal is to allow the user-space application to properly filter packets before sending them down to the kernel. This should more closely mimic what a real piece of hardware would do. Signed-off-by: Ben Greear gree...@candelatech.com --- This is

[PATCH 1/8] ath10k: scan should handle scan-start-failed event properly.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com In case firmware fails to start the scan, then complete the start condition and clean up so that driver does not block on timeout. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/mac.c | 11 +++

[PATCH 7/8] ath10k: start using htt/pci/ce transfer_id properly.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com Upstream firmware may ingore, but someone hacking on firmware can use this (and similar instrumentation on the firmware side) to help determine what is happening when there are communication issues between firmware and host. Signed-off-by: Ben Greear

[PATCH 8/8] ath10k: fix CE_DESC_FLAGS_META_DATA_LSB definition.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com The value was off by one. The error probably has no negative affect on any upstream firmware, but should be fixed anyway in case it comes into use in the future. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/ce.h

[PATCH 3/8] ath10k: fix spelling mistakes and add details to mac logging.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com A bit of general cleanup to make debug messages more useful. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/mac.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 2/8] ath10k: add wmi-id to htc credits debugging.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com This helps when trying to figure out exactly which commands are consuming credits when trying to debug wmi credit hangs. --- drivers/net/wireless/ath/ath10k/htc.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git

[PATCH 4/8] ath10k: make dbglog debug messages be 'warn' level.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com This only happens on firmware crash, and it appears this logic is not always perfect, so make sure the information is printed to logs at higher level. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/pci.c | 14

[PATCH 7/8] ath10k: start using htt/pci/ce transfer_id properly.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com Upstream firmware may ingore, but someone hacking on firmware can use this (and similar instrumentation on the firmware side) to help determine what is happening when there are communication issues between firmware and host. Signed-off-by: Ben Greear

[PATCH 6/8] ath10k: fix spelling in htt code comment.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com Fix spelling error. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/htt_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c

[RFC 5/8] ath10k: add firmware wmi keep-alive message.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com Only useful for CT firmware. This sends a wmi message to the firmware every 2 seconds or so. Once CT firmware receives one of these messages, it will assert if it does not receive more within a 10 second window. This helps debug and work-around wmi

[PATCH 1/8] ath10k: scan should handle scan-start-failed event properly.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com In case firmware fails to start the scan, then complete the start condition and clean up so that driver does not block on timeout. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/mac.c | 11 +++

[PATCH 4/8] ath10k: make dbglog debug messages be 'warn' level.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com This only happens on firmware crash, and it appears this logic is not always perfect, so make sure the information is printed to logs at higher level. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/pci.c | 14

[PATCH 6/8] ath10k: fix spelling in htt code comment.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com Fix spelling error. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/htt_rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c

[RFC 5/8] ath10k: add firmware wmi keep-alive message.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com Only useful for CT firmware. This sends a wmi message to the firmware every 2 seconds or so. Once CT firmware receives one of these messages, it will assert if it does not receive more within a 10 second window. This helps debug and work-around wmi

[PATCH 3/8] ath10k: fix spelling mistakes and add details to mac logging.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com A bit of general cleanup to make debug messages more useful. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/mac.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 8/8] ath10k: fix CE_DESC_FLAGS_META_DATA_LSB definition.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com The value was off by one. The error probably has no negative affect on any upstream firmware, but should be fixed anyway in case it comes into use in the future. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/ce.h

[PATCH 1/8] ath10k: scan should handle scan-start-failed event properly.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com In case firmware fails to start the scan, then complete the start condition and clean up so that driver does not block on timeout. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/mac.c | 11 +++

[PATCH 2/8] ath10k: add wmi-id to htc credits debugging.

2015-01-12 Thread greearb
From: Ben Greear gree...@candelatech.com This helps when trying to figure out exactly which commands are consuming credits when trying to debug wmi credit hangs. --- drivers/net/wireless/ath/ath10k/htc.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git

[PATCH] mac80211-hwsim: remove un-used variable

2014-10-29 Thread greearb
From: Ben Greear gree...@candelatech.com Remove un-used variable added in recent patch. Can re-add this when we have an idea how to deal with receiving pkts from user-space on channels not supported by current operating mode of the virual radio. Signed-off-by: Ben Greear gree...@candelatech.com

[PATCH] mac80211-hwsim: add frequency attribute to netlink pkts

2014-10-27 Thread greearb
From: Ben Greear gree...@candelatech.com Add frequency attribute when sending to user-space over netlink socket. The frequency is currently ignored when receiving from user-space. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 7 +++

[PATCH v2] iw: support setting vif MAC during creation

2014-10-24 Thread greearb
From: Ben Greear gree...@candelatech.com This saves an extra call to change it later, and will also keep udev from potentially messing with a vif it should not be messing with. Signed-off-by: Ben Greear gree...@candelatech.com --- v2: Removed header changes per request. info.c | 2 ++

[PATCH] mac80211-hwsim: support SGI-20

2014-10-24 Thread greearb
From: Ben Greear gree...@candelatech.com This lets hostapd start if you have SGI-20 configured as one of your HT capabilities. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v3 3/9] cfg80211: support creating wiphy with suggested name

2014-10-22 Thread greearb
From: Ben Greear gree...@candelatech.com Kernel will attempt to use the name if it is supplied, but if name cannot be used for some reason, the default phyX name will be used instead. Signed-off-by: Ben Greear gree...@candelatech.com --- include/net/cfg80211.h | 23 +++-

[PATCH v3 1/9] mac80211-hwsim: add ethtool stats support

2014-10-22 Thread greearb
From: Ben Greear gree...@candelatech.com This gives a view into packet activity at the virtual radio level. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 75 ++- 1 file changed, 74 insertions(+), 1 deletion(-) diff

[PATCH v3 9/9] mac80211: support creating vifs with specified mac address

2014-10-22 Thread greearb
From: Ben Greear gree...@candelatech.com This is useful when creating virtual interfaces. Signed-off-by: Ben Greear gree...@candelatech.com --- net/mac80211/iface.c | 5 - net/mac80211/main.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/net/mac80211/iface.c

[PATCH v3 8/9] cfg80211: support configuring vif mac addr on create

2014-10-22 Thread greearb
From: Ben Greear gree...@candelatech.com This is useful when creating virtual interfaces. Keeps udev from mucking with things it shouldn't, since the default MAC is never seen by udev when specified on the cmd-line during creation. Signed-off-by: Ben Greear gree...@candelatech.com ---

[PATCH v3 6/9] mac80211: support creating wiphy w/out creating wlanX

2014-10-22 Thread greearb
From: Ben Greear gree...@candelatech.com This will be helpful when using the mac80211_hwsim wiphys and automated testing. Let user create the vifs as needed, and named as expected. Signed-off-by: Ben Greear gree...@candelatech.com --- include/net/mac80211.h | 7 ++- net/mac80211/main.c

[PATCH v3 5/9] mac80211-hwsim: support creating radios with specific name

2014-10-22 Thread greearb
From: Ben Greear gree...@candelatech.com Otherwise, it can be very difficult to know which is which if you are trying to do detailed testing. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 13 + 1 file changed, 9 insertions(+), 4

[PATCH v2 2/6] mac80211: allow creating wiphy devices with suggested name.

2014-10-20 Thread greearb
From: Ben Greear gree...@candelatech.com Support creating wiphy devices with an optional name. This will be used by hwsim to have better automated control over virtual radio creation/deletion. Signed-off-by: Ben Greear gree...@candelatech.com --- include/net/mac80211.h | 25

[PATCH v2 5/6] mac80211-hwsim: support creating wiphy w/out creating wlanX.

2014-10-20 Thread greearb
From: Ben Greear gree...@candelatech.com Good for automated testing, where user can create wlan interfaces with specified names. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 13 ++--- drivers/net/wireless/mac80211_hwsim.h | 2 ++ 2 files

[PATCH v2 6/6] cfg80211: support configuring vdev mac addr on create.

2014-10-20 Thread greearb
From: Ben Greear gree...@candelatech.com This is useful when creating virtual-stations, and probably APs and other devices as well. Keeps udev from mucking with things it shouldn't, since the default MAC is never seen by udev when specified on the cmd-line during creation. Signed-off-by: Ben

[PATCH v2 3/6] mac80211-hwsim: support creating radios with specific name.

2014-10-20 Thread greearb
From: Ben Greear gree...@candelatech.com Otherwise, it can be very difficult to know which is which if you are trying to do detailed testing. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 13 + 1 file changed, 9 insertions(+), 4

[PATCH v2] wireless: support configuring vdev mac addr on create.

2014-10-01 Thread greearb
From: Ben Greear gree...@candelatech.com This is useful when creating virtual-stations, and probably APs and other devices as well. Keeps udev from mucking with things it shouldn't, since the default MAC is never seen by udev when specified on the cmd-line during creation. Signed-off-by: Ben

[PATCH] iw: support setting vdev MAC during creation.

2014-09-30 Thread greearb
From: Ben Greear gree...@candelatech.com This saves an extra call to change it later, and will also keep udev from potentially messing with a vdev it should not be messing with. Signed-off-by: Ben Greear gree...@candelatech.com --- info.c | 2 ++ interface.c | 20 ++--

[PATCH v2 3/4] wireless: support creating wiphy w/out creating wlanX.

2014-09-26 Thread greearb
From: Ben Greear gree...@candelatech.com This will be helpful when using the mac80211_hwsim wiphys and automated testing. Let user create the wlan devs as needed, and named as expected. Signed-off-by: Ben Greear gree...@candelatech.com --- v2: New to the series, more help with automation.

[PATCH v2 1/4] wireless: expose set-wiphy-name method to other modules.

2014-09-26 Thread greearb
From: Ben Greear gree...@candelatech.com This will let hw-sim create wiphy objects with a specific name. Signed-off-by: Ben Greear gree...@candelatech.com --- v2: Fix checkpatch warnings (char * instead of char*) include/net/cfg80211.h | 5 + net/wireless/core.c| 9 + 2 files

[PATCH v2 4/4] hwsim: support creating wiphy w/out creating wlanX.

2014-09-26 Thread greearb
From: Ben Greear gree...@candelatech.com Good for automated testing, where user can create wlan interfaces with specified names. Signed-off-by: Ben Greear gree...@candelatech.com --- v2: New to the series, more help with automation. drivers/net/wireless/mac80211_hwsim.c | 15 ---

[PATCH v2 2/4] mac-sim: support creating radios with specific name.

2014-09-26 Thread greearb
From: Ben Greear gree...@candelatech.com Otherwise, it can be very difficult to know which is which if you are trying to do detailed testing. Signed-off-by: Ben Greear gree...@candelatech.com --- v2: Add rtnl lock around rename logic. drivers/net/wireless/mac80211_hwsim.c | 19

[PATCH 1/3] mac-hwsim: don't leak memory on tx failure.

2014-09-25 Thread greearb
From: Ben Greear gree...@candelatech.com It seems previous code did not properly clean up memory if the packet could not be delivered to user-space. Signed-off-by: Ben Greear gree...@candelatech.com --- I don't have a good way to test this, but hopefully it is correct.

[PATCH 3/3] mac-hwsim: fix typo, remove un-needed goto.

2014-09-25 Thread greearb
From: Ben Greear gree...@candelatech.com Trivial cleanups. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c

[PATCH 2/3] mac-hwsim: add ethtool stats support.

2014-09-25 Thread greearb
From: Ben Greear gree...@candelatech.com This gives a view into packet activity at the virtual radio level. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 75 ++- 1 file changed, 74 insertions(+), 1 deletion(-) diff

[PATCH] mac-hwsim: support destroying radio by name.

2014-09-25 Thread greearb
From: Ben Greear gree...@candelatech.com It is not always convenient to have to know the device-id, so allow deleting by name as well. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/mac80211_hwsim.c | 21 - drivers/net/wireless/mac80211_hwsim.h |

[PATCH 2/2] mac-sim: support creating radios with specific name.

2014-09-25 Thread greearb
From: Ben Greear gree...@candelatech.com Otherwise, it can be very difficult to know which is which if you are trying to do detailed testing. Signed-off-by: Ben Greear gree...@candelatech.com --- NOTE: This depends on the earlier patch that added the radio-name attribute.

[PATCH 1/2] wireless: expose set-wiphy-name method to other modules.

2014-09-25 Thread greearb
From: Ben Greear gree...@candelatech.com This will let hw-sim create wiphy objects with a specific name. Signed-off-by: Ben Greear gree...@candelatech.com --- include/net/cfg80211.h | 6 ++ net/wireless/core.c| 9 + 2 files changed, 15 insertions(+) diff --git

[PATCH v2 07/10] ath10k: add fw-powerup-fail to ethtool stats.

2014-09-23 Thread greearb
From: Ben Greear gree...@candelatech.com This gives user-space a normal-ish way to detect that firmware has failed to start and that a reboot is probably required. Signed-off-by: Ben Greear gree...@candelatech.com --- v2: New patch for this series, goes well with the other ethtool patch.

[PATCH v2 10/10] ath10k: request firmware flush in ath10k_flush.

2014-09-23 Thread greearb
From: Ben Greear gree...@candelatech.com CT firmware now supports flushing all tids for all peers for all vdevs. This appears to help the ath10k_flush logic work faster and not cause timeouts. Signed-off-by: Ben Greear gree...@candelatech.com --- v2: No changes, just added it to the series in

[PATCH 1/2] ath10k: make firmware text debug messages more verbose.

2014-09-22 Thread greearb
From: Ben Greear gree...@candelatech.com There are not many of these messages producted by the firmware, but they are generally fairly useful, so print them at info level. Signed-off-by: Ben Greear gree...@candelatech.com --- drivers/net/wireless/ath/ath10k/wmi.c | 2 +- 1 file changed, 1

[PATCH] ath10k: request firmware flush in ath10k_flush.

2014-09-19 Thread greearb
From: Ben Greear gree...@candelatech.com CT firmware now supports flushing all tids for all peers for all vdevs. This appears to help the ath10k_flush logic work faster and not cause timeouts. Signed-off-by: Ben Greear gree...@candelatech.com --- This requires the previously-sent patch that

<    1   2   3   >