1. 05 Oct, 2012 1 commit
    • Jouni Malinen's avatar
      P2P: Fix network removal to select correct block · 9d712833
      Jouni Malinen authored
      If wpa_s->current_ssid is not set (e.g., after disconnection that
      did not result in immediate group removal), an incorrect group could
      have been removed since the network block iteration here could select
      the network block that is used to store persistent group credentials.
      Fix this by verifying that disabled != 2 to avoid picking the network
      block that could not have been the temporary P2P group.
      
      Bug: 7290511
      Change-Id: Ia61bab3e11137ab2c0c34014e4d8d8bdee2a0469
      9d712833
  2. 03 Oct, 2012 1 commit
    • Jouni Malinen's avatar
      P2P: Fix p2p_cancel processing during group formation · adddfc48
      Jouni Malinen authored
      
      The wpa_s->p2p_in_provisioning flag did not get cleared in some cases
      where p2p_cancel command is used to stop group formation. This can result
      in some operations (like p2p_find) failing afterwards. Fix this by using
      wpas_group_formation_completed() when processing p2p_cancel for a group
      that has not yet completed group formation.
      
      Bug: 7280743
      Change-Id: I2dea935bd7c0509237de54bd048954f75ce80bfc
      Signed-off-by: default avatarJouni Malinen <jouni@qca.qualcomm.com>
      adddfc48
  3. 26 Sep, 2012 1 commit
    • Irfan Sheriff's avatar
      Remove unnecessary channel list filtering · 069fa2c3
      Irfan Sheriff authored
      Operating channel is always set even without an STA connected. Remove
      channel list filtering based on that.
      
      Channel list is filtered in the p2p_connect and p2p_invite path based
      on force_freq which is essentially the operating channel for STA
      
      This patch helps fix WifiDirect b/w two android devices for SCC while at
      the same time keeping channel compliance with WFD dongle
      
      Bug: 7232932
      Change-Id: Ie9524f9e45b6f997959c3359a81b05f63b576045
      069fa2c3
  4. 25 Sep, 2012 1 commit
    • Dmitry Shmidt's avatar
      wpa_supplicant: P2P-related fixes · 91c40cdc
      Dmitry Shmidt authored
      
      - P2P: Show own channel list in debug log
      - P2P: Allow peer to propose channel in invitation process
      - P2P: Clear sta_scan_pending on group removal
      - P2P: Fix ignoring of PD Response due to dialog token mismatch
      
      BUG: 7226065, 7231289
      
      Change-Id: Iacb0f85d80f63bcdf311ccc0d29d0c282a0c0576
      Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
      91c40cdc
  5. 24 Sep, 2012 3 commits
    • Dmitry Shmidt's avatar
      wpa_supplicant: P2P-related fixes · aa532510
      Dmitry Shmidt authored
      
      - Remove unused function warning in WPS-NFC case
      - P2P: Fix p2p_ctrl_invite_persistent to parse peer parameter
      - hostapd: Fix CONFIG_INTERWORKING=y build without CONFIG_HS20=y
      - hostapd: Fix WDS VLAN bridge handling
      - hostapd: Send EAPOL frames from the VO queue if WMM is active
      - P2P: Remove channel 14 from supported P2P channels
      - hostapd: Clear WLAN_STA_ASSOC_REQ_OK if sending the assoc response failed
      - hostapd: Add check for the wds sta flag before creating 4addr VLANs
      - nl80211: Use the monitor interface if socket tx status is not supported
      - wpa_supplicant: Set state to DISCONNECTED on AP creation errors
      - P2P: Fix p2p_group_idle in no-group-interface P2P client case
      - P2P: Fix PSK configuration for GO network
      - Print control interface commands in easier format
      - Add debug print for no enabled networks case
      - P2P: Add more debug prints for GO start routines
      - P2P: Fix pending sta scan processing for concurrent operation cases
      
      BUG: 6940646
      Change-Id: I1b1c54a08c61ec4af2bfd2274afc93501004eea2
      Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
      aa532510
    • Irfan Sheriff's avatar
      Fix build: Add ANDROID_P2P for SCC interop fixes · f0619665
      Irfan Sheriff authored
      Change-Id: I847b63428b47016cf9a9a0b090636e1d5b9d28b8
      f0619665
    • Irfan Sheriff's avatar
      GC channel fixes for better interop with SCC · af84a575
      Irfan Sheriff authored
      - Force operating channel as the only channel in channel list attribute for go negotiation
      and persistence
      - Force an operating channel in go negotiation response even if the GO indicates a different
      in negotiation request
      - Fix a bug with updating peer operating channel based on GO negotiation confirm
      
      Bug: 7217600
      Change-Id: I6da0dc1a49c1d99ae97dcab8ee9899e07a80a6cb
      af84a575
  6. 14 Sep, 2012 5 commits
  7. 13 Sep, 2012 3 commits
  8. 11 Sep, 2012 5 commits
  9. 10 Sep, 2012 3 commits
  10. 09 Sep, 2012 11 commits
    • Arik Nemtsov's avatar
      AP: Configure basic rates from iface and not conf · 2d266067
      Arik Nemtsov authored
      The conf doesn't contain any basic rates in some cases. Most notably,
      when starting a P2P GO in 5 GHz. Use the iface rates which are
      initialized in hostapd_prepare_rates() to the conf rates or set to
      default values if no conf values exist. This fixes a bug introduced in
      commit e5693c4775bae65faa960f80889f98b0a6cb2e1c.
      
      Signed-hostap: Arik Nemtsov <arik@wizery.com>
      2d266067
    • Jouni Malinen's avatar
      P2P: Do not fail p2p_group_remove just based on current_ssid · 5c44edb0
      Jouni Malinen authored
      The wpa_s->current_ssid pointer may get cleared, e.g., when
      disconnected. Commit 30ee769235f3170d9bf6b62c11c6e018e97deb84 made
      wpas_p2p_group_delete() exit early before removing a P2P interface in
      this type of case. That can cause number of issues from p2p_group_remove
      command failing to busy loop when terminating wpa_supplicant if there is
      a P2P group interface in client mode and that interface happens to be in
      disconnected state. Fix these issues by allowing wpas_p2p_group_delete()
      remove the P2P group interface regardless of whether wpa_s->currnt_ssid
      is set.
      
      Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
      5c44edb0
    • Jouni Malinen's avatar
      P2P: Allow p2p_invite-persistent to specify channel for GO · 31be0a4b
      Jouni Malinen authored
      The freq and ht40 parameters can now be used with the p2p_invite
      command when reinvoking a persistent group as the GO.
      
      Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
      31be0a4b
    • Dmitry Shmidt's avatar
    • Dmitry Shmidt's avatar
    • Dmitry Shmidt's avatar
    • Dmitry Shmidt's avatar
    • Jouni Malinen's avatar
      SME: Fix disconnec-while-authenticating · f8a26a8e
      Jouni Malinen authored
      Commit 0d30cc240fa36905b034dc9676f9d8da0ac18e56 forced
      wpa_s->current_ssid to be cleared in wpa_supplicant_mark_disassoc()
      which gets called from wpa_supplicant_event_disassoc(). This broke SME
      disassoc-while-authenticating workaround for cfg80211. Fix this by
      restoring wpa_s->current_ssid in case SME authentication is in progress.
      
      Signed-hostap: Jouni Malinen <j@w1.fi>
      f8a26a8e
    • Jouni Malinen's avatar
      Fix disconnection event processing · 2b89da85
      Jouni Malinen authored
      Commit 0d30cc240fa36905b034dc9676f9d8da0ac18e56 forced
      wpa_s->current_ssid and wpa_s->key_mgmt to be cleared in
      wpa_supplicant_mark_disassoc() which gets called from
      wpa_supplicant_event_disassoc(). This broke IEEE 802.1X authentication
      failure processing and P2P deauthentication notification (group
      termination).
      
      Fix this by splitting wpa_supplicant_event_disassoc() into two parts and
      make wpas_p2p_deauth_notif() indicate whether the interface was removed.
      If so, the last part of disassocition event processing is skipped. Since
      the wpa_supplicant_mark_disassoc() call is in the second part, the above
      mentioned issues are resolved. In addition, this cleans up the P2P group
      interface removal case by not trying to use fast reconnection mechanism
      just before the interface gets removed.
      
      Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
      2b89da85
    • Deepthi Gowri's avatar
      Fix REMOVE_NETWORK to not run operations with invalid current_ssid · a831d78b
      Deepthi Gowri authored
      If the REMOVE_NETWORK command is used to delete the currently connected
      network, some operations were run between removing the network and
      clearing of wpa_s->current_ssid. This left wpa_s->current_ssid pointing
      to freed memory and should any operation end up using it before the
      pointer gets cleared, freed memory could be references. Avoid this by
      removing the network only after having completed the operations that
      clear wpa_s->current_ssid.
      
      Signed-hostap: Deepthi Gowri <deepthi@codeaurora.org>
      intended-for: hostap-1
      a831d78b
    • Jouni Malinen's avatar
      nl80211: Register read_sta_data() handler for station only builds · 1e6c57fe
      Jouni Malinen authored
      This driver_op can now be used in station mode, too, to fetch
      information about the connection with the AP, so allow this to be used
      even if wpa_supplicant is built without AP mode support.
      
      Change-Id: Ibef1d27ed0e2df312e715a88d500500c661860d1
      Signed-hostap: Jouni Malinen <j@w1.fi>
      1e6c57fe
  11. 07 Sep, 2012 3 commits
  12. 06 Sep, 2012 3 commits