1. 13 12月, 2016 2 次提交
  2. 09 12月, 2016 2 次提交
    • V
      nl80211: Use different attrs for BSSID and random MAC addr in scan req · 2fa436b3
      Vamsi Krishna 提交于
      NL80211_ATTR_MAC was used to set both the specific BSSID to be scanned
      and the random MAC address to be used when privacy is enabled. When both
      the features are enabled, both the BSSID and the local MAC address were
      getting same value causing Probe Request frames to go with unintended
      DA. Hence, this has been fixed by using a different NL80211_ATTR_BSSID
      attribute to set the specific BSSID (which was the more recent addition
      in cfg80211) for a scan.
      
      Backwards compatibility with old userspace software is maintained to
      some extent by allowing NL80211_ATTR_MAC to be used to set the specific
      BSSID when scanning without enabling random MAC address use.
      
      Scanning with random source MAC address was introduced by commit
      ad2b26ab ("cfg80211: allow drivers to support random MAC addresses
      for scan") and the issue was introduced with the addition of the second
      user for the same attribute in commit 818965d3 ("cfg80211: Allow a
      scan request for a specific BSSID").
      
      Fixes: 818965d3 ("cfg80211: Allow a scan request for a specific BSSID")
      Signed-off-by: NVamsi Krishna <vamsin@qti.qualcomm.com>
      Signed-off-by: NJouni Malinen <jouni@qca.qualcomm.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      2fa436b3
    • J
      nl80211: fix logic inversion in start_nan() · eeb04a96
      Johannes Berg 提交于
      Arend inadvertently inverted the logic while converting to
      wdev_running(), fix that.
      
      Fixes: 73c7da3d ("cfg80211: add generic helper to check interface is running")
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      eeb04a96
  3. 30 10月, 2016 1 次提交
  4. 28 10月, 2016 4 次提交
  5. 27 10月, 2016 8 次提交
  6. 19 10月, 2016 1 次提交
  7. 17 10月, 2016 2 次提交
  8. 13 10月, 2016 1 次提交
    • P
      cfg80211: support virtual interfaces with different beacon intervals · 0c317a02
      Purushottam Kushwaha 提交于
      This commit provides a mechanism for the host drivers to advertise the
      support for different beacon intervals among the respective interface
      combinations in a group, through NL80211_IFACE_COMB_BI_MIN_GCD (u32).
      
      This value will be compared against GCD of all beaconing interfaces of
      matching combinations.
      
      If the driver doesn't advertise this value, the old behaviour where
      all beacon intervals must be identical is retained.
      
      If it is specified, then any beacon interval for an interface in the
      interface combination as well as the GCD of all active beacon intervals
      in the combination must be greater or equal to this value.
      Signed-off-by: NPurushottam Kushwaha <pkushwah@qti.qualcomm.com>
      [change commit message, some variable names, small other things]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      0c317a02
  9. 30 9月, 2016 5 次提交
  10. 26 9月, 2016 2 次提交
  11. 15 9月, 2016 3 次提交
  12. 14 9月, 2016 5 次提交
  13. 12 9月, 2016 1 次提交
    • D
      nl80211: Allow GET_INTERFACE dumps to be filtered · b7fb44da
      Denis Kenzior 提交于
      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: NDenis Kenzior <denkenz@gmail.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      b7fb44da
  14. 12 8月, 2016 2 次提交
  15. 11 8月, 2016 1 次提交
    • D
      cfg80211: always notify userspace when wireless netdev is removed · 7f8ed01e
      Denis Kenzior 提交于
      This change alters the semantics of NL80211_CMD_DEL_INTERFACE events
      by always sending this event whenever a net_device object associated
      with a wdev is destroyed.  Prior to this change, this event was only
      emitted as a result of NL80211_CMD_DEL_INTERFACE command sent from
      userspace.  This allows userspace to reliably detect when wireless
      interfaces have been removed, e.g. due to USB removal events, etc.
      
      For wireless device objects without an associated net_device (e.g.
      NL80211_IFTYPE_P2P_DEVICE), the NL80211_CMD_DEL_INTERFACE event is
      now generated inside cfg80211_unregister_wdev.
      Signed-off-by: NDenis Kenzior <denkenz@gmail.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      7f8ed01e