1. 20 8月, 2009 1 次提交
    • J
      cfg80211: report userspace SME connected event properly · ea416a79
      Johannes Berg 提交于
      Instead of hacking the event reporting into the
      __cfg80211_connect_result() function which is also
      invoked by others, set up things correctly and then
      invoke that function, so that it can do more sanity
      checking.
      
      Also, it is currently not possible to get a ROAMED
      event from the userspace SME anyway since we send
      out a DISCONNECTED event when it disassociates and
      then a new CONNECTED event on the next association.
      
      Thanks to Zhu Yi for pointing out that the code is
      somewhat convoluted and doesn't warn when it should.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      ea416a79
  2. 14 8月, 2009 3 次提交
  3. 05 8月, 2009 1 次提交
  4. 30 7月, 2009 2 次提交
  5. 25 7月, 2009 2 次提交
    • J
      cfg80211: fix more bugs in mlme handling · 596a07c1
      Johannes Berg 提交于
      The "what-was-I-thinking-if-anything" patch. Clearly,
      if cfg80211_send_disassoc() does wdev_lock() and then
      calls __cfg80211_send_disassoc(), the latter shouldn't
      lock again. And the sme_state test is ... no further
      comments.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      596a07c1
    • J
      cfg80211: rework key operation · fffd0934
      Johannes Berg 提交于
      This reworks the key operation in cfg80211, and now only
      allows, from userspace, configuring keys (via nl80211)
      after the connection has been established (in managed
      mode), the IBSS been joined (in IBSS mode), at any time
      (in AP[_VLAN] modes) or never for all the other modes.
      
      In order to do shared key authentication correctly, it
      is now possible to give a WEP key to the AUTH command.
      To configure static WEP keys, these are given to the
      CONNECT or IBSS_JOIN command directly, for a userspace
      SME it is assumed it will configure it properly after
      the connection has been established.
      
      Since mac80211 used to check the default key in IBSS
      mode to see whether or not the network is protected,
      it needs an update in that area, as well as an update
      to make use of the WEP key passed to auth() for shared
      key authentication.
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      fffd0934
  6. 11 7月, 2009 9 次提交
  7. 23 4月, 2009 3 次提交
  8. 28 3月, 2009 1 次提交
    • J
      nl80211: Event notifications for MLME events · 6039f6d2
      Jouni Malinen 提交于
      Add new nl80211 event notifications (and a new multicast group, "mlme")
      for informing user space about received and processed Authentication,
      (Re)Association Response, Deauthentication, and Disassociation frames in
      station and IBSS modes (i.e., MLME SAP interface primitives
      MLME-AUTHENTICATE.confirm, MLME-ASSOCIATE.confirm,
      MLME-REASSOCIATE.confirm, MLME-DEAUTHENTICATE.indicate, and
      MLME-DISASSOCIATE.indication). The event data is encapsulated as the 802.11
      management frame since we already have the frame in that format and it
      includes all the needed information.
      
      This is the initial step in providing MLME SAP interface for
      authentication and association with nl80211. In other words, kernel code
      will act as the MLME and a user space application can control it as the
      SME.
      Signed-off-by: NJouni Malinen <j@w1.fi>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6039f6d2