1. 07 5月, 2009 5 次提交
    • J
      mac80211: unify config_interface and bss_info_changed · 2d0ddec5
      Johannes Berg 提交于
      The config_interface method is a little strange, it contains the
      BSSID and beacon updates, while bss_info_changed contains most
      other BSS information for each interface. This patch removes
      config_interface and rolls all the information it previously
      passed to drivers into bss_info_changed.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      2d0ddec5
    • J
      mac80211: clean up beacon interval settings · 57c4d7b4
      Johannes Berg 提交于
      We currently have two beacon interval configuration knobs:
      hw.conf.beacon_int and vif.bss_info.beacon_int. This is
      rather confusing, even though the former is used when we
      beacon ourselves and the latter when we are associated to
      an AP.
      
      This just deprecates the hw.conf.beacon_int setting in favour
      of always using vif.bss_info.beacon_int. Since it touches all
      the beaconing IBSS code anyway, we can also add support for
      the cfg80211 IBSS beacon interval configuration easily.
      
      NOTE: The hw.conf.beacon_int setting is retained for now due
            to drivers still using it -- I couldn't untangle all
            drivers, some are updated in this patch.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      57c4d7b4
    • J
      mac80211: fix scan races and rework scanning · f3b85252
      Johannes Berg 提交于
      There are some places marked
      	/* XXX maybe racy? */
      and they really are racy because there's no locking.
      
      This patch reworks much of the scan code, and introduces proper
      locking for the scan request as well as the internal scanning
      (which is necessary for IBSS/managed modes). Helper functions
      are added to call the scanning code whenever necessary. The
      scan deferring is changed to simply queue the scanning work
      instead of trying to start the scan in place, the scanning work
      will then take care of the rest.
      
      Also, currently when internal scans are requested for an interface
      that is trying to associate, we reject such scans. This was not
      intended, the mlme code has provisions to scan twice when it can't
      find the BSS to associate with right away; this has never worked
      properly. Fix this by not rejecting internal scan requests for an
      interface that is associating.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f3b85252
    • J
      mac80211: internally clear failed scans properly · 2d722890
      Johannes Berg 提交于
      When the IBSS code wants to scan, but that fails, we can
      get stuck in a situation where you can never scan again.
      Fix this by properly notifying ourselves when the scan
      request has failed.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      2d722890
    • J
      mac80211: fix various problems in ibss code · 0e41f715
      Johannes Berg 提交于
      There are a few problems in the IBSS code:
       a) it tries to activate interfaces that are down after scanning
       b) it crashes after scanning on an IBSS iface that isn't active
       c) since the ssid_len is used as a flag, need to make it visible
          only after all other settings are set, this helps protect
          against b)
      
      For b), we get a system crash:
      
      wlan0: Creating new IBSS network, BSSID ce:f9:88:76:1e:4d
      BUG: unable to handle kernel NULL pointer dereference at (null)
      IP: [<...>] ieee80211_sta_find_ibss+0x294/0x37d [mac80211]
      Call Trace:
       [<...>] ieee80211_ibss_notify_scan_completed+0x0/0x88 [mac80211]
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      0e41f715
  2. 23 4月, 2009 2 次提交
  3. 28 3月, 2009 1 次提交
  4. 06 3月, 2009 1 次提交
  5. 28 2月, 2009 4 次提交