Re: [PATCH 4/4] mac80211: fix cipher scheme function name

2016-04-05 Thread Johannes Berg
On Thu, 2016-03-17 at 15:02 +0200, Emmanuel Grumbach wrote: > From: Johannes Berg > > The code is only used with iwlwifi, but still should have proper > mac80211 naming scheme; fix that. > All 4 applied. johannes -- To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH 1/5] nl80211: add an option to set driver action for beacon loss

2016-04-05 Thread Johannes Berg
I've applied 1,3-5 of this series. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v2] mac80211: mesh: fix crash in mesh_path_timer

2016-04-05 Thread Johannes Berg
On Fri, 2016-03-18 at 22:03 -0400, Bob Copeland wrote: > The mesh_path_reclaim() function, called from an rcu callback, > cancels > the mesh_path_timer associated with a mesh path.  Unfortunately, this > call can happen much later, perhaps after the hash table itself is > destroyed. > [...] appli

Re: [PATCH 0/5] mesh struct cleanups

2016-04-05 Thread Johannes Berg
On Fri, 2016-03-18 at 22:11 -0400, Bob Copeland wrote: > This series makes a few minor mesh cleanups after the rhashtable > rework -- mostly some reductions in padding and allocation waste. > Also applied. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in t

Re: [PATCH 1/2] mac80211: mesh: fix cleanup for mesh pathtable

2016-04-05 Thread Johannes Berg
Also applied both of these. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/2] mac80211: add NEED_ALIGNED4_SKBS hw flag

2016-04-05 Thread Johannes Berg
On Tue, 2016-02-23 at 17:15 +0100, Johannes Berg wrote: > > > Perhaps we could live with this being done only for the fast-xmit > > > case? > > I don't think we should pass padded vs non-padded frames depending > > on > > whether fast-xmit was used. The n

Re: [PATCH v3 2/2] mac80211: minstrel_ht: set A-MSDU tx limits based on selected max_prob_rate

2016-04-05 Thread Johannes Berg
Applied both now, I've had to fix a locking issue in the first patch. I also worded the requirement for drivers more strongly - drivers really *must* update the max length if they set the flag and don't use minstrel. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wire

Re: [PATCH] mac80211: fix "warning: ‘target_metric’ may be used uninitialized"

2016-04-05 Thread Johannes Berg
On Tue, 2016-04-05 at 09:33 -0400, Jeff Mahoney wrote: > On 4/5/16 5:43 AM, Johannes Berg wrote: > > > > On Mon, 2016-04-04 at 14:15 -0400, Jeff Mahoney wrote: > > > > > > This fixes: > > > > > > net/mac80211/mesh_hwmp.c:603:26: warning: ‘targ

Re: [PATCHv2 1/2] mac80211: implement fair queuing per txq

2016-04-05 Thread Johannes Berg
On Thu, 2016-03-31 at 12:28 +0200, Michal Kazior wrote: > +++ b/net/mac80211/codel.h > +++ b/net/mac80211/codel_i.h Do we really need all this code in .h files? It seems very odd to me to have all the algorithm implementation there rather than a C file, you should (can?) only include codel.h into

Re: [PATCHv2 1/2] mac80211: implement fair queuing per txq

2016-04-06 Thread Johannes Berg
On Wed, 2016-04-06 at 07:35 +0200, Michal Kazior wrote: > I just wanted to follow the suggested/implied usage of codel code and > keep modifications to a minimum. I could very well just assimilate it > if you wish. I don't really feel all that strongly about it, but I also don't see the point. It

Re: [PATCHv2 1/2] mac80211: implement fair queuing per txq

2016-04-06 Thread Johannes Berg
[removing other lists since they spam me with moderation bounces] > The hope had been the original codel.h would have been reusable, > which is not the case at present. So what's the strategy for making it happen? Unless there is one, I don't see the point in making the code more complicated than

Re: [PATCH] mac80211: debugfs var for the default aggregation timeout.

