Search Linux Wireless

Re: [PATCH v3] nl80211: Allow GET_INTERFACE dumps to be filtered

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johannes,

On 08/16/2016 02:25 AM, Johannes Berg wrote:
From: Denis Kenzior <denkenz@xxxxxxxxx>

This patch allows GET_INTERFACE dumps to be filtered based on
NL80211_ATTR_WIPHY or NL80211_ATTR_WDEV.  The documentation for
GET_INTERFACE mentions that this is possible:
"Request an interface's configuration; either a dump request on
a %NL80211_ATTR_WIPHY or ..."

However, this behavior has not been implemented until now.

Johannes: rewrite most of the patch:
  * use nl80211_dump_wiphy_parse() to also allow passing an interface
    to be able to dump its siblings
  * fix locking (must hold rtnl around using nl80211_fam.attrbuf)
  * make init self-contained instead of relying on other cb->args

Signed-off-by: Denis Kenzior <denkenz@xxxxxxxxx>
Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
  net/wireless/nl80211.c | 27 +++++++++++++++++++++++++++
  1 file changed, 27 insertions(+)


Looks good to me.

Regards,
-Denis




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux