1. 07 5月, 2009 3 次提交
    • 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 次提交