2016-04-06 Thread Johannes Berg
On Tue, 2016-04-05 at 19:46 -0400, Avery Pennarun wrote: > This test was with backports-20150525 on ath9k.  (We have newer > versions in the queue, but they haven't rolled out to our customers > yet.  Anyway, earlier in this thread, I was able to trigger the race > condition on much newer backport

Re: [PATCHv3 RESEND 01/11] cfg80211: add start / stop NAN commands

2016-04-06 Thread Johannes Berg
>  /** > + * struct cfg80211_nan_conf - nan configuration > + * > + * This struct defines nan configuration parameters I think you should consistently capitalize "NAN" in comments. > + * @start_nan: Start the NAN interface. > + * @stop_nan: Stop the NAN interface. johannes -- To unsubscribe from

Re: [PATCHv3 RESEND 02/11] mac80211: add boilerplate code for start / stop NAN

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 12:35 +0300, Emmanuel Grumbach wrote: > This codes doens't do much besides allowing to start and > stop the vif. Few typos? :) > + * @start_nan: join an existing nan cluster, or create a new one. > + * @stop_nan: leave the nan cluster. NAN johannes -- To unsubscribe from t

Re: [PATCHv3 RESEND 03/11] cfg80211: add add_nan_func / rm_nan_func

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 12:35 +0300, Emmanuel Grumbach wrote: > + * @cookie: user defined cookie (will be returned with > notifications) Didn't we change it to not be user defined? > + * @NL80211_NAN_FUNC_TTL: number of DWs this function should stay > active. 0 is > + * equivalent to no TTL at a

Re: [PATCHv3 RESEND 04/11] cfg80211: allow the user space to change current NAN configuration

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 12:35 +0300, Emmanuel Grumbach wrote: > Some NAN configuration paramaters parameters >  /** > + * enum cfg80211_nan_conf_changes - indicates changed fields in nan > configuration again, NAN please > + * > + * @CFG80211_NAN_CONF_CHANGED_PREF: master preference > + * @CFG80

Re: [PATCHv3 RESEND 03/11] cfg80211: add add_nan_func / rm_nan_func

2016-04-06 Thread Johannes Berg
> + NL80211_ATTR_NAN_FUNC_INST_ID, I don't see why this has to be a top-level attribute. > +enum nl80211_nan_func_attributes { > + __NL80211_NAN_FUNC_INVALID, > + NL80211_NAN_FUNC_TYPE, You can easily move it into here, and  > + /* propagate the instance id and cookie to usersp

Re: [PATCHv3 RESEND 05/11] cfg80211: provide a function to report a match for NAN

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 12:35 +0300, Emmanuel Grumbach wrote: >  > +/** > + * enum nl80211_nan_match_attributes - NAN match attributes > + * @__NL80211_NAN_MATCH_INVALID: invalid > + * @NL80211_NAN_MATCH_FUNC_TYPE: &enum nl80211_nan_function_type > (u8). This is > + * the type of the function which

Re: [PATCHv3 RESEND 06/11] cfg80211: Provide an API to report NAN function termination

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 12:35 +0300, Emmanuel Grumbach wrote: >  > @@ -2246,6 +2248,7 @@ enum nl80211_attrs { >   NL80211_ATTR_NAN_FUNC, >   NL80211_ATTR_NAN_FUNC_INST_ID, >   NL80211_ATTR_NAN_MATCH, > + NL80211_ATTR_NAN_FUNC_TERM_REASON, You can add this as a nested function attribu

Re: [PATCHv3 RESEND 07/11] cfg80211: add utility functions to clone and free nan_func

2016-04-06 Thread Johannes Berg
> +int cfg80211_clone_nan_func_members(struct cfg80211_nan_func *f1, > + const struct cfg80211_nan_func *f2) > +{ > + memcpy(f1, f2, sizeof(*f1)); That's pretty weird. And the only user of this (in a later patch) is first allocating the f1. I think this functio

Re: [PATCHv3 RESEND 08/11] mac80211: implement nan_change_conf

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 12:35 +0300, Emmanuel Grumbach wrote: >  >   * @start_nan: join an existing nan cluster, or create a new one. >   * @stop_nan: leave the nan cluster. > + * @nan_change_conf: change nan configuration. The data in > cfg80211_nan_conf > + * contains full new configuration and c

Re: [PATCHv3 RESEND 09/11] mac80211: Implement add_nan_func and rm_nan_func

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 12:35 +0300, Emmanuel Grumbach wrote: > + * @rm_nan_func: Remove a nan function. The driver must call > + * ieee80211_nan_func_terminated() with > + * NL80211_NAN_FUNC_TERM_REASON_USER_REQUEST reason code upon > removal. bad indentation. Also here: nan -> NAN. > + /* O

Re: [PATCHv3 RESEND 10/11] mac80211: Add API to report nan function match

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 12:35 +0300, Emmanuel Grumbach wrote: >  > +void ieee80211_nan_func_match(struct ieee80211_vif *vif, > +   struct cfg80211_nan_match_params > *match, > +   gfp_t gfp) > +{ > + struct ieee80211_sub_if_data *sdata = vif_to_sdat

Re: NETLINK_URELEASE non-bound socket problem (was: [PATCH] Fix local DoS in cfg80211 subsystem)

2016-04-06 Thread Johannes Berg
On Wed, 2016-04-06 at 11:20 +0300, Dmitrijs Ivanovs wrote: > Hi Johannes! > > I will prepare patch which does not send NETLINK_URELEASE for unbound > sockets as you suggest. But I think protocol check in nl80211 is > still needed because port_id is unique per-protocol. > Yes, good point. Can you

Re: [PATCHv3 RESEND 05/11] cfg80211: provide a function to report a match for NAN

2016-04-06 Thread Johannes Berg
On Wed, 2016-04-06 at 09:38 +, Malinen, Jouni wrote: >  > > +void cfg80211_nan_match(struct wireless_dev *wdev, > > + struct cfg80211_nan_match_params *match, > > gfp_t gfp); > Looks like this function is common for publish, subscribe and follow > up. If so, can we please have

Re: [PATCHv3 RESEND 01/11] cfg80211: add start / stop NAN commands

2016-04-06 Thread Johannes Berg
> Why NL80211_ATTR_NAN_MASTER_PREF is mandatory? The spec suggests to > assume master preference value of 128 if not provided. Please see > quoted text from NAN 1.0 specification: > "A NAN Device which out-of-the-box will have a Master Preference > greater than or equal to 128 with the intention o

Re: [PATCH 2/2] cfg80211: Allow reassociation to be requested with internal SME

2016-04-06 Thread Johannes Berg
On Tue, 2016-03-29 at 13:53 +0300, Jouni Malinen wrote: > If the user space issues a NL80211_CMD_CONNECT with > NL80211_ATTR_PREV_BSSID when there is already a connection, allow > this > to proceed as a reassociation instead of rejecting the new connect > command with EALREADY. > > Signed-off-by:

Re: [PATCH] mac80211: fix "warning: ‘target_metric’ may be used uninitialized"

2016-04-06 Thread Johannes Berg
On Mon, 2016-04-04 at 14:15 -0400, Jeff Mahoney wrote: > This fixes: > > net/mac80211/mesh_hwmp.c:603:26: warning: ‘target_metric’ may be used > uninitialized in this function > > target_metric is only consumed when reply = true so no bug exists > here, > but gcc doesn't notice that.  Initializin

pull-request: mac80211 2016-04-06

2016-04-06 Thread Johannes Berg
P buffered multicast frames with queue control and txq Ilan Peer (1): mac80211: Fix BW upgrade for TDLS peers Jeff Mahoney (1): mac80211: fix "warning: ‘target_metric’ may be used uninitialized" Johannes Berg (1): mac80211: properly deal with station hashtable insert

pull-request: mac80211-next 2016-04-06

2016-04-06 Thread Johannes Berg
gic mac80211: add A-MSDU tx support mac80211: minstrel_ht: set A-MSDU tx limits based on selected max_prob_rate Johannes Berg (17): wext: unregister_pernet_subsys() on notifier registration failure mac80211: allow drivers to report CLOCK_BOOTTIME for scan results mac

Re: pull-request: mac80211-next 2016-04-06

2016-04-06 Thread Johannes Berg
On Wed, 2016-04-06 at 15:25 +0200, Johannes Berg wrote: > Hi Dave, > > For the 4.6 cycle, there's of course much more. The few things that > Err, -next, so that's 4.7. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in

Re: [PATCH 1/2] Do not send netlink socket release notification when socket is not bound

2016-04-07 Thread Johannes Berg
On Wed, 2016-04-06 at 17:22 +0300, Dmitry Ivanov wrote: > This patch corrects the problem where non-privileged user may create > netlink socket with port_id equal to port_id used by hostapd to > create > virtual wireless network interfaces. Call to bind() will fail for > such > socket, but release

[PATCH] netlink: don't send NETLINK_URELEASE for unbound sockets

2016-04-07 Thread Johannes Berg
if NFULNL_CFG_CMD_UNBIND/NFQNL_CFG_CMD_UNBIND had been called. Fix this problem by checking that the socket is bound before generating the NETLINK_URELEASE notification. Cc: sta...@vger.kernel.org Signed-off-by: Dmitry Ivanov Signed-off-by: Johannes Berg --- net/netlink/af_netlink.c | 2 +- 1

Re: [PATCH 2/2] Check protocol number in nl80211 netlink socket release notification handler.

2016-04-07 Thread Johannes Berg
On Wed, 2016-04-06 at 17:23 +0300, Dmitry Ivanov wrote: > This patch corrects the problem where non-privileged user can create > netlink socket with the same port_id as used by hostapd but different > protocol number. Upon close() or process termination, a notification > is > sent  to nl80211 subsy

Re: [PATCHv2 1/2] mac80211: implement fair queuing per txq

2016-04-07 Thread Johannes Berg
On Wed, 2016-04-06 at 10:39 -0700, Dave Taht wrote: > > > The hope had been the original codel.h would have been reusable, > > > which is not the case at present. > > So what's the strategy for making it happen? > Strategy? to meander towards a result that gives low latency to all > stations, no m

Re: [PATCH] cfg80211: Improve Connect/Associate command documentation

2016-04-07 Thread Johannes Berg
On Wed, 2016-04-06 at 17:38 +0300, Jouni Malinen wrote: > The roaming cases for the Connect command were not fully covered and > neither Connect nor Associate command uses of the prev_bssid > parameter > were very clear. Add details to describe how the prev_bssid argument > is > supposed to be used

Re: RFC: Handling DL only traffic when already in Powersave

2016-04-07 Thread Johannes Berg
On Thu, 2016-04-07 at 18:31 +0530, Krishna Chaitanya wrote: > Hi, > > When using HW_PS and running Downlink only traffic like UDP-RX, > mac80211 has the mechanism to not to enter power-save (postpone the > dynamic ps timer). > > But if we are already in power-save it continues to stay in PS > and

Re: [PATCH] mac80211: debugfs var for the default aggregation timeout.

2016-04-07 Thread Johannes Berg
On Thu, 2016-04-07 at 21:32 -0400, Avery Pennarun wrote: > Yes.  Here it is: > http://apenwarr.ca/tmp/mac80211-agg-status-crash.ko > Unfortunately there are no debug symbols in this file, so it doesn't help me much. I can't even seem to get objdump to disassemble it correctly: looks like the fil

Re: [PATCH] mac80211: debugfs var for the default aggregation timeout.

2016-04-08 Thread Johannes Berg
On Fri, 2016-04-08 at 08:56 +0200, Johannes Berg wrote: > On Thu, 2016-04-07 at 21:32 -0400, Avery Pennarun wrote: > > > > > Yes.  Here it is: > > http://apenwarr.ca/tmp/mac80211-agg-status-crash.ko > > > Unfortunately there are no debug symbols in this file

Re: [PATCH] mac80211: debugfs var for the default aggregation timeout.

2016-04-08 Thread Johannes Berg
On Fri, 2016-04-08 at 09:01 +0200, Johannes Berg wrote: > On Fri, 2016-04-08 at 08:56 +0200, Johannes Berg wrote: > > > > On Thu, 2016-04-07 at 21:32 -0400, Avery Pennarun wrote: > > > > > > > > > > > Yes.  Here it is: > >

Re: [PATCH] mac80211: debugfs var for the default aggregation timeout.

2016-04-08 Thread Johannes Berg
On Fri, 2016-04-08 at 21:27 -0400, Avery Pennarun wrote: > > Just to be clear, this crash is only from *reading* the agg_status > > files.  I don't know if the crashiness reduces when disabling the > > aggregation timeouts, since that's a separate bug (in which the > > queue gets stuck and the 'pe

Re: [PATCH] cfg80211: remove enum ieee80211_band

2016-04-12 Thread Johannes Berg
On Tue, 2016-04-12 at 21:53 +0200, Arend van Spriel wrote: > > On 12-04-16 15:58, Johannes Berg wrote: > > > > From: Johannes Berg > > > > This enum is already perfectly aliased to enum nl80211_band, and > > the only reason for it is that we get IEEE80211

Re: General VHT rate-ctrl question

2016-04-13 Thread Johannes Berg
On Tue, 2016-04-12 at 16:48 -0700, Ben Greear wrote: > If a station and it's peer can both do VHT, is there ever a good > reason to even try HT rates? > Not really; perhaps if you could do HT greenfield preamble (which VHT doesn't have) you could get something out of it, beyond that I don't see a

Re: [PATCH v3] prism54: isl_38xx: Replace 'struct timeval'

2016-04-13 Thread Johannes Berg
> The patch was build-tested / debugged by removing the > "if VERBOSE > SHOW_ERROR_MESSAGES" guards. Stands to reason that we should just remove the (more or less) dead code, since I don't think anyone really ever touches this driver any more or will ever again ... johannes -- To unsubscribe fro

pull-request: mac80211-next 2016-04-13

2016-04-13 Thread Johannes Berg
To synchronize with Kalle, here's just a big change that affects all drivers - removing the duplicated enum ieee80211_band and replacing it by enum nl80211_band. On top of that, just a small documentation update. ---- Johannes Berg (1

pull-request: mac80211 2016-04-14

2016-04-14 Thread Johannes Berg
Hi Dave, Since I didn't get anything else, and this has been pending for a week, here's the other part of the nl80211 socket problem fix (the netlink family URELEASE was the first part.) Let me know if there's any problem. Thanks, johannes The following changes since commit 30d237a6c2e9be1bb8

Re: [PATCH v3 2/3] mac80211_hwsim: Add iface comb for DFS

2016-04-14 Thread Johannes Berg
Hi, I know this is a LONG time ago, but nonetheless... > -static struct ieee80211_iface_combination hwsim_if_comb = { > - .limits = hwsim_if_limits, > - .n_limits = ARRAY_SIZE(hwsim_if_limits), > - .max_interfaces = 2048, > - .num_different_channels = 1, > +static const struct iee

Re: [PATCH v4] cfg80211/nl80211: Add support for NL80211_STA_INFO_RX_DURATION

2016-04-14 Thread Johannes Berg
On Thu, 2016-04-07 at 19:59 +0530, Mohammed Shafi Shajakhan wrote: > From: Mohammed Shafi Shajakhan > > Add support for new netlink attribute 'NL80211_STA_INFO_RX_DURATION'. > 'NL80211_STA_INFO_RX_DURATION' accounts for aggregate PPDU duration > in microseconds for all the frames from a peer. Dri

Re: [PATCH 1/3] cfg80211: Add option to report the bss entry in connect result

2016-04-14 Thread Johannes Berg
On Mon, 2016-04-11 at 15:16 +0530, Kanchanapally, Vidyullatha wrote: > From: "Kanchanapally, Vidyullatha" > > Since cfg80211 maintains separate BSS table entries for APs if the > same > BSSID, SSID pair is seen on multiple channels, it is possible that it > can map the current_bss to a BSS entry

Re: [PATCH] netlink: don't send NETLINK_URELEASE for unbound sockets

2016-04-16 Thread Johannes Berg
On Sat, 2016-04-16 at 14:30 +0800, Herbert Xu wrote: > Johannes Berg wrote: > > > > > > diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c > > index 215fc08c02ab..330ebd600f25 100644 > > --- a/net/netlink/af_netlink.c > > +++ b/net/ne

Re: [PATCH] cfg80211: Advertise extended capabilities per interface type to userspace

2016-04-16 Thread Johannes Berg
On Fri, 2016-04-15 at 16:57 +0530, Kanchanapally, Vidyullatha wrote: >  > +struct wiphy_iftype_ext_capab { > + enum nl80211_iftype iftype; > + const u8 *ext_capab; > + const u8 *ext_capab_mask; > + u8 ext_capab_len; I think you should reuse the struct member names that we used befo

Re: [PATCHv3 1/5] mac80211: skip netdev queue control with software queuing

2016-04-16 Thread Johannes Berg
> +static void ieee80211_txq_enqueue(struct ieee80211_local *local, > +   struct txq_info *txqi, > +   struct sk_buff *skb) > +{ > + lockdep_assert_held(&txqi->queue.lock); [...] > + atomic_inc(&local->num_tx_queued); This global kind

Re: [PATCHv3 2/5] mac80211: implement fair queueing per txq

2016-04-16 Thread Johannes Berg
On Thu, 2016-04-14 at 14:18 +0200, Michal Kazior wrote: >  > +++ b/net/mac80211/fq.h > Now that you've mostly rewritten it, why keep it in a .h file? johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majord...@vger.kernel.org More ma

Re: [PATCHv3 2/5] mac80211: implement fair queueing per txq

2016-04-16 Thread Johannes Berg
On Sun, 2016-04-17 at 00:23 +0200, Johannes Berg wrote: > On Thu, 2016-04-14 at 14:18 +0200, Michal Kazior wrote: > > > >   > > +++ b/net/mac80211/fq.h > > > Now that you've mostly rewritten it, why keep it in a .h file? > I think I just confused this w

Re: [PATCHv3 4/5] mac80211: implement codel on fair queuing flows

2016-04-16 Thread Johannes Berg
On Thu, 2016-04-14 at 14:18 +0200, Michal Kazior wrote: >  > + struct ieee80211_vif *vif; > + > + /* When packets are enqueued on txq > it's easy > +  * to re-construct the vif pointer. > There's no > +

Re: [PATCH v3] prism54: isl_38xx: Replace 'struct timeval'

2016-04-17 Thread Johannes Berg
On Sun, 2016-04-17 at 01:34 +0200, Arnd Bergmann wrote: > On Wednesday 13 April 2016 10:38:26 Johannes Berg wrote: > > > > > > > > The patch was build-tested / debugged by removing the > > > "if VERBOSE > SHOW_ERROR_MESSAGES" guards. > > S

Re: [PATCH v3] prism54: isl_38xx: Replace 'struct timeval'

2016-04-19 Thread Johannes Berg
On Mon, 2016-04-18 at 00:10 +0200, Arnd Bergmann wrote: > On Sunday 17 April 2016 14:42:33 Johannes Berg wrote: > > > > > > I was thinking more restrictively of just the stuff that can't even > > be > > built without modifying the sources - like th

Re: [PATCHv3 4/5] mac80211: implement codel on fair queuing flows

2016-04-19 Thread Johannes Berg
On Mon, 2016-04-18 at 14:38 +0200, Michal Kazior wrote: > On 18 April 2016 at 07:31, Michal Kazior > wrote: > > > > On 17 April 2016 at 00:29, Johannes Berg > > wrote: > > > > > > On Thu, 2016

Re: [Codel] [PATCHv3 2/5] mac80211: implement fair queueing per txq

2016-04-19 Thread Johannes Berg
On Mon, 2016-04-18 at 15:36 +0200, Michal Kazior wrote: > FWIW cfg80211 drivers might become another user of the fq/codel stuff > in the future. > > Arguably I should make include/net/codel.h not be qdisc specific as > it is now (and hence re-usable by mac80211) and submit fq.h to > include/net/.

Re: [RFC] mac80211: add extap functionality

2016-04-19 Thread Johannes Berg
On Mon, 2016-04-18 at 13:23 +0200, Michal Kazior wrote: > You can't really implement complete IPv6 support in relayd though. > Link-local routing is forbidden by the spec explicitly and a patch > I've cooked up was rejected[1]. > > I guess this leaves either the kernel's wireless stack to take up

Re: [PATCHv3 4/5] mac80211: implement codel on fair queuing flows

2016-04-19 Thread Johannes Berg
On Tue, 2016-04-19 at 11:31 +0200, Michal Kazior wrote: > > We should just get rid of all the rate stuff and convert everything > > to use rate tables, but ... :) > I'm guessing it's not trivial either and you risk breaking a lot of > stuff? :) It's not "tricky" in the same sense - but we'd have

Re: [RFC] mac80211: add extap functionality

2016-04-19 Thread Johannes Berg
> > How much of that could be done with nftables btw? > I'm not sure if I follow. Do you mean what I've been able to do with > relayd until now? Without link-local ipv6 routing DHCPv6 is broken > (could probably addressed with DHCPv6 Relay to a certain degree) and > RS/RA may not work (if it pro

Re: RSS configuration in iwlwifi

2016-04-20 Thread Johannes Berg
On Wed, 2016-04-20 at 18:05 +0100, Ben Hutchings wrote: >  > I see.  You could make this work when the interface is down and > return -EBUSY if the interface is up. > It's slightly more complicated, since it doesn't just affect a single netdev but possibly more than one (since the table is shared

Re: [PATCH v2] ath10k: remove VHT capabilities from 2.4GHz

2016-04-26 Thread Johannes Berg
On Thu, 2016-04-21 at 08:15 -0700, Ben Greear wrote: > The thing is, it actually works just fine with the patch I posted > to fix mac80211, and at any rate, even if the mac80211 patch isn't > applied, the ath10k driver works just fine in HT mode. This patch has no implications on HT, and I wasn't

[PATCH] wext: remove a/b/g/n from SIOCGIWNAME

2016-04-26 Thread Johannes Berg
From: Johannes Berg Since a/b/g/n no longer exist as spec amendements and VHT (ex 802.11ac) wasn't handled at all, it's better to just remove the amendment strings to avoid confusion. Signed-off-by: Johannes Berg --- net/wireless/wext-compat.c | 35 -

Re: [PATCH net-next 9/9] wireless: use nla_put_u64_64bit()

2016-04-26 Thread Johannes Berg
Hi Nicholas, Thanks for doing this. I'll also add a fix for the macro-generated nla_put_64() in nl80211_send_station(), unless there was a particular reason you didn't take that one? I suspect you just missed it while grepping, but wanted to ask. johannes -- To unsubscribe from this list: send

[PATCH] nl80211: use nla_put_u64_64bit() for the remaining u64 attributes

2016-04-26 Thread Johannes Berg
From: Johannes Berg Nicolas converted most users, but didn't realize some were generated by macros. Convert those over as well. Signed-off-by: Johannes Berg --- include/uapi/linux/nl80211.h | 4 net/wireless/nl80211.c | 36 ++-- 2 files change

Re: Intel 7260 AC only using 802.11n not AC

2016-04-26 Thread Johannes Berg
On Tue, 2016-04-26 at 02:56 -0600, Reinoud Koornstra wrote: > I'm also using the 7620 AC. > When I type: > > sudo iw dev wlp0s4 scan I see: > "scan" is completely irrelevant for what actually ends up getting used. "link" is relevant, but if you want to see the hardware capabilities (like what iw

Re: Intel 7260 AC only using 802.11n not AC

2016-04-26 Thread Johannes Berg
On Tue, 2016-04-26 at 12:54 +0100, Radu P wrote: > Is there a way running > > ./iw dev wlanX link > > but to get the output for the 5 Ghz frequency? > now I am getting only this: > > freq: 2432 > tx bitrate: 130.0 MBit/s MCS 14 short GI Sure: connect to a 5 GHz AP first :) johannes -- To unsub

[PATCH] mac80211: fix statistics leak if dev_alloc_name() fails

2016-04-27 Thread Johannes Berg
From: Johannes Berg In the case that dev_alloc_name() fails, e.g. because the name was given by the user and already exists, we need to clean up properly and free the per-CPU statistics. Fix that. Cc: sta...@vger.kernel.org Fixes: 5a490510ba5f ("mac80211: use per-CPU TX/RX statistics&quo

pull-request: mac80211 2016-04-27

2016-04-27 Thread Johannes Berg
case. Johannes Berg (1): mac80211: fix statistics leak if dev_alloc_name() fails net/mac80211/iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majord...@

Re: [PATCH v2] ath10k: remove VHT capabilities from 2.4GHz

2016-04-27 Thread Johannes Berg
On Wed, 2016-04-27 at 15:07 +0530, Krishna Chaitanya wrote: >  > If many vendors need this support, then mac80211 appraoch would be > good. If not, we should stick to driver approach. Trying to do this in the driver gets practically impossible, so no, it really should be done in mac80211 either wa

next wireless workshop - poll

2016-04-28 Thread Johannes Berg
Hi, Since I've been getting questions about the next possible workshop and its organisation, I decided to make a poll about it: http://goo.gl/forms/iMcE8b4TYU Please reply by May 16th so I can aggregate/evaluate the responses and we can make a decision. I don't know anything about opt

Re: [PATCH 1/1] iw: Android.mk & version.sh: update for Android based compilation

2016-05-01 Thread Johannes Berg
On Fri, 2016-04-29 at 09:26 +1000, Julian Calaby wrote: > > + > > +# Silence some warnings for now. Needs to be fixed upstream. > > b/26105799 > Comments like this worry me: who is being referred to as "upstream", > what are these warnings and why has nobody fixed them? > It's funny, because we'

Re: [PATCH] wext: remove a/b/g/n from SIOCGIWNAME

2016-05-02 Thread Johannes Berg
On Tue, 2016-04-26 at 09:35 +0200, Johannes Berg wrote: > From: Johannes Berg > > Since a/b/g/n no longer exist as spec amendements and VHT (ex > 802.11ac) > wasn't handled at all, it's better to just remove the amendment > strings > to avoid confusion. > Ap

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

2016-05-02 Thread Johannes Berg
> + if (vhtc->cap & IEEE80211_VHT_CAP_ ## a)+ > p += scnprintf(p, sizeof(buf) + buf > - p, \ > +    "\t\t%s\n", b); Why not use #a instead of b? > + PFLAG(MAX_MPDU_LENGTH_3895, "MAX-MPDU-3895")

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

2016-05-02 Thread Johannes Berg
On Mon, 2016-05-02 at 14:23 -0700, gree...@candelatech.com wrote: > 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 >

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

2016-05-02 Thread Johannes Berg
On Tue, 2016-05-03 at 08:53 +0200, Martin Willi wrote: > While wiphys can be moved into network namespaces over nl80211, the > creation and removal of hwsim radios is currently limited to the > initial namespace. This patch allows management of namespaced radios > from the owning namespace by setti

Re: dynamic ps + offchannel mgmt_tx + HW RoC

2016-05-03 Thread Johannes Berg
On Tue, 2016-05-03 at 18:23 +0530, Krishna Chaitanya wrote: > Hi, > > When the HW is in PS and Dynamic PS is enabled we are dropping > all the offchannel frames. Sequence is as below > > if hw is in PS: stop_queues reason=PS, queue dynamic_ps_disable_work > send Offchannel mgmt_tx > drop the pack

Re: dynamic ps + offchannel mgmt_tx + HW RoC

2016-05-03 Thread Johannes Berg
On Tue, 2016-05-03 at 20:02 +0530, Krishna Chaitanya wrote: > > i don't see any issues in the powersave w.r.t driver. Isn't it a > > valid case? you meant implementing dynamic_ps? No, I really did mean implementing the entire PS logic in the driver, instead of having mac80211 do it. > If it adve

Re: dynamic ps + offchannel mgmt_tx + HW RoC

2016-05-03 Thread Johannes Berg
On Tue, 2016-05-03 at 19:21 +0200, Janusz Dziedzic wrote: >  > Why not remove PS code from the mac80211 then, while is broken and > should not be used? > It'd still be a regression since some drivers can kinda use it. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wi

Re: [PATCH] cfg80211: Advertise extended capabilities per interface type to userspace

2016-05-03 Thread Johannes Berg
On Fri, 2016-04-22 at 14:52 +, Kanchanapally, Vidyullatha wrote: >  > > So I'm thinking something like > > > > supported_on_all = iftype_ext_capab[0] > > for i in 1..num_iftype_ext_capab-1: > >    supported_on_all &= iftype_ext_capab[i] > > WARN_ON(wiphy->ext_capa_mask & ~supported_on_all)

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

2016-05-03 Thread Johannes Berg
On Tue, 2016-05-03 at 08:53 +0200, Martin Willi wrote: >  > +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) { > +

Re: dynamic ps + offchannel mgmt_tx + HW RoC

2016-05-03 Thread Johannes Berg
There is, btw, perhaps a different way - just fix the damn stuff. Requires moving everything into ifmgd rather than local, and then perhaps if only a single managed interface exists mirroring its state into the existing driver calls etc. It'd still be a big task, and I don't see much advantage ov

Re: dynamic ps + offchannel mgmt_tx + HW RoC

2016-05-03 Thread Johannes Berg
On Wed, 2016-05-04 at 01:20 +0530, Krishna Chaitanya wrote: > On Wed, May 4, 2016 at 1:05 AM, Johannes Berg net> wrote: > > > > There is, btw, perhaps a different way - just fix the damn stuff. > > > > Requires moving everything into ifmgd rather than local,

Re: [PATCH] fix infoleak in wireless

2016-05-03 Thread Johannes Berg
On Tue, 2016-05-03 at 16:40 -0400, Kangjie Lu wrote: > The 6-bytes array “mac_addr” is not initialized in the dump_station > implementations of > “drivers/staging/wilc1000/wilc_wfi_cfgoperations.c” > and “drivers/staging/rtl8723au/os_dep/ioctl_cfg80211.c”, so all 6 > bytes may be leaked. Like I sa

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

2016-05-09 Thread Johannes Berg
On Wed, 2016-05-04 at 10:33 +0200, Martin Willi wrote: > > This changes today's default behaviour of moving the wiphys to the > > default namespace. Did you intend to destroy them based on the > > netgroup, i.e. based on the namespace that created them? Actually, > > maybe they should move back to

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

2016-05-09 Thread Johannes Berg
> > > > + data->netgroup = *(int *)net_generic(net, hwsim_net_id); > Anything doing *(integer_type *) rings alarm bells. > > I suspect you should be defining a structure that currently contains > one integer member. > Something (maybe a compile time assert) needs to check that buffer > space y

Re: [RFC V2 1/5] nl80211: allow reporting RTT information in scan results

2016-11-30 Thread Johannes Berg
On Mon, 2016-11-28 at 21:07 +0100, Arend Van Spriel wrote: >  > I was wondering about the meaning of the term "parent_bssid". Given > your remark it means something else than my guess. I actually meant > the distance to the AP indicated by this BSS. Our gscan code obtains > the gscan results from f

Re: [PATCH][RFC] cfg80211: NL80211_ATTR_SOCKET_OWNER support for CMD_CONNECT

2016-12-05 Thread Johannes Berg
On Fri, 2016-12-02 at 21:56 +0100, Andrew Zaborowski wrote: > Disconnect or deauthenticate when the owning socket is closed if this > flag has been supplied to CMD_CONNECT, CMD_AUTHENTICATE or > CMD_ASSOCIATE. Huh. That I think needs a lot more commit log to justify this code - why do you think th

Re: [PATCH 2/2] net: rfkill: Add rfkill-any LED trigger

2016-12-05 Thread Johannes Berg
> Thanks, these are obviously all valid concerns.  Sorry for being > sloppy > with the ifdefs.  If I get positive feedback on the proposed feature > itself, all these issues (and the warning pointed out in the other > message) will be resolved in v2. Looks fine, please do that. johannes

Re: [PATCH 2/2] mac80211: put upper bound on txqi queue length.

2016-12-05 Thread Johannes Berg
On Tue, 2016-11-29 at 10:05 -0800, gree...@candelatech.com wrote: > From: Ben Greear > > This fixes OOM when using pktgen to drive a wifi station at more than > the station can transmit.  pktgen uses ndo_start_xmit instead of > going > through the queue layer, so it will not back off when the que

Re: [PATCH] mac80211: Suppress NEW_PEER_CANDIDATE event if no room

2016-12-05 Thread Johannes Berg
On Wed, 2016-11-30 at 09:06 +0900, Masashi Honma wrote: > Previously, kernel sends NEW_PEER_CANDIDATE event to user land even > if the found peer does not have any room to accept other peer. This > causes continuous connection trials. Thanks, applied. johannes

Re: [PATCH] mac80211: Return avg sig, rx, tx values in ethtool stats.

2016-12-05 Thread Johannes Berg
On Tue, 2016-11-29 at 10:07 -0800, gree...@candelatech.com wrote: > From: Ben Greear > > For non-station devices.  This gives at least some useful > summary in some cases (especially when we know AP has only one > station attached, for instance). I never saw the point in having ethtool statistic

Re: [PATCH 1/2] mac80211: do not iterate active interfaces when in re-configure

2016-12-05 Thread Johannes Berg
On Mon, 2016-12-05 at 09:13 +0100, Michal Kazior wrote: > On 2 December 2016 at 03:29,   wrote: > > > > From: Ben Greear > > > > This appears to fix a problem where ath10k firmware would crash, > > mac80211 would start re-adding interfaces to the driver, but the > > iterate-active-interfaces log

Re: [PATCH] RFC: Universal scan proposal

2016-12-05 Thread Johannes Berg
Hi Dmitry, Sorry I didn't respond earlier. >    Currently we have sched scan with possibility of various > intervals. We would like to extend it to support also > different types of scan. "Different types of scan" is a bit misleading though, isn't it? I mean, mostly they differ in the reporting

Re: [PATCH 1/4] cfg80211: Add support to enable or disable btcoex

2016-12-05 Thread Johannes Berg
On Tue, 2016-11-08 at 18:45 +0530, c_tr...@qti.qualcomm.com wrote: > From: Tamizh chelvam > > This patch adds support to enable or disable btcoex by > adding NL80211_ATTR_WIPHY_BTCOEX_ENABLE attribute in > NL80211_CMD_SET_WIPHY command. By default BTCOEX disabled in driver. I think overloading S

Re: [PATCH 2/4] cfg80211: Add new NL80211_CMD_SET_BTCOEX_PRIORITY to support BTCOEX

2016-12-05 Thread Johannes Berg
On Tue, 2016-11-08 at 18:45 +0530, c_tr...@qti.qualcomm.com wrote: >  > + * struct cfg80211_btcoex_priority - BTCOEX support frame type > + * > + * This structure defines the driver supporting frame types for > BTCOEX > + * > + * @wlan_be_preferred: best effort frames preferred over bt traffic > +

Re: [PATCH 1/2] mac80211: Show pending txqlen in debugfs.

2016-12-05 Thread Johannes Berg
+static ssize_t misc_read(struct file *file, char __user *user_buf, > +  size_t count, loff_t *ppos) > +{ > + struct ieee80211_local *local = file->private_data; > + size_t bufsz = 1000; > + char *buf = kzalloc(bufsz, GFP_KERNEL); You need at most IEEE80211_MAX_QUEU

Re: [PATCH] mac80211: Return avg sig, rx, tx values in ethtool stats.

2016-12-05 Thread Johannes Berg
> Unless I screwed up, this patch also returns an average. Oops, sorry. I missed the whole mac_div() indirection thing. I'm not super convinced anyway though - all of this data already is available in a much more reliable fashion, even trackable when stations are removed (all data gets sent in t

<    7   8   9   10   11   12   13   14   15   16   >