1. 17 10月, 2012 5 次提交
  2. 14 9月, 2012 1 次提交
    • J
      mac80211: handle power constraint/country IE better · 04b7b2ff
      Johannes Berg 提交于
      Currently, mac80211 uses the power constraint IE, and reduces
      the regulatory max TX power by it. This can cause issues if
      the AP is advertising a large power constraint value matching
      a high TX power in its country IE, for example in this case:
      
      ...
      Country: US  Environment: Indoor/Outdoor
          ...
          Channels [157 - 157] @ 30 dBm
          ...
      Power constraint: 13 dB
      ...
      
      What happened here is that our local regulatory TX power is
      15 dBm, and gets reduced by 13 dB so we end up with only
      2 dBm effective TX power, which is way too low.
      
      Instead, handle the country IE/power constraint IE combined
      and restrict our TX power to the max of the regulatory power
      and the maximum power advertised by the AP, in this case
      17 dBm (= 30 dBm - 13 dB).
      
      Also print a message when this happens to let the user know
      and help us debug issues with it.
      Reported-by: NCarl A. Cook <CACook@quantum-equities.com>
      Tested-by: NCarl A. Cook <CACook@quantum-equities.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      04b7b2ff
  3. 11 9月, 2012 1 次提交
  4. 07 9月, 2012 1 次提交
  5. 06 9月, 2012 3 次提交
  6. 20 8月, 2012 5 次提交
  7. 31 7月, 2012 4 次提交
    • J
      mac80211: use correct channel in TX · 2d56577b
      Johannes Berg 提交于
      Since we only need the band, remove the channel
      pointer from struct ieee80211_tx_data and also
      assign it properly, depending on context, to the
      correct operating or current channel.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      2d56577b
    • J
      mac80211: fix current vs. operating channel in preq/beacon · 6b77863b
      Johannes Berg 提交于
      When sending probe requests, e.g. during software scanning,
      these will go out on the *current* channel, so their IEs
      need to be built from the current channel. At other times,
      e.g. for beacons or probe request templates, the IEs will
      be used on the *operating* channel and using the current
      channel instead might result in errors.
      
      Add the appropriate parameters to respect the difference.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      6b77863b
    • E
      mac80211: add PS flag to bss_conf · ab095877
      Eliad Peller 提交于
      Currently, ps mode is indicated per device (rather than
      per interface), which doesn't make a lot of sense.
      
      Moreover, there are subtle bugs caused by the inability
      to indicate ps change along with other changes
      (e.g. when the AP deauth us, we'd like to indicate
      CHANGED_PS | CHANGED_ASSOC, as changing PS before
      notifying about disassociation will result in null-packets
      being sent (if IEEE80211_HW_SUPPORTS_DYNAMIC_PS) while
      the sta is already disconnected.)
      
      Keep the current per-device notifications, and add
      parallel per-vif notifications.
      
      In order to keep it simple, the per-device ps and
      the per-vif ps are orthogonal - the per-vif ps
      configuration is determined only by the user
      configuration (enable/disable) and the connection
      state, and is not affected by other vifs state and
      (temporary) dynamic_ps/offchannel operations
      (unlike per-device ps).
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      ab095877
    • M
      mac80211: VHT (11ac) association · d545daba
      Mahesh Palivela 提交于
      Insert VHT IEs into association frames to allow
      mac80211 to connect as a VHT client.
      Signed-off-by: NMahesh Palivela <maheshp@posedge.com>
      [clarify commit message]
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      d545daba
  8. 13 7月, 2012 1 次提交
  9. 12 7月, 2012 5 次提交
  10. 09 7月, 2012 1 次提交
    • J
      cfg80211: use wdev in mgmt-tx/ROC APIs · 71bbc994
      Johannes Berg 提交于
      The management frame and remain-on-channel APIs will be
      needed in the P2P device abstraction, so move them over
      to the new wdev-based APIs. Userspace can still use both
      the interface index and wdev identifier for them so it's
      backward compatible, but for the P2P Device wdev it will
      be able to use the wdev identifier only.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      71bbc994
  11. 02 7月, 2012 1 次提交
  12. 29 6月, 2012 1 次提交
  13. 28 6月, 2012 1 次提交
  14. 26 6月, 2012 1 次提交
  15. 24 6月, 2012 1 次提交
    • J
      mac80211: clean up debugging · bdcbd8e0
      Johannes Berg 提交于
      There are a few things that make the logging and
      debugging in mac80211 less useful than it should
      be right now:
       * a lot of messages should be pr_info, not pr_debug
       * wholesale use of pr_debug makes it require *both*
         Kconfig and dynamic configuration
       * there are still a lot of ifdefs
       * the style is very inconsistent, sometimes the
         sdata->name is printed in front
      
      Clean up everything, introducing new macros and
      separating out the station MLME debugging into
      a new Kconfig symbol.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      bdcbd8e0
  16. 21 6月, 2012 1 次提交
  17. 20 6月, 2012 1 次提交
  18. 19 6月, 2012 2 次提交
  19. 07 6月, 2012 1 次提交
    • J
      mac80211: unify SW/offload remain-on-channel · 2eb278e0
      Johannes Berg 提交于
      Redesign all the off-channel code, getting rid of
      the generic off-channel work concept, replacing
      it with a simple remain-on-channel list.
      
      This fixes a number of small issues with the ROC
      implementation:
       * offloaded remain-on-channel couldn't be queued,
         now we can queue it as well, if needed
       * in iwlwifi (the only user) offloaded ROC is
         mutually exclusive with scanning, use the new
         queue to handle that case -- I expect that it
         will later depend on a HW flag
      
      The bigger issue though is that there's a bad bug
      in the current implementation: if we get a mgmt
      TX request while HW roc is active, and this new
      request has a wait time, we actually schedule a
      software ROC instead since we can't guarantee the
      existing offloaded ROC will still be that long.
      To fix this, the queuing mechanism was needed.
      
      The queuing mechanism for offloaded ROC isn't yet
      optimal, ideally we should add API to have the HW
      extend the ROC if needed. We could add that later
      but for now use a software implementation.
      
      Overall, this unifies the behaviour between the
      offloaded and software-implemented case as much
      as possible.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      2eb278e0
  20. 06 6月, 2012 1 次提交
  21. 10 5月, 2012 1 次提交
    • J
      mac80211: Convert compare_ether_addr to ether_addr_equal · b203ca39
      Joe Perches 提交于
      Use the new bool function ether_addr_equal to add
      some clarity and reduce the likelihood for misuse
      of compare_ether_addr for sorting.
      
      Done via cocci script:
      
      $ cat compare_ether_addr.cocci
      @@
      expression a,b;
      @@
      -	!compare_ether_addr(a, b)
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	compare_ether_addr(a, b)
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) == 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!ether_addr_equal(a, b) != 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) == 0
      +	!ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	ether_addr_equal(a, b) != 0
      +	ether_addr_equal(a, b)
      
      @@
      expression a,b;
      @@
      -	!!ether_addr_equal(a, b)
      +	ether_addr_equal(a, b)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b203ca39
  22. 09 5月, 2012 1 次提交