[PATCH] wireless-regdb: Fix overlapping ranges for Switzerland and Liechtenstein

2019-07-02 Thread Martin Willi
ned-off-by: Martin Willi --- db.txt | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/db.txt b/db.txt index d47ab94c3aa5..37393e6a793e 100644 --- a/db.txt +++ b/db.txt @@ -271,8 +271,8 @@ country CF: DFS-FCC # transmitter power control is in use: 5250-5330@23db, 5490

Re: [PATCH 2/2] mac80211_hwsim: Allow managing radios from non-initial namespaces

2016-05-09 Thread Martin Willi
> > Moving the radio back to the creators namespace would be the most > > consistent behavior, so I'll check how difficult such a reverse > > lookup is. We then would delete the radio only if it is in the > > creators namespace, or if the creators namespace is gone. Does that > > make sense? > It

[PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces

2016-05-09 Thread Martin Willi
, add accessors. * On namespace exit, do not destroy hwsim radios originally created in the initial network namespace. Martin Willi (2): nl80211: Allow privileged operations from user namespaces mac80211_hwsim: Allow managing radios from non-initial namespaces drivers/net/wireless

[PATCH v2 1/2] nl80211: Allow privileged operations from user namespaces

2016-05-09 Thread Martin Willi
implies a namespace aware lookup of the device. The only exception is NL80211_CMD_SET_WIPHY, which explicitly uses a namespace aware phy lookup. Signed-off-by: Martin Willi --- net/wireless/nl80211.c | 150 - 1 file changed, 75 insertions(+), 75

[PATCH v2 2/2] mac80211_hwsim: Allow managing radios from non-initial namespaces

2016-05-09 Thread Martin Willi
keeps the previous behavior by returning them to the init namespace, but prevents unprivileged users from creating radios in the initial namespace. Signed-off-by: Martin Willi --- drivers/net/wireless/mac80211_hwsim.c | 97 +-- 1 file changed, 94 insertions(+), 3

Re: [PATCH v2 0/2] wireless: Allow wiphy/hwsim management from user namespaces

2016-05-13 Thread Martin Willi
Hi Johannes, > So I think you should change the "wmediumd_portid" variable to live > in struct hwsim_net and then allow HWSIM_CMD_REGISTER to be done > inside the net namespace. > > With that, and making the other few wmediumd related operations > namespace aware, we would be able to run wmediumd

[PATCH] mac80211_hwsim: Add missing check for HWSIM_ATTR_SIGNAL

2016-05-13 Thread Martin Willi
registration from user namespaces. Fixes: 7882513bacb1 ("mac80211_hwsimdriver support userspace frame tx/rx") Signed-off-by: Martin Willi --- drivers/net/wireless/mac80211_hwsim.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/ne

[PATCH] mac80211_hwsim: Allow wmediumd to attach to radios created in its netns

2016-05-14 Thread Martin Willi
, even if they have been moved to other network namespaces. The wmediumd Netlink portid is tracked per net namespace. Additionally, the portid is stored on all radios created in that net namespace to simplify the portid lookup in the data path. Signed-off-by: Martin Willi --- drivers/net

Re: [PATCH] mac80211_hwsim: Allow wmediumd to attach to radios created in its netns

2016-06-15 Thread Martin Willi
> > >  printk(KERN_INFO "mac80211_hwsim: wmediumd released netlink" > >         " socket, switching to perfect channel medium\n"); > I wonder if we can do something better about them? Or perhaps if we > should remove them, so other namespaces won't mess up the kernel log This is in fact not very

[PATCH 2/2] mac80211_hwsim: Allow managing radios from non-initial namespaces

2016-05-03 Thread Martin Willi
the same netgroup can communicate even if not in the same namespace; This allows a controlling namespace to create radios and move them to other namespaces for communication. Signed-off-by: Martin Willi --- drivers/net/wireless/mac80211_hwsim.c | 88 +-- 1 file

[PATCH 0/2] wireless: Allow wiphy/hwsim management from user namespaces

2016-05-03 Thread Martin Willi
such namespaces. Together, with these patches an unprivileged test environment can create user/network namespaces and set up abitrary simulated wireless networks. Martin Willi (2): nl80211: Allow privileged operations from user namespaces mac80211_hwsim: Allow managing radios from non-initial

[PATCH 1/2] nl80211: Allow privileged operations from user namespaces

2016-05-03 Thread Martin Willi
implies a namespace aware lookup of the device. The only exception is NL80211_CMD_SET_WIPHY, which explicitly uses a namespace aware lookup. Signed-off-by: Martin Willi --- net/wireless/nl80211.c | 150 - 1 file changed, 75 insertions(+), 75 deletion

Re: [PATCH 2/2] mac80211_hwsim: Allow managing radios from non-initial namespaces

2016-05-03 Thread Martin Willi
> > This allows a controlling namespace to create radios and move them > > to other namespaces for communication. > Neat. > > I'm curious what the use case is? We use a test environment for integration and regression testing, which allows us to run our networked applications in a simulated envi

Re: [PATCH 2/2] mac80211_hwsim: Allow managing radios from non-initial namespaces

2016-05-04 Thread Martin Willi
  > > +static __net_init int hwsim_init_net(struct net *net) > > +{ > > + struct mac80211_hwsim_data *data; > > + bool exists = true; > > + int netgroup = 0; > > + > > + spin_lock_bh(&hwsim_radio_lock); > > + while (exists) { > > + exists = false; > > + list_for_each_e

ath10k SWBA overrun / tx credit starvation

2018-07-30 Thread Martin Willi
Hi, We are experiencing some issues when running ath10k in AP mode. Unfortunately, I didn't manage to reproduce the issue in the lab, but in the field we see it roughly once a day on one out of fifty devices. The symptoms are the logged "SWBA overruns" followed by a kernel WARNING when removing a

Re: ath10k SWBA overrun / tx credit starvation

2018-08-06 Thread Martin Willi
usly. I'll do some more testing with this approach before considering to upstream it. Regards Martin --- >From fd9e90d0294450c093d243ee4f1eb1e07b1cd73a Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 3 Aug 2018 14:23:30 +0200 Subject: [PATCH] ath10k: Schedule hardware restart i

Re: ath10k SWBA overrun / tx credit starvation

2018-08-06 Thread Martin Willi
> > [...], which implies that at least some of them have been addressed > > with 10.2/10.2.4. > > Out of curiosity, how soon could you hit it with -ct firmware? We > often see these around once per day in some of our test cases, rarely > more often than that. I have no hard numbers, as I have

[PATCH] mac80211_hwsim: do not omit multicast announce of first added radio

2018-09-25 Thread Martin Willi
on these events. Signed-off-by: Martin Willi --- drivers/net/wireless/mac80211_hwsim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 70229a839c84..aa8058264d5b 100644 --- a/drivers/net

[PATCH] nl80211: announce radios/interfaces when switching namespaces

2018-10-27 Thread Martin Willi
interfaces. Add netlink announcements through nl80211 when switching namespaces, so userspace can rely on these events to discover radios properly. Signed-off-by: Martin Willi --- net/wireless/core.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/net/wireless/core.c b/net

[PATCH 2/3] mac80211_hwsim: fix race in radio destruction from netlink notifier

2018-09-25 Thread Martin Willi
synchronously after releasing the lock. This should be safe to do from the netlink socket notifier, as the namespace is guaranteed to not get released. Signed-off-by: Martin Willi --- drivers/net/wireless/mac80211_hwsim.c | 22 +- 1 file changed, 9 insertions(+), 13 deletions

[PATCH 3/3] mac80211_hwsim: drop now unused work-queue from hwsim

2018-09-25 Thread Martin Willi
The work-queue was used for deferred destruction of hwsim radios; this does not work well with namespaces about to exit. The one remaining user has been migrated, so drop the now unused work-queue instance. Signed-off-by: Martin Willi --- drivers/net/wireless/mac80211_hwsim.c | 11

[PATCH 1/3] mac80211_hwsim: fix locking when iterating radios during ns exit

2018-09-25 Thread Martin Willi
t;) Signed-off-by: Martin Willi --- drivers/net/wireless/mac80211_hwsim.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index f3863101af78..8c76e9a3499a 100644 --- a/drivers/ne

[PATCH 0/3] mac80211_hwsim: radio destruction fixes

2018-09-25 Thread Martin Willi
is tricky to get right, this series switches these users to a synchronous cleanup in hwsim; The removal of that work-queue is in a dedicated commit in case we want to skip that in backports. Martin Willi (3): mac80211_hwsim: fix locking when iterating radios during ns exit mac80211_hwsim: fix