1. 21 10月, 2014 5 次提交
    • M
      ath10k: skip some commands on reassoc · b1ecde36
      Michal Kazior 提交于
      It doesn't make much sense to reconfigure peer
      completely upon reassociation. This will make it
      easier to have a more uniform association code
      across different modes.
      Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      b1ecde36
    • M
      ath10k: clean up assoc code · 590922a8
      Michal Kazior 提交于
      There's no need to pass bss_conf explicitly as it
      is accessible via vif pointer. This requires
      slight changes in function prototypes. While at it
      clean up listen interval workaround/command.
      Signed-off-by: NMichal Kazior <michal.kazior@tieto.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      590922a8
    • K
      ath10k: retrieve calibration data from file · a58227ef
      Kalle Valo 提交于
      A frequent request have been to be able to provide calibration data from a
      file as some of the AP devices store the calibration data on an MTD partition.
      This patchset adds support for that and also makes it easier to add Device Tree
      support later on.
      
      The calibration data is found by using the id string provided by dev_name()
      using this format:
      
      cal-<bus>-<id>.bin
      
      With PCI the id string contains bus, slot and func values. For example for a
      PCI device in bus 2 slot 0, ath10k will try to retrieve a calibration data from
      a file:
      
      /lib/firmware/ath10k/cal-pci-0000:02:00.0.bin
      
      The calibration data sequence is:
      
      1. Check with request_firmware() if there's a calibration file
         ("cal-<bus>-<id>.bin") on the filesystem for this device. If yes, use that. If
         not, goto 2
      
      2. Check if otp.bin is able to successfully load the calibration data
         from OTP. If yes, use that. If not, goto 3.
      
      4. Print an error message that no calibration data found and stop driver
         initialization for this device.
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      a58227ef
    • K
      ath10k: refactor ath10k_init_download_firmware() · 83091559
      Kalle Valo 提交于
      This is preparation for being able to download calibration data from a file.
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      83091559
    • K
      ath10k: add back enum ath10k_bus · e07db352
      Kalle Valo 提交于
      Commit 3a0861ff ("ath10k: remove ath10k_bus") removed enum ath10k_bus
      because it was not used for anything at the time. But now it's needed for for
      retrieving the right calibration data file so add it back. Only new addition is
      ath10k_bus_str().
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      e07db352
  2. 13 10月, 2014 1 次提交
  3. 08 10月, 2014 5 次提交
  4. 07 10月, 2014 4 次提交
  5. 01 10月, 2014 3 次提交
  6. 29 9月, 2014 5 次提交
  7. 26 9月, 2014 6 次提交
  8. 23 9月, 2014 10 次提交
  9. 18 9月, 2014 1 次提交
    • K
      ath10k: use ether_addr_copy() · b25f32cb
      Kalle Valo 提交于
      As suggeested by checkpatch:
      
      WARNING: Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)
      
      In wmi.c I had to change due to sparse warnings copying of struct wmi_mac_addr
      from form &cmd->peer_macaddr.addr to cmd->peer_macaddr.addr. In
      ath10k_wmi_set_ap_ps_param() I also added the missing ".addr" to the copy
      command.
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      b25f32cb