1. 24 10月, 2012 5 次提交
  2. 09 7月, 2012 1 次提交
    • J
      cfg80211: use wdev in mgmt-tx/ROC APIs · 71bbc994
      Johannes Berg 提交于
      The management frame and remain-on-channel APIs will be
      needed in the P2P device abstraction, so move them over
      to the new wdev-based APIs. Userspace can still use both
      the interface index and wdev identifier for them so it's
      backward compatible, but for the P2P Device wdev it will
      be able to use the wdev identifier only.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      71bbc994
  3. 11 6月, 2012 2 次提交
  4. 06 6月, 2012 1 次提交
    • J
      cfg80211: provide channel to start_ap function · aa430da4
      Johannes Berg 提交于
      Instead of setting the channel first and then
      starting the AP, let cfg80211 store the channel
      and provide it as one of the AP settings.
      
      This means that now you have to set the channel
      before you can start an AP interface, but since
      hostapd/wpa_supplicant always do that we're OK
      with this change.
      
      Alternatively, it's now possible to give the
      channel as an attribute to the start-ap nl80211
      command, overriding any preset channel.
      
      Cc: Kalle Valo <kvalo@qca.qualcomm.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      aa430da4
  5. 30 5月, 2012 1 次提交
    • K
      ath6kl: separate ht cap for each band · 67b3f129
      Kiran Reddy 提交于
      In virtual interface structure, for each band separate ht cap
      is needed. so that one can disable or enable ht capability band
      wise.
      This will fix the following issue:
      
      1) Disable 11n from supplicant and start a P2P GO.
      2) In beacon frames no HT-CAP IE is seen which is expected.
      3) Now remove the P2P GO and kill the supplicant.
      4) Beacon stops
      5) Now using iw  associate to an external AP in 5 GHZ
      6) In 5 GHZ no HT IE going in assoc request but
      when  associated in 2.4 GHZ can see HT IES over the air
      in assoc request.
      
      In the code for del_beacon in cfg80211.c,set_ht_cap is being
      called first for 2.4 GHZ and then for 5 GHZ. When  called
      for the first time for 2.4 GHZ the enable flag will be set to true
      and so when called for the second time for 5 GHZ it just returns
      after checking the flag.
      
      Also using this one can have different HT capabilities
      per band (for example one may decide not to use 20/40 in 2.4 GHZ
      but use it in 5 GHZ). So maintaining a single context is not ok.
      it is true for even the enable/disable flag and other HT
      capabilities as well
      Signed-off-by: NKiran Reddy <c_lreddy@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      67b3f129
  6. 24 5月, 2012 1 次提交
  7. 16 5月, 2012 2 次提交
    • N
      ath6kl: Include match ssid list in scheduled scan · dd45b759
      Naveen Singh 提交于
      Scheduled scan implementation was only taking probed list into
      consideration. The matched list was dropped. This would cause
      FW not to report the AP as the list never had that AP's SSID
      populated. This was causing long connection time when supplicant
      would just issue a wild card SSID in probed list. As a part of
      this implementation, ath6kl driver would create a complete list
      by taking both probed and matched list and pass it to FW. FW would
      probe for the SSID that it needs to and would match against the
      relevant SSIDS that is been configured.
      
      kvalo: whitespace changes, less indentation in the for loop, use ++
      Signed-off-by: NNaveen Singh <navesing@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      dd45b759
    • T
      ath6kl: enable enhanced bmiss detection · c422d52d
      Thomas Pedersen 提交于
      Enable enhanced bmiss detection if the firmware supports it. This
      feature is only enabled on some firmwares since it comes with a power
      cost.
      
      Also add a few missing command ids to keep the enums straight.
      
      kvalo: fix a compiler with ath6kl_err(), add few empty lines
      Signed-off-by: NThomas Pedersen <c_tpeder@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      c422d52d
  8. 14 5月, 2012 1 次提交
  9. 26 4月, 2012 1 次提交
    • N
      ath6kl: Multicast filter support in wow suspend and non-suspend · 6251d801
      Naveen Gangadharan 提交于
      This patch enables all multicast packets in non suspend mode
      and enable multicast filtering in wow suspend mode. This also
      fixes a bug in multicast where the driver assumed disable
      multicast-all command disabled/filtered all multicast
      packets, which was wrong assumption, because firmware will
      apply the programmed filter.
      
      Multicast requirements
       - Enable forward all multicast packets(no filtering) in
            non suspend mode.
       - Enable multicast filtering in wow suspend mode for both
            AP and CLIENT.
      
      kvalo: fix a checkpatch warning and drop unrelated newline removal
      Signed-off-by: NNaveen Gangadharan <ngangadh@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      6251d801
  10. 23 4月, 2012 1 次提交
  11. 18 4月, 2012 1 次提交
  12. 16 4月, 2012 1 次提交
  13. 12 4月, 2012 2 次提交
  14. 09 4月, 2012 2 次提交
  15. 26 3月, 2012 4 次提交
  16. 20 3月, 2012 1 次提交
  17. 08 3月, 2012 2 次提交
  18. 07 3月, 2012 4 次提交
    • R
      ath6kl: Set optimal listen intvl,bmiss,scan params while going to wow suspend · ce0dc0cf
      Raja Mani 提交于
      * In order to save the target power in WOW suspend state,
        configure the best optimal values for the below parameters,
           - listen interval.
           - beacon miss interval.
           - scan parameters.
      
        Default values for above attributes are reverted in
        wow resume operation.
      
      * The default listen interval is set before the host issue
        connect request.
      
      * New function is added to configure beacon miss count.
      
      kvalo: minor changes to fix open parenthesis alignment
      Signed-off-by: NRaja Mani <rmani@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      ce0dc0cf
    • R
      ath6kl: Maintain the listen interval per VIF specific · 8f46fccd
      Raja Mani 提交于
      Firmware has the option to support the listen interval
      per vif specific. Fix this.
      
      Listen interval can be set by the TUs or by the number
      of beacons. Current code enables the user to configure
      the listen interval in the unit of 'number of beacons'
      using debugfs entry "listen_interval". Going forward,
      we need to alter the listen interval in the unit of TUs
      to get good power numbers while going to WOW suspend/resume.
      
      Allowing the user to change the listen interval in
      the unit of "number of beacons"  in debugfs and changing
      listen interval in wow suspend/resume in the unit of
      time (TUs) would lead us to confuse.
      
      This patch make sures the listen interval is changed only
      in the unit of time (TUs).
      Signed-off-by: NRaja Mani <rmani@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      8f46fccd
    • R
      ath6kl: Check wow state before sending control and data pkt · 390a8c8f
      Raja Mani 提交于
      Below two scenarios are taken care in this patch which helped
      to fix the firmware crash during wow suspend/resume.
      
      * TX operation (ctrl tx and data tx) has to be controlled based
        on suspend state. i.e, with respect to WOW mode, control packets
        are allowed to send from the host until the suspend state goes
        ATH6KL_STATE_WOW and the data packets are allowed until WOW
        suspend operation starts.
      
      * Similarly, wow resume is NOT allowed if WOW suspend is in progress.
      Signed-off-by: NRaja Mani <rmani@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      390a8c8f
    • R
      ath6kl: Add provision to define suspend policy in disconnected state. · 1e9a905d
      Raja Mani 提交于
      It gives flexibility to the user to define suspend policy
      when the suspend mode is set to WOW and the device is in
      disconnected state at the time of suspend.
      
      New module parameter wow_mode is added to get the choice
      from the user. This parameter is valid only if the module
      parameter suspend_mode is set to WOW.
      
      To force WOW in connected state and cut power
      in disconnected state:
        suspend_mode=0x3 wow_mode=0x1
      
      To force WOW in connected state and deep sleep
      in disconnected state (this is also the default wow_mode):
         suspend_mode=0x3 wow_mode=0x2
      
      If there is no value specified to wow_mode during insmod,
      deep sleep mode will be tried in the disconnected state.
      
      kvalo: clarified commit log
      Signed-off-by: NRaja Mani <rmani@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      1e9a905d
  19. 01 3月, 2012 1 次提交
  20. 28 2月, 2012 1 次提交
  21. 27 2月, 2012 1 次提交
  22. 08 2月, 2012 3 次提交
  23. 31 1月, 2012 1 次提交
    • R
      ath6kl: Wait for host sleep mode cmd processed event during WOW suspend · 081c7a84
      Raja Mani 提交于
      For every WMI_SET_HOST_SLEEP_MODE_CMDID command (send from the host),
      the firmware sends WMI_SET_HOST_SLEEP_MODE_CMD_PROCESSED_EVENTID as
      an acknowledgement to the host.
      
      In order to being sync with the firmware, the host has to wait for
      WMI_SET_HOST_SLEEP_MODE_CMD_PROCESSED_EVENT event before going to
      the suspend state. This patch ensures ath6kl_wow_suspend() waits
      until it gets this event after sending set host sleep mode command.
      
      This patch adds,
       * New command WMI_SET_HOST_SLEEP_MODE_CMD_PROCESSED_EVENTID in
         WMI event table.
       * New WMI function ath6kl_wmi_host_sleep_mode_cmd_prcd_evt_rx()
         to process the event.
       * New flag HOST_SLEEP_MODE_CMD_PROCESSED in VIF flags to record
         the arrival of the event.
      Signed-off-by: NRaja Mani <rmani@qca.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      081c7a84