Re: ath9k driver may be broken on ARM64 ?

2018-10-25 Thread Dominique Martinet
Ellie Revves wrote on Thu, Oct 25, 2018: > Here's another boot log along with some commands after the system > booted up to show what I did. I don't think I did anything wrong, > and yet this is no different, debug option appears to be completely > useless. I'm not familiar with ath at all, just

Re: [PATCH v3 1/2] mac80211_hwsim: allow setting iftype support

2018-10-25 Thread James Prestwood
Johannes, Ping On Wed, 2018-10-17 at 14:16 -0700, James Prestwood wrote: > The mac80211_hwsim driver hard codes its supported interface types. > For > testing purposes it would be valuable to allow changing these > supported > types in order to simulate actual drivers that support a limited set

[PATCH] mt76x0: use band parameter for LC calibration

2018-10-25 Thread Stanislaw Gruszka
We use always 1 as band parameter for MCU_CAL_LC, this break 2GHz, we should use 0 for this band instead. Patch fixes problems happened sometimes when try to associate with 2GHz AP and manifest by errors like below: [14680.920823] wlan0: authenticate with 18:31:bf:c0:51:b0 [14681.109506] wlan0:

[PATCH 1/4] mt76: clean up more unused EXPORT_SYMBOLs

2018-10-25 Thread Felix Fietkau
Make functions static where possible Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 9 + drivers/net/wireless/mediatek/mt76/mt76x02_mac.h | 1 - drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 1 - 3 files changed, 1 insertion(+), 10

[PATCH 4/4] mt76: add support for reporting tx status with skb

2018-10-25 Thread Felix Fietkau
MT76x2/MT76x0 has somewhat unreliable tx status reporting, and for that reason the driver currently does not report per-skb tx ack status at all. This breaks things like client idle polling, which relies on the tx ack status of a transmitted nullfunc frame. This patch adds code to report

[PATCH 2/4] mt76: mt76x02: skip station tx status for non-sta wcid entries

2018-10-25 Thread Felix Fietkau
Fixes a crash that could occur if a frame is sent to a station, but the station's wcid was not used (e.g. for software encrypted mgmt tx) Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt76x02_mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/4] mt76: mt76x02: only override control->sta on sw-encrypted tx

2018-10-25 Thread Felix Fietkau
control->sta is set to NULL early when encryption is turned on for the station and info->control.hw_key is not set. This code is missing a check for the 802.11 header protected flag, otherwise it resets the station for other frames, e.g. client probing frames. Signed-off-by: Felix Fietkau ---

[PATCH 2/4] stagign: wilc1000: validate cfg parameters before scheduling the work

2018-10-25 Thread Adham.Abozaeid
Validate cfg parameters after being called by cfg80211 in set_wiphy_params before scheduling the work executed in handle_cfg_param Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 61 ++- .../staging/wilc1000/wilc_wfi_cfgoperations.c | 50

[PATCH 0/4] staging: wilc1000: validate input to set_wiphy_param and return proper errors

2018-10-25 Thread Adham.Abozaeid
Validate input parameters to set_wiphy_param before scheduling handle_cfg_param() to validate them. This way proper errors can be returned to caller. Also cleaned up unused code in handle_cfg_param. Adham Abozaeid (4): staging: wilc1000: remove unused flags in handle_cfg_param() stagign:

[PATCH 4/4] staging: wilc1000: Remove unused mutex cfg_values_lock

2018-10-25 Thread Adham.Abozaeid
After removing cfg_values member, cfg_values_lock that was used to protect it can also be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 9 - drivers/staging/wilc1000/host_interface.h | 2 -- 2 files changed, 11 deletions(-) diff --git

[PATCH 3/4] staging: wilc1000: Don't keep a copy of wiphy parameters in the driver

2018-10-25 Thread Adham.Abozaeid
host_if_drv.cfg_values is a write only member, and can be removed Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 13 - drivers/staging/wilc1000/host_interface.h | 1 - 2 files changed, 14 deletions(-) diff --git

[PATCH 1/4] staging: wilc1000: remove unused flags in handle_cfg_param()

2018-10-25 Thread Adham.Abozaeid
handle_cfg_param() receives a bit map that describes what to be changed. Some of these bits flags aren't referred to from elsewhere and can be removed. Signed-off-by: Adham Abozaeid --- drivers/staging/wilc1000/host_interface.c | 216 --

[PATCH v2 3/3] {nl,mac}80211: add dot11MeshConnectedToMeshGate to meshconf

2018-10-25 Thread Bob Copeland
When userspace is controlling mesh routing, it may have better knowledge about whether a mesh STA is connected to a mesh gate than the kernel mpath table. Add dot11MeshConnectedToMeshGate to the mesh config so that such applications can explicitly signal that a mesh STA is connected to a gate,

Re: [PATCH] mac80211: support FTM responder configuration/statistics

2018-10-25 Thread Pradeep Kumar Chitrapu
I just realized that this is broken in nl80211_channel_switch() and ieee80211_set_csa_beacon(), doing a CSA will always disable FTM unless it was actually included in the new configuration. Hi Johannes oops..Yes, there is a bug in the patch. The code below, I think, must fix this issue.

[PATCH 1/3] mac80211: mesh: advertise gates in mesh formation

2018-10-25 Thread Bob Copeland
The Connected to Mesh Gate subfield (802.11-2016 9.4.2.98.7) in the Mesh Formation Info field is currently unset. This field may be useful in determining which MBSSes to join or which mesh STAs to peer with. If this mesh STA is a gate, by having turned on mesh gate announcements, or if we have a

[PATCH 2/3] {nl,mac}80211: report gate connectivity in station info

2018-10-25 Thread Bob Copeland
Capture the current state of gate connectivity from the mesh formation field in mesh config whenever we receive a beacon, and report that via GET_STATION. This allows applications doing mesh peering in userspace to make peering decisions based on peers' current upstream connectivity.

[PATCH 3/3] {nl,mac}80211: add dot11MeshConnectedToMeshGate to meshconf

2018-10-25 Thread Bob Copeland
When userspace is controlling mesh routing, it may have better knowledge about whether a mesh STA is connected to a mesh gate than the kernel mpath table. Add dot11MeshConnectedToMeshGate to the mesh config so that such applications can explicitly signal that a mesh STA is connected to a gate,

Re: [PATCH] mac80211: support FTM responder configuration/statistics

2018-10-25 Thread Johannes Berg
Hi Pradeep, On Wed, 2018-10-03 at 20:19 -0700, Pradeep Kumar Chitrapu wrote: > New bss param ftm_responder is used to notify the driver to > enable fine timing request (FTM) responder role in AP mode. I just realized that this is broken in nl80211_channel_switch() and ieee80211_set_csa_beacon(),

Re: ath9k driver may be broken on ARM64 ?

2018-10-25 Thread Dominique Martinet
Dominique Martinet wrote on Thu, Oct 25, 2018: > What I find surprising is that the mapping for sc->mem is done (as shown > in the kernel page table dump), and some REG_WRITE worked before, but > the first REG_READ fails despite being an aligned address so something > is odd with how the memory is