1. 20 7月, 2016 1 次提交
  2. 08 7月, 2016 11 次提交
  3. 06 7月, 2016 1 次提交
  4. 30 6月, 2016 2 次提交
  5. 14 6月, 2016 1 次提交
    • M
      ath9k: fix GPIO mask for AR9462 and AR9565 · e024111f
      Miaoqing Pan 提交于
      The incorrect GPIO mask cause kernel warning, when AR9462 access GPIO11.
      Also fix the mask for AR9565.
      
      WARNING: CPU: 1 PID: 199 at ../drivers/net/wireless/ath/ath9k/hw.c:2778 ath9k_hw_gpio_get+0x1a9/0x1b0 [ath9k_hw]
      CPU: 1 PID: 199 Comm: kworker/u16:9 Not tainted 4.7.0-rc1-next-20160530+ #5
      Hardware name: Acer TravelMate P243/BA40_HC, BIOS V1.01 04/20/2012
      Workqueue: events_power_efficient rfkill_poll
       0000000000000000 ffff88002cf73d28 ffffffff813b8ddc 0000000000000000
       0000000000000000 ffff88002cf73d68 ffffffff8107a331 00000ada00000086
       ffff880148d9c018 000000000000000b ffff880147e68720 0000000000000200
      Call Trace:
       [<ffffffff813b8ddc>] dump_stack+0x63/0x87
       [<ffffffff8107a331>] __warn+0xd1/0xf0
       [<ffffffff8107a41d>] warn_slowpath_null+0x1d/0x20
       [<ffffffffc0775b19>] ath9k_hw_gpio_get+0x1a9/0x1b0 [ath9k_hw]
       [<ffffffffc047f3e4>] ath9k_rfkill_poll_state+0x34/0x60 [ath9k]
       [<ffffffffc06dbb53>] ieee80211_rfkill_poll+0x33/0x40 [mac80211]
       [<ffffffffc03ad65a>] cfg80211_rfkill_poll+0x2a/0xc0 [cfg80211]
       [<ffffffff817c5514>] rfkill_poll+0x24/0x50
       [<ffffffff81093183>] process_one_work+0x153/0x3f0
       [<ffffffff8109393b>] worker_thread+0x12b/0x4b0
       [<ffffffff81093810>] ? rescuer_thread+0x340/0x340
       [<ffffffff81099129>] kthread+0xc9/0xe0
       [<ffffffff817d8f1f>] ret_from_fork+0x1f/0x40
       [<ffffffff81099060>] ? kthread_park+0x60/0x60
      
      Fixes: a01ab81b ("ath9k: define correct GPIO numbers and bits mask")
      Reported-by: NSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
      Tested-by: NSudip Mukherjee <sudip.mukherjee@codethink.co.uk>
      Signed-off-by: NMiaoqing Pan <miaoqing@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
      e024111f
  6. 28 5月, 2016 3 次提交
  7. 10 5月, 2016 4 次提交
  8. 26 4月, 2016 2 次提交
  9. 19 4月, 2016 3 次提交
  10. 16 4月, 2016 1 次提交
  11. 12 4月, 2016 1 次提交
  12. 08 4月, 2016 2 次提交
  13. 04 4月, 2016 1 次提交
  14. 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
  15. 11 3月, 2016 5 次提交