1. 11 7月, 2009 1 次提交
  2. 28 2月, 2009 1 次提交
    • J
      mac80211: split IBSS/managed code · 46900298
      Johannes Berg 提交于
      This patch splits out the ibss code and data from managed (station) mode.
      The reason to do this is to better separate the state machines, and have
      the code be contained better so it gets easier to determine what exactly
      a given change will affect, that in turn makes it easier to understand.
      
      This is quite some churn, especially because I split sdata->u.sta into
      sdata->u.mgd and sdata->u.ibss, but I think it's easier to maintain that
      way. I've also shuffled around some code -- null function sending is only
      applicable to managed interfaces so put that into that file, some other
      functions are needed from various places so put them into util, and also
      rearranged the prototypes in ieee80211_i.h accordingly.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      46900298
  3. 01 11月, 2008 2 次提交
  4. 28 10月, 2008 1 次提交
  5. 15 10月, 2008 1 次提交
  6. 16 9月, 2008 3 次提交
  7. 27 8月, 2008 1 次提交
    • J
      mac80211: Fix debugfs file add/del for netdev · 93015f0f
      Jouni Malinen 提交于
      Previous version was using incorrect union structures for non-AP
      interfaces when adding and removing max_ratectrl_rateidx and
      force_unicast_rateidx entries. Depending on the vif type, this ended
      up in corrupting debugfs entries since the dentries inside different
      union structures ended up going being on top of eachother.. As the
      end result, debugfs files were being left behind with references to
      freed data (instant kernel oops on access) and directories were not
      removed properly when unloading mac80211 drivers. This patch fixes
      those issues by using only a single union structure based on the vif
      type.
      Signed-off-by: NJouni Malinen <jouni.malinen@atheros.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      93015f0f
  8. 15 7月, 2008 2 次提交
    • J
      mac80211: revamp virtual interface handling · 75636525
      Johannes Berg 提交于
      This patch revamps the virtual interface handling and makes the
      code much easier to follow. Fewer functions, better names, less
      spaghetti code.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      75636525
    • J
      mac80211: make master netdev handling sane · 3e122be0
      Johannes Berg 提交于
      Currently, almost every interface type has a 'bss' pointer
      pointing to BSS information. This BSS information, however,
      is for a _local_ BSS, not for the BSS we joined, so having
      it on a STA mode interface makes little sense, but now they
      have it pointing to the master device, which is an AP mode
      virtual interface. However, except for some bitrate control
      data, this pointer is only used in AP/VLAN modes (for power
      saving stations.)
      
      Overall, it is not necessary to even have the master netdev
      be a valid virtual interface, and it doesn't have to be on
      the list of interfaces either.
      
      This patch changes the master netdev to be special, it now
       - no longer is on the list of virtual interfaces, which
         lets me remove a lot of tests for that
       - no longer has sub_if_data attached, since that isn't used
      
      Additionally, this patch changes some vlan/ap mode handling
      that is related to these 'bss' pointers described above (but
      in the VLAN case they actually make sense because there they
      point to the AP they belong to); it also adds some debugging
      code to IEEE80211_DEV_TO_SUB_IF to validate it is not called
      on the master netdev any more.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3e122be0
  9. 22 5月, 2008 1 次提交
  10. 08 5月, 2008 1 次提交
  11. 09 4月, 2008 2 次提交
  12. 02 4月, 2008 2 次提交
  13. 07 3月, 2008 1 次提交
  14. 01 3月, 2008 1 次提交
  15. 29 1月, 2008 4 次提交
  16. 11 10月, 2007 5 次提交
  17. 07 8月, 2007 1 次提交
  18. 18 7月, 2007 1 次提交
  19. 13 7月, 2007 1 次提交
    • D
      [PATCH] mac80211: improved 802.11g CTS protection · 63fc33ce
      Daniel Drake 提交于
      Currently, CTS protection is partially implemented twice:
       1. via prism2 ioctls, only used by hostapd
       2. via STA beacon parsing, recorded in sta.use_protection but never used
          (other than printed in debugfs)
      
      Protection control should be implemented on a per-subif basis. For example,
      a single physical device may be running a soft AP on one channel, and a STA
      on another. The AP interface should use protection based on what hostapd told
      it, and the STA interface should use protection based on beacon parsing.
      These should operate independantly: one subif using protection should not
      influence the other.
      
      To implement this, I moved the use_protection flag into ieee80211_sub_if_data
      and removed the device-global cts_protect_erp_frames flag.
      
      I also made the PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES write operation only
      available for AP interfaces, to avoid any possibility of the user messing with
      the behaviour of a STA.
      Signed-off-by: NDaniel Drake <dsd@gentoo.org>
      Signed-off-by: NJiri Benc <jbenc@suse.cz>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      63fc33ce
  20. 06 5月, 2007 1 次提交