1. 13 4月, 2016 4 次提交
  2. 08 4月, 2016 2 次提交
  3. 07 4月, 2016 3 次提交
  4. 05 4月, 2016 1 次提交
  5. 04 4月, 2016 15 次提交
  6. 23 3月, 2016 4 次提交
    • M
      ath10k: enable debugfs provision to enable Peer Stats feature · cc61a1bb
      Mohammed Shafi Shajakhan 提交于
      Provide a debugfs entry to enable/ disable Peer Stats feature.
      Peer Stats feature is for developers/users who are more interested
      in studying in Rx/Tx stats with multiple clients connected, hence
      disable this by default. Enabling this feature by default results
      in unneccessary processing of Peer Stats event for every 500ms
      and updating peer_stats list (allocating memory) and cleaning it up
      ifexceeds the higher limit and this can be an unnecessary overhead
      during long run stress testing.
      Signed-off-by: NMohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      cc61a1bb
    • R
      ath10k: incorporate qca4019 cal data download sequence · 3d9195ea
      Raja Mani 提交于
      qca4019 calibration data is stored in the host memory and it's mandatory
      to download it even before reading board id and chip id from the target.
      Also, there is a need to execute otp (download and run) twice, one after
      cal data download and another one after board data download.
      
      Existing cal data file name 'cal-<bus>-<id>.bin' and device tree entry
      'qcom,ath10k-calibration-data' used in ath10k has assumption that it
      carries other data (like board data) also along with the calibration data.
      But, qca4019 cal data contains pure calibration data (doesn't include
      any other info). So, using existing same cal file name and DT entry
      in qca4019 case would alter the purpose of it. To avoid this, new cal
      file name 'pre-cal-<bus>-<id>.bin' and new device tree entry name
      'qcom,ath10k-pre-calibration-data are introduced.
      
      Overall qca4019's firmware download sequence would look like,
      
         1) Download cal data (either from a file or device tree entry)
            at the address specified by target in the host interest area
            member "hi_board_data".
      
         2) Download otp and run with 0x10 (PARAM_GET_EEPROM_BOARD_ID)
            as a argument.
      
            At this point, otp will take back up of downloaded cal data
            content in another location in the target and return valid
            board id and chip id to the host.
      
         3) Download board data at the address specified by target
            in host interest area member "hi_board_data".
      
         4) Download otp and run with 0x10000 (PARAM_FLASH_SECTION_ALL) as
            a argument.
      
            Now otp will apply cal data content from it's backup on top
            of board data download in step 3 and prepare final data base.
      
         5) Download code swap and athwlan binary content.
      
      Above sequences are implemented (step 1 to step 4) in the name of
      pre calibration configuration.
      Signed-off-by: NRaja Mani <rmani@qti.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      3d9195ea
    • R
      ath10k: move cal data len to hw_params · 0b8e3c4c
      Raja Mani 提交于
      ath10k_download_cal_dt() compares obtained cal data content length
      against QCA988X_CAL_DATA_LEN (2116 bytes). It was written by keeping
      qca988x in mind. In fact, cal data length is more chip specific.
      To make ath10k_download_cal_dt() more generic and reusable for other
      chipsets (like qca4019), cal data length is moved to hw_params.
      Signed-off-by: NRaja Mani <rmani@qti.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      0b8e3c4c
    • R
      ath10k: pass cal data location as an argument to ath10k_download_cal_{file|dt} · f454add4
      Raja Mani 提交于
      Both ath10k_download_cal_file() and ath10k_download_cal_dt() uses
      hard coded file pointer (ar->cal_file) and device tree entry
      (qcom,ath10k-calibration-data) respectively to get calibration
      data content.
      
      There is a need to use those two functions in qca4019 calibration
      download sequence with different file pointer and device tree entry name.
      Modify those two functions to take cal data location as an argument.
      So that it can serve the purpose for other file pointer and device
      tree entry.
      
      This is just preparation before adding actual qca4019 calibration
      download sequence. No functional changes.
      Signed-off-by: NRaja Mani <rmani@qti.qualcomm.com>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      f454add4
  7. 22 3月, 2016 3 次提交
  8. 18 3月, 2016 5 次提交
  9. 15 3月, 2016 2 次提交
    • A
      ath9k: fix misleading indentation · 362210e0
      Arnd Bergmann 提交于
      A cleanup patch in linux-3.18 moved around some code in the ath9k
      driver and left some code to be indented in a misleading way,
      made worse by the addition of some new code for p2p mode, as
      discovered by a new gcc-6 warning:
      
      drivers/net/wireless/ath/ath9k/init.c: In function 'ath9k_set_hw_capab':
      drivers/net/wireless/ath/ath9k/init.c:851:4: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation]
          hw->wiphy->iface_combinations = if_comb;
          ^~
      drivers/net/wireless/ath/ath9k/init.c:847:3: note: ...this 'if' clause, but it is not
         if (ath9k_is_chanctx_enabled())
         ^~
      
      The code is in fact correct, but the indentation is not, so I'm
      reformatting it as it should have been after the original cleanup.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 499afacc ("ath9k: Isolate ath9k_use_chanctx module parameter")
      Fixes: eb61f9f6 ("ath9k: advertise p2p dev support when chanctx")
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      362210e0
    • A
      ath9k: fix buffer overrun for ar9287 · 83d6f1f1
      Arnd Bergmann 提交于
      Code that was added back in 2.6.38 has an obvious overflow
      when accessing a static array, and at the time it was added
      only a code comment was put in front of it as a reminder
      to have it reviewed properly.
      
      This has not happened, but gcc-6 now points to the specific
      overflow:
      
      drivers/net/wireless/ath/ath9k/eeprom.c: In function 'ath9k_hw_get_gain_boundaries_pdadcs':
      drivers/net/wireless/ath/ath9k/eeprom.c:483:44: error: array subscript is above array bounds [-Werror=array-bounds]
           maxPwrT4[i] = data_9287[idxL].pwrPdg[i][4];
                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~
      
      It turns out that the correct array length exists in the local
      'intercepts' variable of this function, so we can just use that
      instead of hardcoding '4', so this patch changes all three
      instances to use that variable. The other two instances were
      already correct, but it's more consistent this way.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 940cd2c1 ("ath9k_hw: merge the ar9287 version of ath9k_hw_get_gain_boundaries_pdadcs")
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      83d6f1f1
  10. 11 3月, 2016 1 次提交
    • M
      ath9k: fix reg dump data bus error · 181c007d
      Miaoqing Pan 提交于
      Changes:
       - restrict only dump MAC registers
       - skip the register memory holes
      
      Data bus error, epc == 831d4040, ra == 831d403c
      Oops[#1]:
      CPU: 0 PID: 1536 Comm: cat Not tainted 3.14.0 #3
      task: 82f87840 ti: 82f88000 task.ti: 82f88000
      $ 0   : 00000000 00000001 deadc0de 1000fc03
      $ 4   : b8100200 00000200 831e0000 80218788
      $ 8   : 00000030 00000003 00000001 09524547
      $12   : 00000000 810594f4 00000000 3a206d61
      $16   : 831dd3c0 00000081 00000a00 c05ff000
      $20   : 00005af6 00000200 00071b39 00071139
      $24   : 00000001 80217760
      $28   : 82f88000 82f89c60 c05ffa00 831d403c
      Hi    : 00000000
      Lo    : 453c0000
      epc   : 831d4040 ath_ahb_exit+0x2198/0x2904 [ath9k]
      	Not tainted
      ra    : 831d403c ath_ahb_exit+0x2194/0x2904 [ath9k]
      Status: 1000fc03	KERNEL EXL IE
      Cause : 4080801c
      PrId  : 00019374 (MIPS 24Kc)
      Stack : 00000001 00000000 0000000e 80475c60 0000000e 800a8ebc 00000000 00000000
      	00000001 00000007 00000000 800a9678 00000000 00000004 00000002 00000010
      	00000000 00000000 00000000 00000000 80475c60 0000000e 000009ec c05ff000
      	831dd3c0 00000080 00000a00 c05ff000 00005af6 00000200 00071b39 0007114d
      	c05ff9ec 800a9904 831dd3c0 82f89d10 00000001 81082194 831d8f0c 82f89d14
      	...
      	Call Trace:
      	[<831d4040>] ath_ahb_exit+0x2198/0x2904 [ath9k]
      	[<831d403c>] ath_ahb_exit+0x2194/0x2904 [ath9k]
      Signed-off-by: NMiaoqing Pan <miaoqing@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      181c007d