Linux wireless drivers development
 help / color / mirror / Atom feed
* Re: iwlagn: two regressions 2.6.34->2.6.35-rc6
From: Andrew Lutomirski @ 2010-07-26 19:48 UTC (permalink / raw)
  To: linux-wireless, ilw
In-Reply-To: <AANLkTimo4RV6UMgti0ng1rQYE2eUVh2WLv_WHQZkz30j@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]

On Mon, Jul 26, 2010 at 3:08 PM, Andrew Lutomirski <luto@mit.edu> wrote:
> Regression 2:
>
> On 2.6.34 my wireless appears to be rock solid (yay -- it's been awhile).
>
> On 2.6.35-rc6, I have an AP here that doesn't work well.  It's an
> EnGenius ESR-7750 with latest firmware.  I can connect to its 2.4GHz
> radio (usually but it seems to connect more slowly than 2.6.34), but I
> can't always see the 5GHz radio, let alone connect.  It's connected
> exactly once out of many tries on 2.6.35-rc6, but it works fine on
> 2.6.34.
>
> In the attached log, you'll see the one successful connection to
> 00:02:6f:6e:d7:6c as well as a failure.  The failure is just:
>
> [  668.569218] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 1)
> [  668.769269] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 2)
> [  668.969150] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 3)
> [  669.169262] wlan0: authentication with 00:02:6f:6e:d7:6c timed out

This time with actual attachment.

>
> --Andy
>

[-- Attachment #2: dmesg --]
[-- Type: application/octet-stream, Size: 127130 bytes --]

ffset 0x1
[  358.055209] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  358.055214] ieee80211 phy1: U iwl_mac_config leave
[  358.055236] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04B9, 8 bytes at 185[25]:4
[  358.055296] ieee80211 phy1: I iwl_mac_tx enter
[  358.055309] ieee80211 phy1: I iwl_mac_tx leave
[  358.056417] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  358.063325] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04BA, 28 bytes at 186[26]:4
[  358.063366] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  358.540124] ieee80211 phy1: U iwl_mac_hw_scan enter
[  358.540133] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  358.540143] ieee80211 phy1: U iwlagn_request_scan Scanning while associated...
[  358.540150] ieee80211 phy1: U iwlagn_request_scan suspend_time 0x400000 beacon interval 100
[  358.540157] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  358.540169] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=1 prob=0x1 [ACTIVE 33]
[  358.540178] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=2 prob=0x1 [ACTIVE 33]
[  358.540186] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=3 prob=0x1 [ACTIVE 33]
[  358.540194] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=4 prob=0x1 [ACTIVE 33]
[  358.540202] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=5 prob=0x1 [ACTIVE 33]
[  358.540210] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=6 prob=0x1 [ACTIVE 33]
[  358.540218] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=7 prob=0x1 [ACTIVE 33]
[  358.540226] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=8 prob=0x1 [ACTIVE 33]
[  358.540233] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=9 prob=0x1 [ACTIVE 33]
[  358.540241] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=10 prob=0x1 [ACTIVE 33]
[  358.540249] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=11 prob=0x1 [ACTIVE 33]
[  358.540257] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=12 prob=0x0 [PASSIVE 88]
[  358.540265] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=13 prob=0x0 [PASSIVE 88]
[  358.540272] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 13
[  358.540279] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  358.540286] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  358.540299] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x44BB, 994 bytes at 187[32]:4
[  358.542511] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  358.542536] ieee80211 phy1: U iwl_mac_hw_scan leave
[  358.577291] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  358.577312] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 1 [802.11bg] (TSF: 0x00000000:4982D104) - 1 (beacon timer 671186684)
[  358.612974] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 1 [802.11bg] (TSF: 0x00000000:49835B93) - 12 elapsed=35471 usec
[  358.614556] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 2 [802.11bg] (TSF: 0x00000000:49836297) - 1 (beacon timer 671149416)
[  358.648465] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 2 [802.11bg] (TSF: 0x00000000:4983E6D5) - 6 elapsed=33854 usec
[  358.650238] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  358.782265] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  358.782290] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 3 [802.11bg] (TSF: 0x00000000:4985F110) - 1 (beacon timer 679575280)
[  358.816470] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 3 [802.11bg] (TSF: 0x00000000:49867681) - 8 elapsed=34161 usec
[  358.818046] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 4 [802.11bg] (TSF: 0x00000000:49867D8D) - 1 (beacon timer 679539315)
[  358.852051] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 4 [802.11bg] (TSF: 0x00000000:49870199) - 3 elapsed=33804 usec
[  358.852383] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  358.987100] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  358.987126] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 5 [802.11bg] (TSF: 0x00000000:49891115) - 1 (beacon timer 687963883)
[  358.998258] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 5 [802.11bg] (TSF: 0x00000000:49893CB6) - 1 elapsed=11169 usec
[  358.999868] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 6 [802.11bg] (TSF: 0x00000000:498943C1) - 1 (beacon timer 687950911)
[  359.035679] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 6 [802.11bg] (TSF: 0x00000000:4989CECF) - 8 elapsed=35598 usec
[  359.037258] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 7 [802.11bg] (TSF: 0x00000000:4989D5DB) - 1 (beacon timer 687913509)
[  359.051875] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 7 [802.11bg] (TSF: 0x00000000:498A0E2B) - 1 elapsed=14416 usec
[  359.053484] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.191760] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.191786] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 8 [802.11bg] (TSF: 0x00000000:498C3111) - 1 (beacon timer 696352495)
[  359.225709] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 8 [802.11bg] (TSF: 0x00000000:498CB522) - 4 elapsed=33809 usec
[  359.227290] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 9 [802.11bg] (TSF: 0x00000000:498CBC30) - 1 (beacon timer 696316880)
[  359.238533] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 9 [802.11bg] (TSF: 0x00000000:498CE7C8) - 1 elapsed=11160 usec
[  359.240279] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 10 [802.11bg] (TSF: 0x00000000:498CEECD) - 1 (beacon timer 696303923)
[  359.252212] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 10 [802.11bg] (TSF: 0x00000000:498D1D6E) - 0 elapsed=11937 usec
[  359.254008] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.396557] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.396582] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 11 [802.11bg] (TSF: 0x00000000:498F510E) - 1 (beacon timer 704741106)
[  359.430300] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 11 [802.11bg] (TSF: 0x00000000:498FD51A) - 6 elapsed=33804 usec
[  359.432121] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.601412] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.601435] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 12 [802.11bg] (TSF: 0x00000000:49927178) - 1 (beacon timer 713129608)
[  359.691735] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 12 [802.11bg] (TSF: 0x00000000:4993D190) - 3 elapsed=90136 usec
[  359.693328] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.806098] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.806120] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 13 [802.11bg] (TSF: 0x00000000:4995911A) - 1 (beacon timer 721518310)
[  359.896274] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 13 [802.11bg] (TSF: 0x00000000:4996F13F) - 0 elapsed=90149 usec
[  359.898060] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.898434] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 13 channels (TSF 0x4996F9D3:00000000) - 1
[  359.898444] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 2.4GHz took 1359ms
[  359.898450] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  359.898467] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  359.898491] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04BC, 8 bytes at 188[28]:4
[  359.898500] ieee80211 phy1: U iwl_mac_hw_scan enter
[  359.898512] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  359.898521] ieee80211 phy1: U iwlagn_request_scan Scanning while associated...
[  359.898529] ieee80211 phy1: U iwlagn_request_scan suspend_time 0x400000 beacon interval 100
[  359.898535] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  359.898547] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=36 prob=0x0 [PASSIVE 88]
[  359.898555] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=40 prob=0x0 [PASSIVE 88]
[  359.898563] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=44 prob=0x0 [PASSIVE 88]
[  359.898571] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=48 prob=0x0 [PASSIVE 88]
[  359.898579] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=52 prob=0x0 [PASSIVE 88]
[  359.898587] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=56 prob=0x0 [PASSIVE 88]
[  359.898595] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=60 prob=0x0 [PASSIVE 88]
[  359.898603] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=64 prob=0x0 [PASSIVE 88]
[  359.898611] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=100 prob=0x0 [PASSIVE 88]
[  359.898619] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=104 prob=0x0 [PASSIVE 88]
[  359.898627] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=108 prob=0x0 [PASSIVE 88]
[  359.898635] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=112 prob=0x0 [PASSIVE 88]
[  359.898643] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=116 prob=0x0 [PASSIVE 88]
[  359.898651] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=120 prob=0x0 [PASSIVE 88]
[  359.898659] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=124 prob=0x0 [PASSIVE 88]
[  359.898667] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=128 prob=0x0 [PASSIVE 88]
[  359.898675] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=132 prob=0x0 [PASSIVE 88]
[  359.898683] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=136 prob=0x0 [PASSIVE 88]
[  359.898691] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=140 prob=0x0 [PASSIVE 88]
[  359.898699] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=149 prob=0x0 [PASSIVE 88]
[  359.898707] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=153 prob=0x0 [PASSIVE 88]
[  359.898716] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=157 prob=0x0 [PASSIVE 88]
[  359.898734] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  359.898745] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=161 prob=0x0 [PASSIVE 88]
[  359.898753] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=165 prob=0x0 [PASSIVE 88]
[  359.898760] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 24
[  359.898766] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  359.898773] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  359.898785] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x44BD, 1120 bytes at 189[32]:4
[  359.901358] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  359.901382] ieee80211 phy1: U iwl_mac_hw_scan leave
[  359.908708] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  359.908732] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 36 [802.11a] (TSF: 0x00000000:49972121) - 1 (beacon timer 725712607)
[  359.998853] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 36 [802.11a] (TSF: 0x00000000:4998813D) - 0 elapsed=90140 usec
[  360.000473] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.113477] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.113500] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 40 [802.11a] (TSF: 0x00000000:499A41D9) - 1 (beacon timer 734101031)
[  360.203842] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 40 [802.11a] (TSF: 0x00000000:499BA1FA) - 0 elapsed=90145 usec
[  360.205516] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.319612] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.319640] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 44 [802.11a] (TSF: 0x00000000:499D662C) - 1 (beacon timer 742488532)
[  360.409622] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 44 [802.11a] (TSF: 0x00000000:499EC643) - 0 elapsed=90135 usec
[  360.411367] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.523238] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.523263] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 48 [802.11a] (TSF: 0x00000000:49A08216) - 1 (beacon timer 750878186)
[  360.558281] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 48 [802.11a] (TSF: 0x00000000:49A10B36) - 15 elapsed=35104 usec
[  360.560084] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.727722] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.727742] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 52 [802.11a] (TSF: 0x00000000:49A3A136) - 1 (beacon timer 759267018)
[  360.818074] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 52 [802.11a] (TSF: 0x00000000:49A50150) - 0 elapsed=90138 usec
[  360.819696] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.828286] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.932622] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  360.932646] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 56 [802.11a] (TSF: 0x00000000:49A6C145) - 1 (beacon timer 767655611)
[  360.985719] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 56 [802.11a] (TSF: 0x00000000:49A790E5) - 2 elapsed=53152 usec
[  360.987525] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.137548] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.137572] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 60 [802.11a] (TSF: 0x00000000:49A9E13D) - 1 (beacon timer 776044227)
[  361.227678] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 60 [802.11a] (TSF: 0x00000000:49AB4155) - 0 elapsed=90136 usec
[  361.229291] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.342356] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.342381] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 64 [802.11a] (TSF: 0x00000000:49AD0142) - 1 (beacon timer 784432830)
[  361.371674] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 64 [802.11a] (TSF: 0x00000000:49AD73AA) - 12 elapsed=29288 usec
[  361.373239] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.547157] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.547185] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 100 [802.11a] (TSF: 0x00000000:49B02143) - 1 (beacon timer 792821436)
[  361.637165] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 100 [802.11a] (TSF: 0x00000000:49B1815B) - 0 elapsed=90136 usec
[  361.638908] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.751963] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.751989] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 104 [802.11a] (TSF: 0x00000000:49B34148) - 1 (beacon timer 801210039)
[  361.841965] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 104 [802.11a] (TSF: 0x00000000:49B4A15E) - 0 elapsed=90134 usec
[  361.843767] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.956752] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  361.956777] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 108 [802.11a] (TSF: 0x00000000:49B6613F) - 1 (beacon timer 809598657)
[  362.046884] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 108 [802.11a] (TSF: 0x00000000:49B7C15A) - 0 elapsed=90139 usec
[  362.048573] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.161428] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.161450] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 112 [802.11a] (TSF: 0x00000000:49B9814B) - 1 (beacon timer 817987253)
[  362.251695] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 112 [802.11a] (TSF: 0x00000000:49BAE162) - 0 elapsed=90135 usec
[  362.253301] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.366167] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.366190] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 116 [802.11a] (TSF: 0x00000000:49BCA150) - 1 (beacon timer 826375855)
[  362.456326] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 116 [802.11a] (TSF: 0x00000000:49BE0168) - 0 elapsed=90136 usec
[  362.458107] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.571172] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.571197] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 120 [802.11a] (TSF: 0x00000000:49BFC14B) - 1 (beacon timer 834764469)
[  362.661308] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 120 [802.11a] (TSF: 0x00000000:49C12164) - 0 elapsed=90137 usec
[  362.663114] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.775967] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.775992] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 124 [802.11a] (TSF: 0x00000000:49C2E14B) - 1 (beacon timer 843153077)
[  362.866096] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 124 [802.11a] (TSF: 0x00000000:49C44165) - 0 elapsed=90138 usec
[  362.867785] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.980650] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  362.980674] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 128 [802.11a] (TSF: 0x00000000:49C60154) - 1 (beacon timer 851541675)
[  363.070907] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 128 [802.11a] (TSF: 0x00000000:49C7616B) - 0 elapsed=90135 usec
[  363.072591] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  363.185582] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  363.185608] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 132 [802.11a] (TSF: 0x00000000:49C92159) - 1 (beacon timer 859930279)
[  363.275730] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 132 [802.11a] (TSF: 0x00000000:49CA8181) - 0 elapsed=90152 usec
[  363.277357] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  363.390266] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  363.390290] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 136 [802.11a] (TSF: 0x00000000:49CC4153) - 1 (beacon timer 868318893)
[  363.480329] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 136 [802.11a] (TSF: 0x00000000:49CDA16B) - 0 elapsed=90136 usec
[  363.482334] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  363.595214] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  363.595239] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 140 [802.11a] (TSF: 0x00000000:49CF6160) - 1 (beacon timer 876707488)
[  363.685245] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 140 [802.11a] (TSF: 0x00000000:49D0C189) - 0 elapsed=90153 usec
[  363.687021] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  363.799862] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  363.799885] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 149 [802.11a] (TSF: 0x00000000:49D2815E) - 1 (beacon timer 885096098)
[  363.826245] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 149 [802.11a] (TSF: 0x00000000:49D2E8A5) - 7 elapsed=26439 usec
[  363.828030] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.004602] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.004626] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 153 [802.11a] (TSF: 0x00000000:49D5A122) - 1 (beacon timer 893484766)
[  364.094868] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 153 [802.11a] (TSF: 0x00000000:49D70139) - 0 elapsed=90135 usec
[  364.096488] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.209531] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.209558] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 157 [802.11a] (TSF: 0x00000000:49D8C11D) - 1 (beacon timer 901873379)
[  364.299666] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 157 [802.11a] (TSF: 0x00000000:49DA2138) - 0 elapsed=90139 usec
[  364.301337] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.414467] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.414491] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 161 [802.11a] (TSF: 0x00000000:49DBE1A8) - 1 (beacon timer 910261848)
[  364.451586] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 161 [802.11a] (TSF: 0x00000000:49DC72AA) - 6 elapsed=37122 usec
[  364.453262] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.619140] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.619164] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 165 [802.11a] (TSF: 0x00000000:49DF0126) - 1 (beacon timer 918650585)
[  364.709169] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 165 [802.11a] (TSF: 0x00000000:49E0614A) - 0 elapsed=90148 usec
[  364.711105] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  364.711129] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 24 channels (TSF 0x49E0692A:00000000) - 1
[  364.711137] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 5.2GHz took 4813ms
[  364.711143] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  364.711171] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  364.711192] ieee80211 phy1: U iwl_mac_config enter to channel 4 changed 0x40
[  364.711201] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x280E active=2 idle=2
[  364.711210] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x280E active=2 idle=2
[  364.711219] ieee80211 phy1: U iwl_set_rxon_ht rxon flags 0x4008035 operation mode :0x0 extension channel offset 0x1
[  364.711228] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  364.711234] ieee80211 phy1: U iwl_mac_config leave
[  364.711258] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04BE, 8 bytes at 190[30]:4
[  364.711310] ieee80211 phy1: I iwl_mac_tx enter
[  364.711324] ieee80211 phy1: I iwl_mac_tx leave
[  364.712216] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  364.719353] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04BF, 28 bytes at 191[31]:4
[  364.719398] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  365.026614] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C0, 28 bytes at 192[0]:4
[  365.027623] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  365.231618] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C1, 28 bytes at 193[1]:4
[  365.231670] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  365.333876] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C2, 28 bytes at 194[2]:4
[  365.333928] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  365.538808] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C3, 28 bytes at 195[3]:4
[  365.538863] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  365.641234] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C4, 28 bytes at 196[4]:4
[  365.641309] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  365.743658] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C5, 28 bytes at 197[5]:4
[  365.743709] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  365.845844] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C6, 28 bytes at 198[6]:4
[  365.845897] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  365.948278] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C7, 28 bytes at 199[7]:4
[  365.948353] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  366.050695] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C8, 28 bytes at 200[8]:4
[  366.050747] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  366.255653] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04C9, 28 bytes at 201[9]:4
[  366.255712] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  366.460248] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04CA, 28 bytes at 202[10]:4
[  366.460292] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  366.562913] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04CB, 28 bytes at 203[11]:4
[  366.562970] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  366.870054] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04CC, 28 bytes at 204[12]:4
[  366.870105] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  366.972450] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04CD, 28 bytes at 205[13]:4
[  366.972507] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  368.098699] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04CE, 28 bytes at 206[14]:4
[  368.098754] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  368.303639] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04CF, 28 bytes at 207[15]:4
[  368.303696] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  368.405961] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04D0, 28 bytes at 208[16]:4
[  368.406006] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  368.610854] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04D1, 28 bytes at 209[17]:4
[  368.610908] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  368.713284] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04D2, 28 bytes at 210[18]:4
[  368.713346] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  368.815464] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04D3, 28 bytes at 211[19]:4
[  368.815517] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  368.918071] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04D4, 28 bytes at 212[20]:4
[  368.918143] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  369.020336] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04D5, 28 bytes at 213[21]:4
[  369.020407] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  369.122724] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04D6, 28 bytes at 214[22]:4
[  369.122776] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  369.327662] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04D7, 28 bytes at 215[23]:4
[  369.327716] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  369.532399] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_LEDS_CMD (#48), seq: 0x04D8, 12 bytes at 216[24]:4
[  369.532517] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_LEDS_CMD (0x00000000)
[  370.556327] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_LEDS_CMD (#48), seq: 0x04D9, 12 bytes at 217[25]:4
[  370.556406] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_LEDS_CMD (0x00000000)
[  372.809249] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04DA, 28 bytes at 218[26]:4
[  372.809298] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  372.911667] ieee80211 phy1: U iwl_enqueue_hcmd Sending command SENSITIVITY_CMD (#a8), seq: 0x04DB, 28 bytes at 219[27]:4
[  372.911722] ieee80211 phy1: I iwl_generic_cmd_callback back from SENSITIVITY_CMD (0x00000000)
[  641.321546] iwlagn 0000:03:00.0: ACTIVATE a non DRIVER active station id 0 addr 00:02:6f:6e:d7:68
[  641.325043] phy1: Removed STA 00:02:6f:6e:d7:68
[  641.325152] phy1: Destroyed STA 00:02:6f:6e:d7:68
[  641.325161] wlan0: deauthenticating from 00:02:6f:6e:d7:68 by local choice (reason=3)
[  641.325218] phy1: device now idle
[  641.325282] phy1: device no longer idle - scanning
[  641.331588] phy1: device now idle
[  641.339047] cfg80211: Calling CRDA to update world regulatory domain
[  641.339208] cfg80211: Calling CRDA for country: US
[  641.360338] cfg80211: Regulatory domain changed to country: US
[  641.360341]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  641.360345]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[  641.360348]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[  641.360351]     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  641.360354]     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  641.360357]     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  641.360360]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[  641.405369] phy1: device no longer idle - scanning
[  643.759736] phy1: device now idle
[  648.763819] phy1: device no longer idle - scanning
[  651.140797] phy1: device now idle
[  656.147968] phy1: device no longer idle - scanning
[  656.147975] ieee80211 phy1: U iwl_mac_config enter to channel 4 changed 0x100
[  656.147980] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  656.147985] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  656.147988] ieee80211 phy1: U iwl_mac_config leave
[  656.147992] ieee80211 phy1: U iwl_mac_hw_scan enter
[  656.147995] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  656.148000] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  656.148010] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=1 prob=0x1 [ACTIVE 33]
[  656.148015] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=2 prob=0x1 [ACTIVE 33]
[  656.148019] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=3 prob=0x1 [ACTIVE 33]
[  656.148023] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=4 prob=0x1 [ACTIVE 33]
[  656.148027] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=5 prob=0x1 [ACTIVE 33]
[  656.148031] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=6 prob=0x1 [ACTIVE 33]
[  656.148035] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=7 prob=0x1 [ACTIVE 33]
[  656.148039] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=8 prob=0x1 [ACTIVE 33]
[  656.148048] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=9 prob=0x1 [ACTIVE 33]
[  656.148051] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=10 prob=0x1 [ACTIVE 33]
[  656.148061] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=11 prob=0x1 [ACTIVE 33]
[  656.148063] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 11
[  656.148067] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  656.148070] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  656.148076] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x44E9, 970 bytes at 233[32]:4
[  656.150333] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  656.150347] ieee80211 phy1: U iwl_mac_hw_scan leave
[  656.151155] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 1 [802.11bg] (TSF: 0x00000000:00E2013C) - 1 (beacon timer 604016324)
[  656.185759] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 1 [802.11bg] (TSF: 0x00000000:00E28808) - 7 elapsed=34508 usec
[  656.187497] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 2 [802.11bg] (TSF: 0x00000000:00E28F0E) - 1 (beacon timer 603980018)
[  656.200249] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 2 [802.11bg] (TSF: 0x00000000:00E2C0B3) - 1 elapsed=12709 usec
[  656.201999] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 3 [802.11bg] (TSF: 0x00000000:00E2C7B8) - 1 (beacon timer 608262216)
[  656.235989] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 3 [802.11bg] (TSF: 0x00000000:00E34BC2) - 6 elapsed=33802 usec
[  656.237803] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 4 [802.11bg] (TSF: 0x00000000:00E352CB) - 1 (beacon timer 608226613)
[  656.248788] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 4 [802.11bg] (TSF: 0x00000000:00E37E74) - 1 elapsed=11177 usec
[  656.250557] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 5 [802.11bg] (TSF: 0x00000000:00E3857A) - 1 (beacon timer 608213638)
[  656.265174] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 5 [802.11bg] (TSF: 0x00000000:00E3BE89) - 1 elapsed=14607 usec
[  656.266966] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 6 [802.11bg] (TSF: 0x00000000:00E3C58F) - 1 (beacon timer 608197233)
[  656.303335] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 6 [802.11bg] (TSF: 0x00000000:00E45386) - 11 elapsed=36343 usec
[  656.305126] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 7 [802.11bg] (TSF: 0x00000000:00E45A8C) - 1 (beacon timer 612455796)
[  656.340117] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 7 [802.11bg] (TSF: 0x00000000:00E4E2F2) - 7 elapsed=34918 usec
[  656.341833] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 8 [802.11bg] (TSF: 0x00000000:00E4E9F8) - 1 (beacon timer 612419080)
[  656.353007] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 8 [802.11bg] (TSF: 0x00000000:00E515A3) - 0 elapsed=11179 usec
[  656.354882] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 9 [802.11bg] (TSF: 0x00000000:00E51CA9) - 1 (beacon timer 612406103)
[  656.367166] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 9 [802.11bg] (TSF: 0x00000000:00E54C9E) - 0 elapsed=12277 usec
[  656.369101] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 10 [802.11bg] (TSF: 0x00000000:00E553A4) - 1 (beacon timer 612392028)
[  656.403159] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 10 [802.11bg] (TSF: 0x00000000:00E5D8BF) - 2 elapsed=34075 usec
[  656.404844] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 11 [802.11bg] (TSF: 0x00000000:00E5DFC7) - 1 (beacon timer 616652857)
[  656.438647] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 11 [802.11bg] (TSF: 0x00000000:00E663DA) - 8 elapsed=33811 usec
[  656.440375] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 11 channels (TSF 0x00E66AF6:00000000) - 1
[  656.440384] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 2.4GHz took 293ms
[  656.440391] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  656.440420] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  656.440449] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04EA, 8 bytes at 234[10]:4
[  656.440464] ieee80211 phy1: U iwl_mac_hw_scan enter
[  656.440470] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  656.440479] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  656.440490] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=36 prob=0x0 [PASSIVE 110]
[  656.440499] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=40 prob=0x0 [PASSIVE 110]
[  656.440507] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=44 prob=0x0 [PASSIVE 110]
[  656.440516] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=48 prob=0x0 [PASSIVE 110]
[  656.440524] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=52 prob=0x0 [PASSIVE 110]
[  656.440532] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=56 prob=0x0 [PASSIVE 110]
[  656.440541] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=60 prob=0x0 [PASSIVE 110]
[  656.440549] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=64 prob=0x0 [PASSIVE 110]
[  656.440557] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=100 prob=0x0 [PASSIVE 110]
[  656.440565] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=104 prob=0x0 [PASSIVE 110]
[  656.440574] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=108 prob=0x0 [PASSIVE 110]
[  656.440582] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=112 prob=0x0 [PASSIVE 110]
[  656.440590] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=116 prob=0x0 [PASSIVE 110]
[  656.440598] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=132 prob=0x0 [PASSIVE 110]
[  656.440606] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=136 prob=0x0 [PASSIVE 110]
[  656.440615] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=140 prob=0x0 [PASSIVE 110]
[  656.440623] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=149 prob=0x0 [PASSIVE 110]
[  656.440631] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=153 prob=0x0 [PASSIVE 110]
[  656.440640] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=157 prob=0x0 [PASSIVE 110]
[  656.440648] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=161 prob=0x0 [PASSIVE 110]
[  656.440656] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=165 prob=0x0 [PASSIVE 110]
[  656.440663] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 21
[  656.440680] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  656.440690] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  656.440697] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  656.440709] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x44EB, 1084 bytes at 235[32]:4
[  656.442625] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  656.442646] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 36 [802.11a] (TSF: 0x00000000:00E673C9) - 1 (beacon timer 616614967)
[  656.442655] ieee80211 phy1: U iwl_mac_hw_scan leave
[  656.555528] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 36 [802.11a] (TSF: 0x00000000:00E82BEB) - 0 elapsed=112674 usec
[  656.557137] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 40 [802.11a] (TSF: 0x00000000:00E8330F) - 1 (beacon timer 620797169)
[  656.668064] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 40 [802.11a] (TSF: 0x00000000:00E9E377) - 2 elapsed=110696 usec
[  656.669679] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 44 [802.11a] (TSF: 0x00000000:00E9EA9C) - 1 (beacon timer 624981348)
[  656.782579] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 44 [802.11a] (TSF: 0x00000000:00EBA2D6) - 0 elapsed=112698 usec
[  656.784281] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 48 [802.11a] (TSF: 0x00000000:00EBA9FB) - 1 (beacon timer 629163525)
[  656.810553] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 48 [802.11a] (TSF: 0x00000000:00EC109A) - 23 elapsed=26271 usec
[  656.812292] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 52 [802.11a] (TSF: 0x00000000:00EC17BE) - 1 (beacon timer 633432130)
[  656.925186] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 52 [802.11a] (TSF: 0x00000000:00EDCFE5) - 0 elapsed=112679 usec
[  656.926816] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 56 [802.11a] (TSF: 0x00000000:00EDD70A) - 1 (beacon timer 637614326)
[  657.027263] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 56 [802.11a] (TSF: 0x00000000:00EF5F53) - 2 elapsed=100425 usec
[  657.029142] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 60 [802.11a] (TSF: 0x00000000:00EF6676) - 1 (beacon timer 641808778)
[  657.141968] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 60 [802.11a] (TSF: 0x00000000:00F11EB0) - 0 elapsed=112698 usec
[  657.143588] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 64 [802.11a] (TSF: 0x00000000:00F125D4) - 1 (beacon timer 645990956)
[  657.170120] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 64 [802.11a] (TSF: 0x00000000:00F18CA7) - 8 elapsed=26323 usec
[  657.171751] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 100 [802.11a] (TSF: 0x00000000:00F193CB) - 1 (beacon timer 645962805)
[  657.284526] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 100 [802.11a] (TSF: 0x00000000:00F34C06) - 0 elapsed=112699 usec
[  657.286259] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 104 [802.11a] (TSF: 0x00000000:00F35327) - 1 (beacon timer 650144985)
[  657.398965] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 104 [802.11a] (TSF: 0x00000000:00F50B66) - 0 elapsed=112703 usec
[  657.400777] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 108 [802.11a] (TSF: 0x00000000:00F51288) - 1 (beacon timer 654327160)
[  657.513584] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 108 [802.11a] (TSF: 0x00000000:00F6CAC6) - 0 elapsed=112702 usec
[  657.515320] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 112 [802.11a] (TSF: 0x00000000:00F6D1E5) - 1 (beacon timer 658509339)
[  657.628233] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 112 [802.11a] (TSF: 0x00000000:00F88A24) - 0 elapsed=112703 usec
[  657.629862] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 116 [802.11a] (TSF: 0x00000000:00F89144) - 1 (beacon timer 666988220)
[  657.742551] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 116 [802.11a] (TSF: 0x00000000:00FA4982) - 0 elapsed=112702 usec
[  657.744374] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 132 [802.11a] (TSF: 0x00000000:00FA50A2) - 1 (beacon timer 671170398)
[  657.857120] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 132 [802.11a] (TSF: 0x00000000:00FC08E6) - 0 elapsed=112708 usec
[  657.858921] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 136 [802.11a] (TSF: 0x00000000:00FC100B) - 1 (beacon timer 675352565)
[  657.971836] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 136 [802.11a] (TSF: 0x00000000:00FDC84A) - 0 elapsed=112703 usec
[  657.973444] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 140 [802.11a] (TSF: 0x00000000:00FDCF6D) - 1 (beacon timer 679534739)
[  658.086242] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 140 [802.11a] (TSF: 0x00000000:00FF87AB) - 0 elapsed=112702 usec
[  658.087962] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 149 [802.11a] (TSF: 0x00000000:00FF8ECA) - 1 (beacon timer 683716918)
[  658.118907] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 149 [802.11a] (TSF: 0x00000000:010006D5) - 6 elapsed=30731 usec
[  658.120524] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 153 [802.11a] (TSF: 0x00000000:01000DF5) - 1 (beacon timer 683684363)
[  658.233243] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 153 [802.11a] (TSF: 0x00000000:0101C635) - 0 elapsed=112704 usec
[  658.235065] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 157 [802.11a] (TSF: 0x00000000:0101CD53) - 1 (beacon timer 687866541)
[  658.347967] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 157 [802.11a] (TSF: 0x00000000:01038595) - 0 elapsed=112706 usec
[  658.349610] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 161 [802.11a] (TSF: 0x00000000:01038CB2) - 1 (beacon timer 696345421)
[  658.395442] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 161 [802.11a] (TSF: 0x00000000:01043EFE) - 9 elapsed=45644 usec
[  658.397056] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 165 [802.11a] (TSF: 0x00000000:01044620) - 1 (beacon timer 696297952)
[  658.509847] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 165 [802.11a] (TSF: 0x00000000:0105FE61) - 0 elapsed=112705 usec
[  658.511575] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 21 channels (TSF 0x0106057E:00000000) - 1
[  658.511584] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 5.2GHz took 2071ms
[  658.511591] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  658.511616] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  658.511634] ieee80211 phy1: U iwl_mac_config enter to channel 4 changed 0x40
[  658.511643] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x240E active=2 idle=1
[  658.511654] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  658.511660] ieee80211 phy1: U iwl_mac_config leave
[  658.511666] phy1: device now idle
[  658.511672] ieee80211 phy1: U iwl_mac_config enter to channel 4 changed 0x100
[  658.511679] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  658.511686] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  658.511692] ieee80211 phy1: U iwl_mac_config leave
[  658.511713] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04EC, 8 bytes at 236[12]:4
[  658.512173] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  658.513824] phy1: device no longer idle - scanning
[  658.513834] ieee80211 phy1: U iwl_mac_config enter to channel 4 changed 0x100
[  658.513841] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  658.513848] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  658.513855] ieee80211 phy1: U iwl_mac_config leave
[  658.513864] ieee80211 phy1: U iwl_mac_hw_scan enter
[  658.513871] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  658.513880] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  658.513893] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=40 prob=0x2 [PASSIVE 110]
[  658.513902] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 1
[  658.513910] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  658.513918] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  658.513931] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x44ED, 844 bytes at 237[32]:4
[  658.515844] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  658.515864] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 40 [802.11a] (TSF: 0x00000000:01061631) - 1 (beacon timer 700475854)
[  658.515888] ieee80211 phy1: U iwl_mac_hw_scan leave
[  658.516024] wlan0: deauthenticating from 00:02:6f:6e:d7:6c by local choice (reason=3)
[  658.516054] ieee80211 phy1: I iwl_mac_tx enter
[  658.516066] ieee80211 phy1: I iwl_mac_tx leave
[  658.602591] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 40 [802.11a] (TSF: 0x00000000:01076837) - 2 elapsed=86534 usec
[  658.604210] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 1 channels (TSF 0x01076F56:00000000) - 1
[  658.604220] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 5.2GHz took 90ms
[  658.604227] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  658.604247] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  658.604285] ieee80211 phy1: U iwl_mac_config enter to channel 4 changed 0x40
[  658.604295] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x240E active=2 idle=1
[  658.604307] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  658.604313] ieee80211 phy1: U iwl_mac_config leave
[  658.604336] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04EE, 8 bytes at 238[14]:4
[  658.604367] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x40
[  658.604377] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x240E active=2 idle=1
[  658.604386] ieee80211 phy1: U iwl_set_rxon_channel Staging channel set to 40 [1]
[  658.604398] ieee80211 phy1: U iwl_commit_rxon Sending RXON
[  658.604401] * without RXON_FILTER_ASSOC_MSK
[  658.604403] * channel = 40
[  658.604405] * bssid = 00:02:6f:6e:d7:68
[  658.604412] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_RXON
[  658.604419] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_RXON
[  658.604429] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_RXON (#10), seq: 0x04EF, 54 bytes at 239[15]:4
[  658.604706] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  658.606489] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_RXON
[  658.606509] ieee80211 phy1: U iwl_commit_rxon Return from !new_assoc RXON.
[  658.606516] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode stations in driver
[  658.606524] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode active for station 15
[  658.606532] ieee80211 phy1: U iwl_restore_stations Restoring all known stations ... start.
[  658.606540] ieee80211 phy1: U iwl_restore_stations Restoring sta ff:ff:ff:ff:ff:ff
[  658.606548] ieee80211 phy1: U iwl_send_add_sta Adding sta 15 (ff:ff:ff:ff:ff:ff) synchronously
[  658.606556] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_ADD_STA
[  658.606563] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_ADD_STA
[  658.606574] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x04F0, 96 bytes at 240[16]:4
[  658.606617] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_ADD_STA
[  658.606633] ieee80211 phy1: U iwl_process_add_sta_resp Processing response for adding station 15
[  658.606640] ieee80211 phy1: U iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  658.606647] ieee80211 phy1: U iwl_sta_ucode_activate Added STA id 15 addr ff:ff:ff:ff:ff:ff to uCode
[  658.606655] ieee80211 phy1: U iwl_process_add_sta_resp Added station id 15 addr ff:ff:ff:ff:ff:ff
[  658.606663] ieee80211 phy1: U iwl_process_add_sta_resp Added station according to cmd buffer ff:ff:ff:ff:ff:ff
[  658.606674] ieee80211 phy1: U is_lq_table_valid Channel 40 is not an HT channel
[  658.606681] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_TX_LINK_QUALITY_CMD
[  658.606688] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  658.606699] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x04F1, 92 bytes at 241[17]:4
[  658.606748] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  658.606768] ieee80211 phy1: U iwl_send_lq_cmd init LQ command complete, clearing sta addition status for sta 15
[  658.606776] ieee80211 phy1: U iwl_restore_stations Restoring all known stations .... complete.
[  658.606784] ieee80211 phy1: U iwl_print_rx_config_cmd RX CONFIG:
[  658.606792] iwl data: 00000000: 00 16 eb 05 61 ea 00 00 00 02 6f 6e d7 68 00 00  ....a.....on.h..
[  658.606799] iwl data: 00000010: 00 16 eb 05 61 ea 00 00 03 00 0e 24 15 03 00 00  ....a......$....
[  658.606805] iwl data: 00000020: 10 80 00 00 04 00 00 00 28 00 ff ff ff 00 00 00  ........(.......
[  658.606812] iwl data: 00000030: 00 00                                            ..
[  658.606818] ieee80211 phy1: U iwl_print_rx_config_cmd u16 channel: 0x28
[  658.606825] ieee80211 phy1: U iwl_print_rx_config_cmd u32 flags: 0x00008010
[  658.606832] ieee80211 phy1: U iwl_print_rx_config_cmd u32 filter_flags: 0x00000004
[  658.606838] ieee80211 phy1: U iwl_print_rx_config_cmd u8 dev_type: 0x3
[  658.606844] ieee80211 phy1: U iwl_print_rx_config_cmd u8 ofdm_basic_rates: 0x15
[  658.606851] ieee80211 phy1: U iwl_print_rx_config_cmd u8 cck_basic_rates: 0x03
[  658.606857] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] node_addr: 00:16:eb:05:61:ea
[  658.606864] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] bssid_addr: 00:02:6f:6e:d7:68
[  658.606871] ieee80211 phy1: U iwl_print_rx_config_cmd u16 assoc_id: 0x0
[  658.606882] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04F2, 8 bytes at 242[18]:4
[  658.606890] ieee80211 phy1: U iwl_mac_config leave
[  658.606900] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 1)
[  658.606919] ieee80211 phy1: I iwl_mac_tx enter
[  658.606931] ieee80211 phy1: I iwl_mac_tx leave
[  658.607110] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  658.806059] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 2)
[  658.806088] ieee80211 phy1: I iwl_mac_tx enter
[  658.806105] ieee80211 phy1: I iwl_mac_tx leave
[  658.807290] wlan0: authenticated
[  658.807317] phy1: device now idle
[  658.807327] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x100
[  658.807335] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  658.807342] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  658.807348] ieee80211 phy1: U iwl_mac_config leave
[  658.807355] ieee80211 phy1: U iwl_mac_config enter to channel 4 changed 0x40
[  658.807364] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x240E active=2 idle=1
[  658.807372] ieee80211 phy1: U iwl_set_rxon_channel Staging channel set to 4 [0]
[  658.807384] ieee80211 phy1: U iwl_commit_rxon Sending RXON
[  658.807386] * without RXON_FILTER_ASSOC_MSK
[  658.807389] * channel = 4
[  658.807390] * bssid = 00:02:6f:6e:d7:68
[  658.807398] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_RXON
[  658.807405] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_RXON
[  658.807416] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_RXON (#10), seq: 0x04F3, 54 bytes at 243[19]:4
[  658.810399] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_RXON
[  658.810446] ieee80211 phy1: U iwl_commit_rxon Return from !new_assoc RXON.
[  658.810454] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode stations in driver
[  658.810462] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode active for station 15
[  658.810469] ieee80211 phy1: U iwl_restore_stations Restoring all known stations ... start.
[  658.810477] ieee80211 phy1: U iwl_restore_stations Restoring sta ff:ff:ff:ff:ff:ff
[  658.810486] ieee80211 phy1: U iwl_send_add_sta Adding sta 15 (ff:ff:ff:ff:ff:ff) synchronously
[  658.810494] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_ADD_STA
[  658.810501] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_ADD_STA
[  658.810512] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x04F4, 96 bytes at 244[20]:4
[  658.810568] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_ADD_STA
[  658.810586] ieee80211 phy1: U iwl_process_add_sta_resp Processing response for adding station 15
[  658.810592] ieee80211 phy1: U iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  658.810600] ieee80211 phy1: U iwl_sta_ucode_activate Added STA id 15 addr ff:ff:ff:ff:ff:ff to uCode
[  658.810608] ieee80211 phy1: U iwl_process_add_sta_resp Added station id 15 addr ff:ff:ff:ff:ff:ff
[  658.810615] ieee80211 phy1: U iwl_process_add_sta_resp Added station according to cmd buffer ff:ff:ff:ff:ff:ff
[  658.810629] ieee80211 phy1: U is_lq_table_valid Channel 4 is not an HT channel
[  658.810636] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_TX_LINK_QUALITY_CMD
[  658.810643] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  658.810654] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x04F5, 92 bytes at 245[21]:4
[  658.810717] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  658.810745] ieee80211 phy1: U iwl_send_lq_cmd init LQ command complete, clearing sta addition status for sta 15
[  658.810754] ieee80211 phy1: U iwl_restore_stations Restoring all known stations .... complete.
[  658.810761] ieee80211 phy1: U iwl_print_rx_config_cmd RX CONFIG:
[  658.810770] iwl data: 00000000: 00 16 eb 05 61 ea 00 00 00 02 6f 6e d7 68 00 00  ....a.....on.h..
[  658.810777] iwl data: 00000010: 00 16 eb 05 61 ea 00 00 03 00 0e 24 15 03 00 00  ....a......$....
[  658.810784] iwl data: 00000020: 15 80 00 00 04 00 00 00 04 00 ff ff ff 00 00 00  ................
[  658.810790] iwl data: 00000030: 00 00                                            ..
[  658.810797] ieee80211 phy1: U iwl_print_rx_config_cmd u16 channel: 0x4
[  658.810803] ieee80211 phy1: U iwl_print_rx_config_cmd u32 flags: 0x00008015
[  658.810810] ieee80211 phy1: U iwl_print_rx_config_cmd u32 filter_flags: 0x00000004
[  658.810816] ieee80211 phy1: U iwl_print_rx_config_cmd u8 dev_type: 0x3
[  658.810822] ieee80211 phy1: U iwl_print_rx_config_cmd u8 ofdm_basic_rates: 0x15
[  658.810829] ieee80211 phy1: U iwl_print_rx_config_cmd u8 cck_basic_rates: 0x03
[  658.810836] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] node_addr: 00:16:eb:05:61:ea
[  658.810842] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] bssid_addr: 00:02:6f:6e:d7:68
[  658.810849] ieee80211 phy1: U iwl_print_rx_config_cmd u16 assoc_id: 0x0
[  658.810862] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04F6, 8 bytes at 246[22]:4
[  658.810871] ieee80211 phy1: U iwl_mac_config leave
[  658.810903] phy1: device no longer idle - working
[  658.810910] ieee80211 phy1: U iwl_mac_config enter to channel 4 changed 0x100
[  658.810917] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  658.810925] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  658.810931] ieee80211 phy1: U iwl_mac_config leave
[  658.810939] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x40
[  658.810947] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x240E active=2 idle=1
[  658.810956] ieee80211 phy1: U iwl_set_rxon_channel Staging channel set to 40 [1]
[  658.810967] ieee80211 phy1: U iwl_commit_rxon Sending RXON
[  658.810970] * without RXON_FILTER_ASSOC_MSK
[  658.810972] * channel = 40
[  658.810974] * bssid = 00:02:6f:6e:d7:68
[  658.810980] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_RXON
[  658.810987] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_RXON
[  658.810997] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_RXON (#10), seq: 0x04F7, 54 bytes at 247[23]:4
[  658.811097] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  658.813047] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_RXON
[  658.813066] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  658.813075] ieee80211 phy1: U iwl_commit_rxon Return from !new_assoc RXON.
[  658.813083] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode stations in driver
[  658.813090] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode active for station 15
[  658.813097] ieee80211 phy1: U iwl_restore_stations Restoring all known stations ... start.
[  658.813104] ieee80211 phy1: U iwl_restore_stations Restoring sta ff:ff:ff:ff:ff:ff
[  658.813112] ieee80211 phy1: U iwl_send_add_sta Adding sta 15 (ff:ff:ff:ff:ff:ff) synchronously
[  658.813120] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_ADD_STA
[  658.813127] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_ADD_STA
[  658.813137] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x04F8, 96 bytes at 248[24]:4
[  658.815049] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_ADD_STA
[  658.815073] ieee80211 phy1: U iwl_process_add_sta_resp Processing response for adding station 15
[  658.815080] ieee80211 phy1: U iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  658.815087] ieee80211 phy1: U iwl_sta_ucode_activate Added STA id 15 addr ff:ff:ff:ff:ff:ff to uCode
[  658.815095] ieee80211 phy1: U iwl_process_add_sta_resp Added station id 15 addr ff:ff:ff:ff:ff:ff
[  658.815103] ieee80211 phy1: U iwl_process_add_sta_resp Added station according to cmd buffer ff:ff:ff:ff:ff:ff
[  658.815113] ieee80211 phy1: U is_lq_table_valid Channel 40 is not an HT channel
[  658.815120] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_TX_LINK_QUALITY_CMD
[  658.815128] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  658.815138] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x04F9, 92 bytes at 249[25]:4
[  658.815216] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  658.815237] ieee80211 phy1: U iwl_send_lq_cmd init LQ command complete, clearing sta addition status for sta 15
[  658.815245] ieee80211 phy1: U iwl_restore_stations Restoring all known stations .... complete.
[  658.815269] ieee80211 phy1: U iwl_print_rx_config_cmd RX CONFIG:
[  658.815276] iwl data: 00000000: 00 16 eb 05 61 ea 00 00 00 02 6f 6e d7 68 00 00  ....a.....on.h..
[  658.815286] iwl data: 00000010: 00 16 eb 05 61 ea 00 00 03 00 0e 24 15 03 00 00  ....a......$....
[  658.815295] iwl data: 00000020: 10 80 00 00 04 00 00 00 28 00 ff ff ff 00 00 00  ........(.......
[  658.815303] iwl data: 00000030: 00 00                                            ..
[  658.815312] ieee80211 phy1: U iwl_print_rx_config_cmd u16 channel: 0x28
[  658.815319] ieee80211 phy1: U iwl_print_rx_config_cmd u32 flags: 0x00008010
[  658.815327] ieee80211 phy1: U iwl_print_rx_config_cmd u32 filter_flags: 0x00000004
[  658.815335] ieee80211 phy1: U iwl_print_rx_config_cmd u8 dev_type: 0x3
[  658.815342] ieee80211 phy1: U iwl_print_rx_config_cmd u8 ofdm_basic_rates: 0x15
[  658.815350] ieee80211 phy1: U iwl_print_rx_config_cmd u8 cck_basic_rates: 0x03
[  658.815358] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] node_addr: 00:16:eb:05:61:ea
[  658.815366] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] bssid_addr: 00:02:6f:6e:d7:68
[  658.815374] ieee80211 phy1: U iwl_print_rx_config_cmd u16 assoc_id: 0x0
[  658.815388] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x04FA, 8 bytes at 250[26]:4
[  658.815398] ieee80211 phy1: U iwl_mac_config leave
[  658.815411] wlan0: associate with 00:02:6f:6e:d7:6c (try 1)
[  658.815437] ieee80211 phy1: I iwl_mac_tx enter
[  658.815450] ieee80211 phy1: I iwl_mac_tx leave
[  658.815620] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  659.015287] wlan0: associate with 00:02:6f:6e:d7:6c (try 2)
[  659.015316] ieee80211 phy1: I iwl_mac_tx enter
[  659.015332] ieee80211 phy1: I iwl_mac_tx leave
[  659.017111] wlan0: RX AssocResp from 00:02:6f:6e:d7:6c (capab=0x831 status=0 aid=2)
[  659.017119] wlan0: associated
[  659.017133] phy1: Allocated STA 00:02:6f:6e:d7:6c
[  659.017146] ieee80211 phy1: U iwlagn_mac_sta_add received request to add station 00:02:6f:6e:d7:6c
[  659.017153] ieee80211 phy1: U iwlagn_mac_sta_add proceeding to add station 00:02:6f:6e:d7:6c
[  659.017162] ieee80211 phy1: U iwl_prep_station Add STA to driver ID 0: 00:02:6f:6e:d7:6c
[  659.017169] ieee80211 phy1: U iwl_set_ht_add_station spatial multiplexing power save mode: disabled
[  659.017178] ieee80211 phy1: U iwl_send_add_sta Adding sta 0 (00:02:6f:6e:d7:6c) synchronously
[  659.017187] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_ADD_STA
[  659.017194] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_ADD_STA
[  659.017206] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x04FB, 96 bytes at 251[27]:4
[  659.017284] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_ADD_STA
[  659.017320] ieee80211 phy1: U iwl_process_add_sta_resp Processing response for adding station 0
[  659.017329] ieee80211 phy1: U iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  659.017338] ieee80211 phy1: U iwl_sta_ucode_activate Added STA id 0 addr 00:02:6f:6e:d7:6c to uCode
[  659.017349] ieee80211 phy1: U iwl_process_add_sta_resp Added station id 0 addr 00:02:6f:6e:d7:6c
[  659.017358] ieee80211 phy1: U iwl_process_add_sta_resp Added station according to cmd buffer 00:02:6f:6e:d7:6c
[  659.017370] ieee80211 phy1: U iwlagn_mac_sta_add Initializing rate scaling for station 00:02:6f:6e:d7:6c
[  659.017386] ieee80211 phy1: U is_lq_table_valid Channel 40 is not an HT channel
[  659.017395] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_TX_LINK_QUALITY_CMD
[  659.017404] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.017417] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x04FC, 92 bytes at 252[28]:4
[  659.017470] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.017490] ieee80211 phy1: U iwl_send_lq_cmd init LQ command complete, clearing sta addition status for sta 0
[  659.017889] phy1: Inserted STA 00:02:6f:6e:d7:6c
[  659.017899] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x42
[  659.017908] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x280E active=2 idle=2
[  659.017918] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x280E active=2 idle=2
[  659.017926] ieee80211 phy1: U iwl_set_rxon_ht rxon flags 0x4408010 operation mode :0x0 extension channel offset 0x3
[  659.017938] ieee80211 phy1: U iwl_commit_rxon Sending RXON
[  659.017941] * without RXON_FILTER_ASSOC_MSK
[  659.017943] * channel = 40
[  659.017945] * bssid = 00:02:6f:6e:d7:68
[  659.017951] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_RXON
[  659.017958] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_RXON
[  659.017968] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_RXON (#10), seq: 0x04FD, 54 bytes at 253[29]:4
[  659.019459] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_RXON
[  659.019480] ieee80211 phy1: I iwl_tt_handler Queueing thermal throttling work.
[  659.019500] ieee80211 phy1: U iwl_commit_rxon Return from !new_assoc RXON.
[  659.019507] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode stations in driver
[  659.019514] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode active for station 0
[  659.019521] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode active for station 15
[  659.019528] ieee80211 phy1: U iwl_restore_stations Restoring all known stations ... start.
[  659.019536] ieee80211 phy1: U iwl_restore_stations Restoring sta 00:02:6f:6e:d7:6c
[  659.019542] ieee80211 phy1: U iwl_restore_stations Restoring sta ff:ff:ff:ff:ff:ff
[  659.019550] ieee80211 phy1: U iwl_send_add_sta Adding sta 0 (00:02:6f:6e:d7:6c) synchronously
[  659.019557] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_ADD_STA
[  659.019564] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_ADD_STA
[  659.019575] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x04FE, 96 bytes at 254[30]:4
[  659.021458] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_ADD_STA
[  659.021486] ieee80211 phy1: U iwl_process_add_sta_resp Processing response for adding station 0
[  659.021493] ieee80211 phy1: U iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  659.021501] ieee80211 phy1: U iwl_sta_ucode_activate Added STA id 0 addr 00:02:6f:6e:d7:6c to uCode
[  659.021509] ieee80211 phy1: U iwl_process_add_sta_resp Added station id 0 addr 00:02:6f:6e:d7:6c
[  659.021516] ieee80211 phy1: U iwl_process_add_sta_resp Added station according to cmd buffer 00:02:6f:6e:d7:6c
[  659.021529] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_TX_LINK_QUALITY_CMD
[  659.021536] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.021548] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x04FF, 92 bytes at 255[31]:4
[  659.021623] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.021647] ieee80211 phy1: U iwl_send_lq_cmd init LQ command complete, clearing sta addition status for sta 0
[  659.021658] ieee80211 phy1: U iwl_send_add_sta Adding sta 15 (ff:ff:ff:ff:ff:ff) synchronously
[  659.021665] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_ADD_STA
[  659.021672] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_ADD_STA
[  659.021682] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x0400, 96 bytes at 0[0]:4
[  659.021754] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_ADD_STA
[  659.021772] ieee80211 phy1: U iwl_process_add_sta_resp Processing response for adding station 15
[  659.021779] ieee80211 phy1: U iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  659.021786] ieee80211 phy1: U iwl_sta_ucode_activate Added STA id 15 addr ff:ff:ff:ff:ff:ff to uCode
[  659.021794] ieee80211 phy1: U iwl_process_add_sta_resp Added station id 15 addr ff:ff:ff:ff:ff:ff
[  659.021801] ieee80211 phy1: U iwl_process_add_sta_resp Added station according to cmd buffer ff:ff:ff:ff:ff:ff
[  659.021811] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_TX_LINK_QUALITY_CMD
[  659.021818] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.021828] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x0401, 92 bytes at 1[1]:4
[  659.021883] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.021901] ieee80211 phy1: U iwl_send_lq_cmd init LQ command complete, clearing sta addition status for sta 15
[  659.021909] ieee80211 phy1: U iwl_restore_stations Restoring all known stations .... complete.
[  659.021917] ieee80211 phy1: U iwl_print_rx_config_cmd RX CONFIG:
[  659.021925] iwl data: 00000000: 00 16 eb 05 61 ea 00 00 00 02 6f 6e d7 68 00 00  ....a.....on.h..
[  659.021932] iwl data: 00000010: 00 16 eb 05 61 ea 00 00 03 00 0e 28 15 03 00 00  ....a......(....
[  659.021939] iwl data: 00000020: 10 80 40 04 04 00 00 00 28 00 ff ff ff 00 00 00  ..@.....(.......
[  659.021945] iwl data: 00000030: 00 00                                            ..
[  659.021952] ieee80211 phy1: U iwl_print_rx_config_cmd u16 channel: 0x28
[  659.021958] ieee80211 phy1: U iwl_print_rx_config_cmd u32 flags: 0x04408010
[  659.021964] ieee80211 phy1: U iwl_print_rx_config_cmd u32 filter_flags: 0x00000004
[  659.021971] ieee80211 phy1: U iwl_print_rx_config_cmd u8 dev_type: 0x3
[  659.021977] ieee80211 phy1: U iwl_print_rx_config_cmd u8 ofdm_basic_rates: 0x15
[  659.021983] ieee80211 phy1: U iwl_print_rx_config_cmd u8 cck_basic_rates: 0x03
[  659.021990] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] node_addr: 00:16:eb:05:61:ea
[  659.021997] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] bssid_addr: 00:02:6f:6e:d7:68
[  659.022026] ieee80211 phy1: U iwl_print_rx_config_cmd u16 assoc_id: 0x0
[  659.022040] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x0402, 8 bytes at 2[2]:4
[  659.022050] ieee80211 phy1: U iwl_mac_config leave
[  659.022064] ieee80211 phy1: U iwl_bss_info_changed changes = 0xFD
[  659.022073] ieee80211 phy1: U iwl_bss_info_changed BSSID 00:02:6f:6e:d7:6c
[  659.022081] ieee80211 phy1: U iwl_bss_info_changed ERP_PREAMBLE 1
[  659.022087] ieee80211 phy1: U iwl_ht_conf enter:
[  659.022094] ieee80211 phy1: U iwl_ht_conf leave
[  659.022102] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x280E active=2 idle=2
[  659.022110] ieee80211 phy1: U iwl_bss_info_changed ASSOC 1
[  659.022121] ieee80211 phy1: U iwl_commit_rxon Sending RXON
[  659.022124] * without RXON_FILTER_ASSOC_MSK
[  659.022127] * channel = 40
[  659.022129] * bssid = 00:02:6f:6e:d7:6c
[  659.022137] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_RXON
[  659.022146] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_RXON
[  659.022157] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_RXON (#10), seq: 0x0403, 54 bytes at 3[3]:4
[  659.022275] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  659.022414] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_RXON
[  659.022432] ieee80211 phy1: U iwl_commit_rxon Return from !new_assoc RXON.
[  659.022439] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode stations in driver
[  659.022447] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode active for station 0
[  659.022455] ieee80211 phy1: U iwl_clear_ucode_stations Clearing ucode active for station 15
[  659.022464] ieee80211 phy1: U iwl_restore_stations Restoring all known stations ... start.
[  659.022472] ieee80211 phy1: U iwl_restore_stations Restoring sta 00:02:6f:6e:d7:6c
[  659.022480] ieee80211 phy1: U iwl_restore_stations Restoring sta ff:ff:ff:ff:ff:ff
[  659.022489] ieee80211 phy1: U iwl_send_add_sta Adding sta 0 (00:02:6f:6e:d7:6c) synchronously
[  659.022498] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_ADD_STA
[  659.022506] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_ADD_STA
[  659.022517] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x0404, 96 bytes at 4[4]:4
[  659.022566] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_ADD_STA
[  659.022584] ieee80211 phy1: U iwl_process_add_sta_resp Processing response for adding station 0
[  659.022592] ieee80211 phy1: U iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  659.022601] ieee80211 phy1: U iwl_sta_ucode_activate Added STA id 0 addr 00:02:6f:6e:d7:6c to uCode
[  659.022610] ieee80211 phy1: U iwl_process_add_sta_resp Added station id 0 addr 00:02:6f:6e:d7:6c
[  659.022619] ieee80211 phy1: U iwl_process_add_sta_resp Added station according to cmd buffer 00:02:6f:6e:d7:6c
[  659.022630] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_TX_LINK_QUALITY_CMD
[  659.022639] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.022651] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x0405, 92 bytes at 5[5]:4
[  659.022695] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.022718] ieee80211 phy1: U iwl_send_lq_cmd init LQ command complete, clearing sta addition status for sta 0
[  659.022729] ieee80211 phy1: U iwl_send_add_sta Adding sta 15 (ff:ff:ff:ff:ff:ff) synchronously
[  659.022737] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_ADD_STA
[  659.022747] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_ADD_STA
[  659.022758] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x0406, 96 bytes at 6[6]:4
[  659.022806] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_ADD_STA
[  659.022824] ieee80211 phy1: U iwl_process_add_sta_resp Processing response for adding station 15
[  659.022832] ieee80211 phy1: U iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  659.022841] ieee80211 phy1: U iwl_sta_ucode_activate Added STA id 15 addr ff:ff:ff:ff:ff:ff to uCode
[  659.022851] ieee80211 phy1: U iwl_process_add_sta_resp Added station id 15 addr ff:ff:ff:ff:ff:ff
[  659.022860] ieee80211 phy1: U iwl_process_add_sta_resp Added station according to cmd buffer ff:ff:ff:ff:ff:ff
[  659.022871] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_TX_LINK_QUALITY_CMD
[  659.022880] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.022892] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x0407, 92 bytes at 7[7]:4
[  659.022935] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_TX_LINK_QUALITY_CMD
[  659.022957] ieee80211 phy1: U iwl_send_lq_cmd init LQ command complete, clearing sta addition status for sta 15
[  659.022966] ieee80211 phy1: U iwl_restore_stations Restoring all known stations .... complete.
[  659.022975] ieee80211 phy1: U iwl_print_rx_config_cmd RX CONFIG:
[  659.022983] iwl data: 00000000: 00 16 eb 05 61 ea 00 00 00 02 6f 6e d7 6c 00 00  ....a.....on.l..
[  659.022991] iwl data: 00000010: 00 16 eb 05 61 ea 00 00 03 00 0e 28 15 03 00 00  ....a......(....
[  659.022999] iwl data: 00000020: 30 80 40 04 04 00 00 00 28 00 ff ff ff 00 00 00  0.@.....(.......
[  659.023021] iwl data: 00000030: 00 00                                            ..
[  659.023029] ieee80211 phy1: U iwl_print_rx_config_cmd u16 channel: 0x28
[  659.023037] ieee80211 phy1: U iwl_print_rx_config_cmd u32 flags: 0x04408030
[  659.023044] ieee80211 phy1: U iwl_print_rx_config_cmd u32 filter_flags: 0x00000004
[  659.023052] ieee80211 phy1: U iwl_print_rx_config_cmd u8 dev_type: 0x3
[  659.023059] ieee80211 phy1: U iwl_print_rx_config_cmd u8 ofdm_basic_rates: 0x15
[  659.023067] ieee80211 phy1: U iwl_print_rx_config_cmd u8 cck_basic_rates: 0x03
[  659.023074] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] node_addr: 00:16:eb:05:61:ea
[  659.023082] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] bssid_addr: 00:02:6f:6e:d7:6c
[  659.023090] ieee80211 phy1: U iwl_print_rx_config_cmd u16 assoc_id: 0x0
[  659.023101] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x0408, 8 bytes at 8[8]:4
[  659.023113] ieee80211 phy1: U iwl_setup_rxon_timing beacon interval 100 beacon timer 101046 beacon tim 0
[  659.023122] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_RXON_TIMING
[  659.023131] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_RXON_TIMING
[  659.023142] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_RXON_TIMING (#14), seq: 0x0409, 24 bytes at 9[9]:4
[  659.023328] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  659.023352] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_RXON_TIMING
[  659.023408] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x280E active=2 idle=2
[  659.023416] ieee80211 phy1: U iwl_set_rxon_ht rxon flags 0x4408030 operation mode :0x0 extension channel offset 0x3
[  659.023424] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x280E active=2 idle=2
[  659.023431] ieee80211 phy1: U iwl_post_associate assoc id 2 beacon interval 100
[  659.023440] ieee80211 phy1: U iwl_commit_rxon Sending RXON
[  659.023443] * with RXON_FILTER_ASSOC_MSK
[  659.023445] * channel = 40
[  659.023447] * bssid = 00:02:6f:6e:d7:6c
[  659.023454] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_RXON
[  659.023461] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_RXON
[  659.023470] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_RXON (#10), seq: 0x040A, 54 bytes at 10[10]:4
[  659.023685] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_RXON
[  659.023727] ieee80211 phy1: U iwl_print_rx_config_cmd RX CONFIG:
[  659.023737] iwl data: 00000000: 00 16 eb 05 61 ea 00 00 00 02 6f 6e d7 6c 00 00  ....a.....on.l..
[  659.023746] iwl data: 00000010: 00 16 eb 05 61 ea 00 00 03 00 0e 28 15 03 02 00  ....a......(....
[  659.023754] iwl data: 00000020: 30 80 40 44 24 00 00 00 28 00 ff ff ff 00 00 00  0.@D$...(.......
[  659.023762] iwl data: 00000030: 00 00                                            ..
[  659.023770] ieee80211 phy1: U iwl_print_rx_config_cmd u16 channel: 0x28
[  659.023778] ieee80211 phy1: U iwl_print_rx_config_cmd u32 flags: 0x44408030
[  659.023785] ieee80211 phy1: U iwl_print_rx_config_cmd u32 filter_flags: 0x00000024
[  659.023793] ieee80211 phy1: U iwl_print_rx_config_cmd u8 dev_type: 0x3
[  659.023800] ieee80211 phy1: U iwl_print_rx_config_cmd u8 ofdm_basic_rates: 0x15
[  659.023808] ieee80211 phy1: U iwl_print_rx_config_cmd u8 cck_basic_rates: 0x03
[  659.023815] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] node_addr: 00:16:eb:05:61:ea
[  659.023824] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] bssid_addr: 00:02:6f:6e:d7:6c
[  659.023832] ieee80211 phy1: U iwl_print_rx_config_cmd u16 assoc_id: 0x2
[  659.023843] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x040B, 8 bytes at 11[11]:4
[  659.023855] ieee80211 phy1: U iwl_post_associate Associated as 2 to: 00:02:6f:6e:d7:6c
[  659.023864] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  659.023873] ieee80211 phy1: U iwl_bss_info_changed Changes (0xfd) while associated
[  659.023881] ieee80211 phy1: U iwlagn_send_rxon_assoc Using current RXON_ASSOC.  Not resending.
[  659.023893] ieee80211 phy1: U iwl_bss_info_changed leave
[  659.025891] ieee80211 phy1: I iwl_mac_tx enter
[  659.025906] ieee80211 phy1: I iwl_mac_tx leave
[  659.026595] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  659.232980] ieee80211 phy1: I iwl_mac_tx enter
[  659.232998] ieee80211 phy1: I iwl_mac_tx leave
[  659.235022] ieee80211 phy1: I iwl_mac_tx enter
[  659.235034] ieee80211 phy1: I iwl_mac_tx leave
[  659.235343] ieee80211 phy1: I iwl_send_add_sta Adding sta 0 (00:02:6f:6e:d7:6c) asynchronously
[  659.235358] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x040C, 96 bytes at 12[12]:4
[  659.235376] ieee80211 phy1: I iwl_mac_tx enter
[  659.235386] ieee80211 phy1: I iwl_mac_tx leave
[  659.235664] ieee80211 phy1: I iwl_process_add_sta_resp Processing response for adding station 0
[  659.235672] ieee80211 phy1: I iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  659.235681] ieee80211 phy1: I iwl_sta_ucode_activate STA id 0 addr 00:02:6f:6e:d7:6c already present in uCode (according to driver)
[  659.235690] ieee80211 phy1: I iwl_process_add_sta_resp Modified station id 0 addr 00:02:6f:6e:d7:6c
[  659.235698] ieee80211 phy1: I iwl_process_add_sta_resp Modified station according to cmd buffer 00:02:6f:6e:d8:6c
[  659.240028] ieee80211 phy1: U iwl_mac_set_key enter
[  659.240041] ieee80211 phy1: U iwl_send_add_sta Adding sta 0 (00:02:6f:6e:d7:6c) asynchronously
[  659.240055] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x040D, 96 bytes at 13[13]:4
[  659.240065] ieee80211 phy1: U iwl_mac_set_key enable hwcrypto key
[  659.240071] ieee80211 phy1: U iwl_mac_set_key leave
[  659.240104] ieee80211 phy1: I iwl_process_add_sta_resp Processing response for adding station 0
[  659.240111] ieee80211 phy1: I iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  659.240119] ieee80211 phy1: I iwl_sta_ucode_activate STA id 0 addr 00:02:6f:6e:d7:6c already present in uCode (according to driver)
[  659.240128] ieee80211 phy1: I iwl_process_add_sta_resp Modified station id 0 addr 00:02:6f:6e:d7:6c
[  659.240136] ieee80211 phy1: I iwl_process_add_sta_resp Modified station according to cmd buffer 00:02:6f:6e:d8:6c
[  659.240189] ieee80211 phy1: U iwl_mac_set_key enter
[  659.240196] ieee80211 phy1: U iwl_send_add_sta Adding sta 15 (ff:ff:ff:ff:ff:ff) asynchronously
[  659.240207] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x040E, 96 bytes at 14[14]:4
[  659.240215] ieee80211 phy1: U iwl_mac_set_key enable hwcrypto key
[  659.240221] ieee80211 phy1: U iwl_mac_set_key leave
[  659.240269] ieee80211 phy1: I iwl_process_add_sta_resp Processing response for adding station 15
[  659.240278] ieee80211 phy1: I iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  659.240286] ieee80211 phy1: I iwl_sta_ucode_activate STA id 15 addr ff:ff:ff:ff:ff:ff already present in uCode (according to driver)
[  659.240296] ieee80211 phy1: I iwl_process_add_sta_resp Modified station id 15 addr ff:ff:ff:ff:ff:ff
[  659.240303] ieee80211 phy1: I iwl_process_add_sta_resp Modified station according to cmd buffer ff:ff:ff:ff:00:ff
[  659.294692] phy1: WMM queue=2 aci=0 acm=0 aifs=3 cWmin=15 cWmax=1023 txop=0 uapsd=0
[  659.294702] ieee80211 phy1: U iwl_mac_conf_tx enter
[  659.294708] ieee80211 phy1: U iwl_mac_conf_tx leave
[  659.294717] phy1: WMM queue=3 aci=1 acm=0 aifs=7 cWmin=15 cWmax=1023 txop=0 uapsd=0
[  659.294723] ieee80211 phy1: U iwl_mac_conf_tx enter
[  659.294728] ieee80211 phy1: U iwl_mac_conf_tx leave
[  659.294736] phy1: WMM queue=1 aci=2 acm=0 aifs=2 cWmin=7 cWmax=15 txop=94 uapsd=0
[  659.294743] ieee80211 phy1: U iwl_mac_conf_tx enter
[  659.294748] ieee80211 phy1: U iwl_mac_conf_tx leave
[  659.294756] phy1: WMM queue=0 aci=3 acm=0 aifs=2 cWmin=3 cWmax=7 txop=47 uapsd=0
[  659.294762] ieee80211 phy1: U iwl_mac_conf_tx enter
[  659.294767] ieee80211 phy1: U iwl_mac_conf_tx leave
[  659.294774] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x200
[  659.294788] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_QOS_PARAM (#13), seq: 0x040F, 40 bytes at 15[15]:4
[  659.294798] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  659.294804] ieee80211 phy1: U iwl_mac_config leave
[  659.294824] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_QOS_PARAM (0x00000000)
[  660.113842] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_LEDS_CMD (#48), seq: 0x0410, 12 bytes at 16[16]:4
[  660.113903] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_LEDS_CMD (0x00000000)
[  660.179615] ieee80211 phy1: I iwl_mac_tx enter
[  660.179635] ieee80211 phy1: I iwl_mac_tx leave
[  660.225667] ieee80211 phy1: U iwl_configure_filter Enter: changed: 0x0, total: 0x80000000
[  660.225680] ieee80211 phy1: U iwlagn_send_rxon_assoc Using current RXON_ASSOC.  Not resending.
[  660.225688] ieee80211 phy1: U iwl_print_rx_config_cmd RX CONFIG:
[  660.225696] iwl data: 00000000: 00 16 eb 05 61 ea 00 00 00 02 6f 6e d7 6c 00 00  ....a.....on.l..
[  660.225704] iwl data: 00000010: 00 16 eb 05 61 ea 00 00 03 00 0e 28 15 03 02 00  ....a......(....
[  660.225711] iwl data: 00000020: 30 80 40 44 24 00 00 00 28 00 ff ff ff 00 00 00  0.@D$...(.......
[  660.225717] iwl data: 00000030: 00 00                                            ..
[  660.225724] ieee80211 phy1: U iwl_print_rx_config_cmd u16 channel: 0x28
[  660.225730] ieee80211 phy1: U iwl_print_rx_config_cmd u32 flags: 0x44408030
[  660.225737] ieee80211 phy1: U iwl_print_rx_config_cmd u32 filter_flags: 0x00000024
[  660.225743] ieee80211 phy1: U iwl_print_rx_config_cmd u8 dev_type: 0x3
[  660.225749] ieee80211 phy1: U iwl_print_rx_config_cmd u8 ofdm_basic_rates: 0x15
[  660.225756] ieee80211 phy1: U iwl_print_rx_config_cmd u8 cck_basic_rates: 0x03
[  660.225763] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] node_addr: 00:16:eb:05:61:ea
[  660.225770] ieee80211 phy1: U iwl_print_rx_config_cmd u8[6] bssid_addr: 00:02:6f:6e:d7:6c
[  660.225776] ieee80211 phy1: U iwl_print_rx_config_cmd u16 assoc_id: 0x2
[  660.226343] ieee80211 phy1: I iwl_mac_tx enter
[  660.226360] ieee80211 phy1: I iwl_mac_tx leave
[  661.269288] ieee80211 phy1: I iwl_mac_tx enter
[  661.269295] ieee80211 phy1: I iwl_mac_tx leave
[  661.270409] ieee80211 phy1: I iwl_mac_tx enter
[  661.270415] ieee80211 phy1: I iwl_mac_tx leave
[  661.275458] ieee80211 phy1: I iwl_mac_tx enter
[  661.275467] ieee80211 phy1: I iwl_mac_tx leave
[  661.276229] ieee80211 phy1: I iwl_mac_tx enter
[  661.276235] ieee80211 phy1: I iwl_mac_tx leave
[  661.277989] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x0411, 92 bytes at 17[17]:4
[  661.278033] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_LINK_QUALITY_CMD (0x00000000)
[  661.294079] ieee80211 phy1: I iwl_mac_tx enter
[  661.294086] ieee80211 phy1: I iwl_mac_tx leave
[  661.294308] ieee80211 phy1: I iwl_mac_tx enter
[  661.294312] ieee80211 phy1: I iwl_mac_tx leave
[  661.299524] ieee80211 phy1: I iwl_mac_tx enter
[  661.299529] ieee80211 phy1: I iwl_mac_tx leave
[  661.299681] ieee80211 phy1: I iwl_mac_tx enter
[  661.299686] ieee80211 phy1: I iwl_mac_tx leave
[  661.311249] ieee80211 phy1: I iwl_mac_tx enter
[  661.311266] ieee80211 phy1: I iwl_mac_tx leave
[  661.311451] ieee80211 phy1: I iwl_mac_tx enter
[  661.311456] ieee80211 phy1: I iwl_mac_tx leave
[  661.311616] ieee80211 phy1: I iwl_mac_tx enter
[  661.311620] ieee80211 phy1: I iwl_mac_tx leave
[  661.315970] ieee80211 phy1: I iwl_mac_tx enter
[  661.315976] ieee80211 phy1: I iwl_mac_tx leave
[  661.316267] ieee80211 phy1: I iwl_mac_tx enter
[  661.316272] ieee80211 phy1: I iwl_mac_tx leave
[  661.316414] ieee80211 phy1: I iwl_mac_tx enter
[  661.316418] ieee80211 phy1: I iwl_mac_tx leave
[  661.318403] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x0412, 92 bytes at 18[18]:4
[  661.318444] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_LINK_QUALITY_CMD (0x00000000)
[  661.334765] ieee80211 phy1: I iwl_mac_tx enter
[  661.334773] ieee80211 phy1: I iwl_mac_tx leave
[  661.334807] ieee80211 phy1: I iwl_mac_tx enter
[  661.334812] ieee80211 phy1: I iwl_mac_tx leave
[  661.335025] ieee80211 phy1: I iwl_mac_tx enter
[  661.335031] ieee80211 phy1: I iwl_mac_tx leave
[  661.335126] ieee80211 phy1: I iwl_mac_tx enter
[  661.335131] ieee80211 phy1: I iwl_mac_tx leave
[  661.357142] ieee80211 phy1: I iwl_mac_tx enter
[  661.357150] ieee80211 phy1: I iwl_mac_tx leave
[  661.357170] ieee80211 phy1: I iwl_mac_tx enter
[  661.357175] ieee80211 phy1: I iwl_mac_tx leave
[  661.357193] ieee80211 phy1: I iwl_mac_tx enter
[  661.357197] ieee80211 phy1: I iwl_mac_tx leave
[  661.357214] ieee80211 phy1: I iwl_mac_tx enter
[  661.357218] ieee80211 phy1: I iwl_mac_tx leave
[  661.359432] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x0413, 92 bytes at 19[19]:4
[  661.359497] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_LINK_QUALITY_CMD (0x00000000)
[  661.375294] ieee80211 phy1: I iwl_mac_tx enter
[  661.375301] ieee80211 phy1: I iwl_mac_tx leave
[  661.375323] ieee80211 phy1: I iwl_mac_tx enter
[  661.375328] ieee80211 phy1: I iwl_mac_tx leave
[  661.375356] ieee80211 phy1: I iwl_mac_tx enter
[  661.375360] ieee80211 phy1: I iwl_mac_tx leave
[  661.375377] ieee80211 phy1: I iwl_mac_tx enter
[  661.375381] ieee80211 phy1: I iwl_mac_tx leave
[  661.375850] ieee80211 phy1: I iwl_mac_tx enter
[  661.375856] ieee80211 phy1: I iwl_mac_tx leave
[  661.378236] ieee80211 phy1: I iwl_mac_tx enter
[  661.378242] ieee80211 phy1: I iwl_mac_tx leave
[  661.552310] ieee80211 phy1: I iwl_mac_tx enter
[  661.552331] ieee80211 phy1: I iwl_mac_tx leave
[  665.884005] ieee80211 phy1: I iwl_mac_tx enter
[  665.884021] ieee80211 phy1: I iwl_mac_tx leave
[  665.886792] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_TX_LINK_QUALITY_CMD (#4e), seq: 0x0414, 92 bytes at 20[20]:4
[  665.887057] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_LINK_QUALITY_CMD (0x00000000)
[  665.924180] ieee80211 phy1: I iwl_send_add_sta Adding sta 0 (00:02:6f:6e:d7:6c) asynchronously
[  665.924196] ieee80211 phy1: I iwl_enqueue_hcmd Sending command REPLY_ADD_STA (#18), seq: 0x0415, 96 bytes at 21[21]:4
[  665.924248] ieee80211 phy1: I iwl_process_add_sta_resp Processing response for adding station 0
[  665.924255] ieee80211 phy1: I iwl_process_add_sta_resp REPLY_ADD_STA PASSED
[  665.924263] ieee80211 phy1: I iwl_sta_ucode_activate STA id 0 addr 00:02:6f:6e:d7:6c already present in uCode (according to driver)
[  665.924272] ieee80211 phy1: I iwl_process_add_sta_resp Modified station id 0 addr 00:02:6f:6e:d7:6c
[  665.924280] ieee80211 phy1: I iwl_process_add_sta_resp Modified station according to cmd buffer 00:02:6f:6e:d7:6c
[  668.322093] phy1: Removed STA 00:02:6f:6e:d7:6c
[  668.322215] phy1: Destroyed STA 00:02:6f:6e:d7:6c
[  668.322225] wlan0: deauthenticating from 00:02:6f:6e:d7:6c by local choice (reason=3)
[  668.322300] phy1: device now idle
[  668.322391] phy1: device no longer idle - scanning
[  668.324584] phy1: device now idle
[  668.328446] cfg80211: Calling CRDA to update world regulatory domain
[  668.328486] cfg80211: Calling CRDA for country: US
[  668.351238] cfg80211: Regulatory domain changed to country: US
[  668.351241]     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[  668.351245]     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[  668.351248]     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[  668.351267]     (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  668.351270]     (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  668.351273]     (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[  668.351276]     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[  668.456180] phy1: device no longer idle - scanning
[  668.456429] wlan0: deauthenticating from 00:02:6f:6e:d7:6c by local choice (reason=3)
[  668.569218] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 1)
[  668.769269] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 2)
[  668.969150] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 3)
[  669.169262] wlan0: authentication with 00:02:6f:6e:d7:6c timed out
[  669.169363] phy1: device now idle
[  679.527920] phy1: device no longer idle - scanning
[  679.527927] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x100
[  679.527931] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  679.527934] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  679.527937] ieee80211 phy1: U iwl_mac_config leave
[  679.527940] ieee80211 phy1: U iwl_mac_hw_scan enter
[  679.527943] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  679.527947] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  679.527953] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=1 prob=0x3 [ACTIVE 36]
[  679.527956] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=2 prob=0x3 [ACTIVE 36]
[  679.527960] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=3 prob=0x3 [ACTIVE 36]
[  679.527963] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=4 prob=0x3 [ACTIVE 36]
[  679.527967] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=5 prob=0x3 [ACTIVE 36]
[  679.527970] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=6 prob=0x3 [ACTIVE 36]
[  679.527974] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=7 prob=0x3 [ACTIVE 36]
[  679.527977] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=8 prob=0x3 [ACTIVE 36]
[  679.527981] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=9 prob=0x3 [ACTIVE 36]
[  679.527984] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=10 prob=0x3 [ACTIVE 36]
[  679.527988] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=11 prob=0x3 [ACTIVE 36]
[  679.527991] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 11
[  679.527994] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  679.527997] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  679.528003] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x442A, 970 bytes at 42[32]:4
[  679.530214] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  679.530226] ieee80211 phy1: U iwl_mac_hw_scan leave
[  679.530931] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 1 [802.11bg] (TSF: 0x00000000:00AAFF82) - 1 (beacon timer 457236606)
[  679.567833] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 1 [802.11bg] (TSF: 0x00000000:00AB8F8F) - 14 elapsed=36877 usec
[  679.569694] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 2 [802.11bg] (TSF: 0x00000000:00AB9698) - 1 (beacon timer 457197928)
[  679.583214] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 2 [802.11bg] (TSF: 0x00000000:00ABCBB9) - 0 elapsed=13601 usec
[  679.585010] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 3 [802.11bg] (TSF: 0x00000000:00ABD2BE) - 1 (beacon timer 457182530)
[  679.598806] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 3 [802.11bg] (TSF: 0x00000000:00AC0854) - 1 elapsed=13718 usec
[  679.600529] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 4 [802.11bg] (TSF: 0x00000000:00AC0F5E) - 1 (beacon timer 461463714)
[  679.637631] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 4 [802.11bg] (TSF: 0x00000000:00AC9F77) - 1 elapsed=36889 usec
[  679.639224] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 5 [802.11bg] (TSF: 0x00000000:00ACA681) - 1 (beacon timer 461425023)
[  679.652717] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 5 [802.11bg] (TSF: 0x00000000:00ACDAEF) - 0 elapsed=13422 usec
[  679.654439] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 6 [802.11bg] (TSF: 0x00000000:00ACE1F5) - 1 (beacon timer 461409803)
[  679.699401] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 6 [802.11bg] (TSF: 0x00000000:00AD9193) - 9 elapsed=44958 usec
[  679.701197] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 7 [802.11bg] (TSF: 0x00000000:00AD989A) - 1 (beacon timer 465659750)
[  679.738077] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 7 [802.11bg] (TSF: 0x00000000:00AE28A4) - 4 elapsed=36874 usec
[  679.739874] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 8 [802.11bg] (TSF: 0x00000000:00AE2FAA) - 1 (beacon timer 465621078)
[  679.752172] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 8 [802.11bg] (TSF: 0x00000000:00AE5FB2) - 1 elapsed=12296 usec
[  679.753971] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 9 [802.11bg] (TSF: 0x00000000:00AE66B8) - 1 (beacon timer 465606984)
[  679.766196] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 9 [802.11bg] (TSF: 0x00000000:00AE9676) - 0 elapsed=12222 usec
[  679.768220] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 10 [802.11bg] (TSF: 0x00000000:00AE9D7D) - 1 (beacon timer 465592963)
[  679.806505] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 10 [802.11bg] (TSF: 0x00000000:00AF33F1) - 2 elapsed=38516 usec
[  679.808304] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 11 [802.11bg] (TSF: 0x00000000:00AF3AF9) - 1 (beacon timer 469849351)
[  679.845277] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 11 [802.11bg] (TSF: 0x00000000:00AFCB0C) - 11 elapsed=36883 usec
[  679.847041] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 11 channels (TSF 0x00AFD242:00000000) - 1
[  679.847068] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 2.4GHz took 320ms
[  679.847075] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  679.847096] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  679.847120] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x042B, 8 bytes at 43[11]:4
[  679.847151] ieee80211 phy1: U iwl_mac_hw_scan enter
[  679.847161] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  679.847171] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  679.847184] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=36 prob=0x2 [PASSIVE 110]
[  679.847194] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=40 prob=0x2 [PASSIVE 110]
[  679.847204] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=44 prob=0x2 [PASSIVE 110]
[  679.847214] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=48 prob=0x2 [PASSIVE 110]
[  679.847223] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=52 prob=0x2 [PASSIVE 110]
[  679.847233] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=56 prob=0x2 [PASSIVE 110]
[  679.847243] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=60 prob=0x2 [PASSIVE 110]
[  679.847252] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=64 prob=0x2 [PASSIVE 110]
[  679.847281] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=100 prob=0x2 [PASSIVE 110]
[  679.847292] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=104 prob=0x2 [PASSIVE 110]
[  679.847301] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=108 prob=0x2 [PASSIVE 110]
[  679.847311] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=112 prob=0x2 [PASSIVE 110]
[  679.847321] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=116 prob=0x2 [PASSIVE 110]
[  679.847331] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=132 prob=0x2 [PASSIVE 110]
[  679.847349] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  679.847363] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=136 prob=0x2 [PASSIVE 110]
[  679.847373] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=140 prob=0x2 [PASSIVE 110]
[  679.847383] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=149 prob=0x2 [PASSIVE 110]
[  679.847393] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=153 prob=0x2 [PASSIVE 110]
[  679.847403] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=157 prob=0x2 [PASSIVE 110]
[  679.847412] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=161 prob=0x2 [PASSIVE 110]
[  679.847422] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=165 prob=0x2 [PASSIVE 110]
[  679.847431] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 21
[  679.847439] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  679.847448] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  679.847461] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x442C, 1084 bytes at 44[32]:4
[  679.849409] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  679.849428] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 36 [802.11a] (TSF: 0x00000000:00AFDB7A) - 1 (beacon timer 469808262)
[  679.849450] ieee80211 phy1: U iwl_mac_hw_scan leave
[  679.962076] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 36 [802.11a] (TSF: 0x00000000:00B1939D) - 0 elapsed=112675 usec
[  679.963906] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 40 [802.11a] (TSF: 0x00000000:00B19AC1) - 1 (beacon timer 473990463)
[  680.076586] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 40 [802.11a] (TSF: 0x00000000:00B352E4) - 0 elapsed=112675 usec
[  680.078399] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 44 [802.11a] (TSF: 0x00000000:00B35A09) - 1 (beacon timer 478172663)
[  680.191118] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 44 [802.11a] (TSF: 0x00000000:00B51230) - 0 elapsed=112679 usec
[  680.193127] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 48 [802.11a] (TSF: 0x00000000:00B51955) - 1 (beacon timer 482354859)
[  680.229922] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 48 [802.11a] (TSF: 0x00000000:00B5A999) - 20 elapsed=36932 usec
[  680.231745] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 52 [802.11a] (TSF: 0x00000000:00B5B0BE) - 1 (beacon timer 486612802)
[  680.344563] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 52 [802.11a] (TSF: 0x00000000:00B768E4) - 0 elapsed=112678 usec
[  680.346264] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 56 [802.11a] (TSF: 0x00000000:00B77009) - 1 (beacon timer 490794999)
[  680.376952] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 56 [802.11a] (TSF: 0x00000000:00B7E768) - 2 elapsed=30559 usec
[  680.378567] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 60 [802.11a] (TSF: 0x00000000:00B7EE8B) - 1 (beacon timer 490762613)
[  680.491284] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 60 [802.11a] (TSF: 0x00000000:00B9A6B1) - 0 elapsed=112678 usec
[  680.493077] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 64 [802.11a] (TSF: 0x00000000:00B9ADD4) - 1 (beacon timer 494944812)
[  680.520644] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 64 [802.11a] (TSF: 0x00000000:00BA1971) - 11 elapsed=27549 usec
[  680.522449] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 100 [802.11a] (TSF: 0x00000000:00BA2093) - 1 (beacon timer 499212141)
[  680.635159] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 100 [802.11a] (TSF: 0x00000000:00BBD8BC) - 0 elapsed=112681 usec
[  680.636958] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 104 [802.11a] (TSF: 0x00000000:00BBDFDC) - 1 (beacon timer 503394340)
[  680.749845] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 104 [802.11a] (TSF: 0x00000000:00BD9808) - 0 elapsed=112684 usec
[  680.751471] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 108 [802.11a] (TSF: 0x00000000:00BD9F29) - 1 (beacon timer 507576535)
[  680.864360] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 108 [802.11a] (TSF: 0x00000000:00BF5754) - 0 elapsed=112683 usec
[  680.865983] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 112 [802.11a] (TSF: 0x00000000:00BF5E74) - 1 (beacon timer 511758732)
[  680.978754] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 112 [802.11a] (TSF: 0x00000000:00C1169E) - 0 elapsed=112682 usec
[  680.980504] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 116 [802.11a] (TSF: 0x00000000:00C11DBE) - 1 (beacon timer 515940930)
[  681.093193] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 116 [802.11a] (TSF: 0x00000000:00C2D5E8) - 0 elapsed=112682 usec
[  681.095001] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 132 [802.11a] (TSF: 0x00000000:00C2DD08) - 1 (beacon timer 520123128)
[  681.207886] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 132 [802.11a] (TSF: 0x00000000:00C49538) - 0 elapsed=112688 usec
[  681.209508] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 136 [802.11a] (TSF: 0x00000000:00C49C5E) - 1 (beacon timer 524305314)
[  681.322400] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 136 [802.11a] (TSF: 0x00000000:00C65488) - 0 elapsed=112682 usec
[  681.324024] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 140 [802.11a] (TSF: 0x00000000:00C65BAB) - 1 (beacon timer 528487509)
[  681.436706] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 140 [802.11a] (TSF: 0x00000000:00C813D5) - 0 elapsed=112682 usec
[  681.438521] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 149 [802.11a] (TSF: 0x00000000:00C81AF4) - 1 (beacon timer 536966412)
[  681.468084] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 149 [802.11a] (TSF: 0x00000000:00C88E1A) - 13 elapsed=29478 usec
[  681.469844] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 153 [802.11a] (TSF: 0x00000000:00C8953A) - 1 (beacon timer 536935110)
[  681.583073] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 153 [802.11a] (TSF: 0x00000000:00CA4F3F) - 2 elapsed=113157 usec
[  681.584810] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 157 [802.11a] (TSF: 0x00000000:00CA565C) - 1 (beacon timer 541116835)
[  681.697518] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 157 [802.11a] (TSF: 0x00000000:00CC0E8B) - 0 elapsed=112687 usec
[  681.699321] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 161 [802.11a] (TSF: 0x00000000:00CC15A8) - 1 (beacon timer 545299032)
[  681.732435] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 161 [802.11a] (TSF: 0x00000000:00CC96F2) - 6 elapsed=33098 usec
[  681.734236] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 165 [802.11a] (TSF: 0x00000000:00CC9E14) - 1 (beacon timer 545264108)
[  681.847150] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 165 [802.11a] (TSF: 0x00000000:00CE5655) - 0 elapsed=112705 usec
[  681.848856] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 21 channels (TSF 0x00CE5D8C:00000000) - 1
[  681.848866] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 5.2GHz took 2001ms
[  681.848873] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  681.848913] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  681.848931] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x40
[  681.848941] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x240E active=2 idle=1
[  681.848952] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  681.848958] ieee80211 phy1: U iwl_mac_config leave
[  681.848964] phy1: device now idle
[  681.848971] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x100
[  681.848978] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  681.848986] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  681.848991] ieee80211 phy1: U iwl_mac_config leave
[  681.849039] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x042D, 8 bytes at 45[13]:4
[  681.849273] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  686.855593] phy1: device no longer idle - scanning
[  686.855608] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x100
[  686.855617] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  686.855625] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  686.855631] ieee80211 phy1: U iwl_mac_config leave
[  686.855639] ieee80211 phy1: U iwl_mac_hw_scan enter
[  686.855645] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  686.855655] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  686.855666] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=1 prob=0x1 [ACTIVE 33]
[  686.855675] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=2 prob=0x1 [ACTIVE 33]
[  686.855683] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=3 prob=0x1 [ACTIVE 33]
[  686.855691] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=4 prob=0x1 [ACTIVE 33]
[  686.855699] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=5 prob=0x1 [ACTIVE 33]
[  686.855707] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=6 prob=0x1 [ACTIVE 33]
[  686.855715] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=7 prob=0x1 [ACTIVE 33]
[  686.855723] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=8 prob=0x1 [ACTIVE 33]
[  686.855731] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=9 prob=0x1 [ACTIVE 33]
[  686.855739] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=10 prob=0x1 [ACTIVE 33]
[  686.855749] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=11 prob=0x1 [ACTIVE 33]
[  686.855756] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 11
[  686.855764] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  686.855771] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  686.855784] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x442E, 970 bytes at 46[32]:4
[  686.857993] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  686.858037] ieee80211 phy1: U iwl_mac_hw_scan leave
[  686.858720] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 1 [802.11bg] (TSF: 0x00000000:011ACF72) - 1 (beacon timer 754974862)
[  686.896193] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 1 [802.11bg] (TSF: 0x00000000:011B618C) - 12 elapsed=37402 usec
[  686.897924] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 2 [802.11bg] (TSF: 0x00000000:011B6892) - 1 (beacon timer 759232366)
[  686.909926] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 2 [802.11bg] (TSF: 0x00000000:011B9761) - 1 elapsed=11983 usec
[  686.911701] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 3 [802.11bg] (TSF: 0x00000000:011B9E66) - 1 (beacon timer 759218586)
[  686.923268] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 3 [802.11bg] (TSF: 0x00000000:011BCAC0) - 1 elapsed=11354 usec
[  686.924865] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 4 [802.11bg] (TSF: 0x00000000:011BD1C6) - 1 (beacon timer 759205434)
[  686.937014] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 4 [802.11bg] (TSF: 0x00000000:011C012D) - 1 elapsed=12135 usec
[  686.938801] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 5 [802.11bg] (TSF: 0x00000000:011C0833) - 1 (beacon timer 759191501)
[  686.972792] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 5 [802.11bg] (TSF: 0x00000000:011C8C3D) - 1 elapsed=33802 usec
[  686.974393] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 6 [802.11bg] (TSF: 0x00000000:011C9344) - 1 (beacon timer 763452604)
[  687.011967] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 6 [802.11bg] (TSF: 0x00000000:011D2612) - 10 elapsed=37582 usec
[  687.013766] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 7 [802.11bg] (TSF: 0x00000000:011D2D18) - 1 (beacon timer 763413224)
[  687.047781] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 7 [802.11bg] (TSF: 0x00000000:011DB11D) - 6 elapsed=33797 usec
[  687.049365] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 8 [802.11bg] (TSF: 0x00000000:011DB823) - 1 (beacon timer 763377629)
[  687.060817] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 8 [802.11bg] (TSF: 0x00000000:011DE412) - 0 elapsed=11247 usec
[  687.062436] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 9 [802.11bg] (TSF: 0x00000000:011DEB18) - 1 (beacon timer 763364584)
[  687.073610] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 9 [802.11bg] (TSF: 0x00000000:011E16D4) - 1 elapsed=11196 usec
[  687.075408] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 10 [802.11bg] (TSF: 0x00000000:011E1DDB) - 1 (beacon timer 767648293)
[  687.087373] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 10 [802.11bg] (TSF: 0x00000000:011E4C4C) - 1 elapsed=11889 usec
[  687.089090] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 11 [802.11bg] (TSF: 0x00000000:011E5353) - 1 (beacon timer 767634605)
[  687.122991] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 11 [802.11bg] (TSF: 0x00000000:011ED768) - 6 elapsed=33813 usec
[  687.124753] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 11 channels (TSF 0x011EDE9E:00000000) - 1
[  687.124764] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 2.4GHz took 269ms
[  687.124770] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  687.124792] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  687.124817] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x042F, 8 bytes at 47[15]:4
[  687.124827] ieee80211 phy1: U iwl_mac_hw_scan enter
[  687.124835] ieee80211 phy1: U iwl_scan_initiate Starting scan...
[  687.124844] ieee80211 phy1: U iwlagn_request_scan Kicking off active scan
[  687.124856] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=36 prob=0x0 [PASSIVE 110]
[  687.124865] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=40 prob=0x0 [PASSIVE 110]
[  687.124874] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=44 prob=0x0 [PASSIVE 110]
[  687.124882] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=48 prob=0x0 [PASSIVE 110]
[  687.124890] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=52 prob=0x0 [PASSIVE 110]
[  687.124898] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=56 prob=0x0 [PASSIVE 110]
[  687.124906] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=60 prob=0x0 [PASSIVE 110]
[  687.124914] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=64 prob=0x0 [PASSIVE 110]
[  687.124923] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=100 prob=0x0 [PASSIVE 110]
[  687.124931] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=104 prob=0x0 [PASSIVE 110]
[  687.124939] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=108 prob=0x0 [PASSIVE 110]
[  687.124947] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=112 prob=0x0 [PASSIVE 110]
[  687.124956] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=116 prob=0x0 [PASSIVE 110]
[  687.124964] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=132 prob=0x0 [PASSIVE 110]
[  687.124972] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=136 prob=0x0 [PASSIVE 110]
[  687.124980] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=140 prob=0x0 [PASSIVE 110]
[  687.124989] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=149 prob=0x0 [PASSIVE 110]
[  687.124997] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=153 prob=0x0 [PASSIVE 110]
[  687.125005] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=157 prob=0x0 [PASSIVE 110]
[  687.125013] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=161 prob=0x0 [PASSIVE 110]
[  687.125022] ieee80211 phy1: U iwl_get_channels_for_scan Scanning ch=165 prob=0x0 [PASSIVE 110]
[  687.125029] ieee80211 phy1: U iwl_get_channels_for_scan total channels to scan 21
[  687.125046] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  687.125058] ieee80211 phy1: U iwl_send_cmd_sync Attempting to send sync command REPLY_SCAN_CMD
[  687.125066] ieee80211 phy1: U iwl_send_cmd_sync Setting HCMD_ACTIVE for command REPLY_SCAN_CMD
[  687.125080] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_SCAN_CMD (#80), seq: 0x4430, 1084 bytes at 48[32]:4
[  687.127081] ieee80211 phy1: I iwl_tx_cmd_complete Clearing HCMD_ACTIVE for command REPLY_SCAN_CMD
[  687.127100] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 36 [802.11a] (TSF: 0x00000000:011EE76B) - 1 (beacon timer 767596693)
[  687.127129] ieee80211 phy1: U iwl_mac_hw_scan leave
[  687.239682] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 36 [802.11a] (TSF: 0x00000000:01209F8E) - 0 elapsed=112675 usec
[  687.241509] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 40 [802.11a] (TSF: 0x00000000:0120A6B2) - 1 (beacon timer 771778894)
[  687.354257] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 40 [802.11a] (TSF: 0x00000000:01225ED9) - 0 elapsed=112679 usec
[  687.356039] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 44 [802.11a] (TSF: 0x00000000:012265FE) - 1 (beacon timer 775961090)
[  687.468909] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 44 [802.11a] (TSF: 0x00000000:01241E25) - 0 elapsed=112679 usec
[  687.470558] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 48 [802.11a] (TSF: 0x00000000:0124254A) - 1 (beacon timer 780143286)
[  687.508591] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 48 [802.11a] (TSF: 0x00000000:0124B9A9) - 22 elapsed=37983 usec
[  687.510346] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 52 [802.11a] (TSF: 0x00000000:0124C0D1) - 1 (beacon timer 784400175)
[  687.623104] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 52 [802.11a] (TSF: 0x00000000:012678F4) - 0 elapsed=112675 usec
[  687.624858] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 56 [802.11a] (TSF: 0x00000000:01268019) - 1 (beacon timer 788582374)
[  687.747668] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 56 [802.11a] (TSF: 0x00000000:01285F85) - 2 elapsed=122732 usec
[  687.749413] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 60 [802.11a] (TSF: 0x00000000:012866A8) - 1 (beacon timer 792754519)
[  687.862317] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 60 [802.11a] (TSF: 0x00000000:012A1EE2) - 0 elapsed=112698 usec
[  687.864018] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 64 [802.11a] (TSF: 0x00000000:012A2609) - 1 (beacon timer 796936695)
[  687.914655] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 64 [802.11a] (TSF: 0x00000000:012AEC1C) - 7 elapsed=50707 usec
[  687.916563] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 100 [802.11a] (TSF: 0x00000000:012AF344) - 1 (beacon timer 801180860)
[  688.029141] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 100 [802.11a] (TSF: 0x00000000:012CAB67) - 0 elapsed=112675 usec
[  688.030962] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 104 [802.11a] (TSF: 0x00000000:012CB28C) - 1 (beacon timer 805363060)
[  688.143650] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 104 [802.11a] (TSF: 0x00000000:012E6AB3) - 0 elapsed=112679 usec
[  688.145477] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 108 [802.11a] (TSF: 0x00000000:012E71DB) - 1 (beacon timer 809545253)
[  688.258259] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 108 [802.11a] (TSF: 0x00000000:013029FF) - 0 elapsed=112676 usec
[  688.260083] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 112 [802.11a] (TSF: 0x00000000:01303125) - 1 (beacon timer 813727451)
[  688.372891] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 112 [802.11a] (TSF: 0x00000000:0131E949) - 0 elapsed=112676 usec
[  688.374592] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 116 [802.11a] (TSF: 0x00000000:0131F06F) - 1 (beacon timer 817909649)
[  688.487250] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 116 [802.11a] (TSF: 0x00000000:0133A893) - 0 elapsed=112676 usec
[  688.489037] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 132 [802.11a] (TSF: 0x00000000:0133AFC0) - 1 (beacon timer 822091840)
[  688.601809] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 132 [802.11a] (TSF: 0x00000000:013567F7) - 0 elapsed=112695 usec
[  688.603636] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 136 [802.11a] (TSF: 0x00000000:01356F20) - 1 (beacon timer 830570720)
[  688.716337] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 136 [802.11a] (TSF: 0x00000000:0137275B) - 0 elapsed=112699 usec
[  688.718087] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 140 [802.11a] (TSF: 0x00000000:01372E7F) - 1 (beacon timer 834752897)
[  688.830989] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 140 [802.11a] (TSF: 0x00000000:0138E6BC) - 0 elapsed=112701 usec
[  688.832689] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 149 [802.11a] (TSF: 0x00000000:0138EDDE) - 1 (beacon timer 838935074)
[  688.858599] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 149 [802.11a] (TSF: 0x00000000:0139529E) - 14 elapsed=25792 usec
[  688.860227] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 153 [802.11a] (TSF: 0x00000000:013959C2) - 1 (beacon timer 838907454)
[  688.972996] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 153 [802.11a] (TSF: 0x00000000:013B11EA) - 0 elapsed=112680 usec
[  688.974740] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 157 [802.11a] (TSF: 0x00000000:013B1910) - 1 (beacon timer 843089648)
[  689.087507] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 157 [802.11a] (TSF: 0x00000000:013CD136) - 0 elapsed=112678 usec
[  689.089328] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 161 [802.11a] (TSF: 0x00000000:013CD85B) - 1 (beacon timer 847271845)
[  689.133926] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 161 [802.11a] (TSF: 0x00000000:013D86E1) - 8 elapsed=44678 usec
[  689.135829] ieee80211 phy1: I iwl_rx_scan_start_notif Scan start: 165 [802.11a] (TSF: 0x00000000:013D8E05) - 1 (beacon timer 851522043)
[  689.248643] ieee80211 phy1: I iwl_rx_scan_results_notif Scan ch.res: 165 [802.11a] (TSF: 0x00000000:013F4630) - 0 elapsed=112683 usec
[  689.250270] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan complete: 21 channels (TSF 0x013F4D63:00000000) - 1
[  689.250279] ieee80211 phy1: I iwl_rx_scan_complete_notif Scan on 5.2GHz took 2126ms
[  689.250286] ieee80211 phy1: I iwl_rx_scan_complete_notif Setting scan to off
[  689.250309] ieee80211 phy1: U iwl_bg_scan_completed SCAN complete scan
[  689.250327] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x40
[  689.250336] ieee80211 phy1: U iwl_set_rxon_chain rx_chain=0x240E active=2 idle=1
[  689.250347] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  689.250353] ieee80211 phy1: U iwl_mac_config leave
[  689.250360] phy1: device now idle
[  689.250366] ieee80211 phy1: U iwl_mac_config enter to channel 40 changed 0x100
[  689.250373] ieee80211 phy1: U iwl_power_sleep_cam_cmd Sleep command for CAM
[  689.250380] ieee80211 phy1: U iwl_mac_config Not re-sending same RXON configuration.
[  689.250386] ieee80211 phy1: U iwl_mac_config leave
[  689.250407] ieee80211 phy1: U iwl_enqueue_hcmd Sending command REPLY_TX_POWER_DBM_CMD (#95), seq: 0x0431, 8 bytes at 49[17]:4
[  689.250888] ieee80211 phy1: I iwl_generic_cmd_callback back from REPLY_TX_POWER_DBM_CMD (0x00000000)
[  697.693280] phy1: device no longer idle - scanning
[  697.739250] wlan0: authenticate with 00:02:6f:6e:d7:68 (try 1)
[  697.742567] wlan0: authenticated
[  697.742586] phy1: device now idle
[  697.746369] phy1: device no longer idle - working
[  697.748621] wlan0: associate with 00:02:6f:6e:d7:68 (try 1)
[  697.755062] wlan0: RX AssocResp from 00:02:6f:6e:d7:68 (capab=0xc31 status=0 aid=1)
[  697.755066] wlan0: associated
[  697.755071] phy1: Allocated STA 00:02:6f:6e:d7:68
[  697.755229] phy1: Inserted STA 00:02:6f:6e:d7:68
[  697.828185] phy1: WMM queue=2 aci=0 acm=0 aifs=3 cWmin=15 cWmax=1023 txop=0 uapsd=0
[  697.828197] phy1: WMM queue=3 aci=1 acm=0 aifs=7 cWmin=15 cWmax=1023 txop=0 uapsd=0
[  697.828207] phy1: WMM queue=1 aci=2 acm=0 aifs=2 cWmin=7 cWmax=15 txop=94 uapsd=0
[  697.828215] phy1: WMM queue=0 aci=3 acm=0 aifs=2 cWmin=3 cWmax=7 txop=47 uapsd=0
[  768.616236] iwlagn 0000:03:00.0: Aggregation not enabled for tid 0 because load = 0

^ permalink raw reply

* ath9k:  /proc/net/wireless always shows status of 0
From: Ben Greear @ 2010-07-26 19:49 UTC (permalink / raw)
  To: linux-wireless

This is with today's wireless-testing (with no extra hacks)

[root@a230-ath9k ~]# cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
  face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
  wlan0: 0000   67.  -43.  -256        0      0      0      0      0        0

The interface is running WPA and is passing traffic, so I'd expect some sort of
useful status.  Is this a known issue?

[root@a230-ath9k ~]# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:"candela-n"
           Mode:Managed  Frequency:2.412 GHz  Access Point: 00:14:D1:C6:D2:54
           Bit Rate=117 Mb/s   Tx-Power=27 dBm
           Retry  long limit:7   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality=66/70  Signal level=-44 dBm
           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
           Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply

* pull request: wireless-2.6 2010-07-26
From: John W. Linville @ 2010-07-26 19:49 UTC (permalink / raw)
  To: davem; +Cc: linux-wireless, netdev, linux-kernel

Dave,

Here are two more late-bloomers for 2.6.35.  Both are tiny and isolated,
and they fix documented regression BUGs as indicated in their commit logs.

The one from me changes a netif_rx to a netif_rx_ni -- the execution
path is in process context, coming from userland.  The bug reporter
confirmed that it addressed the problem he reported.

The one from Ming Lei has been in net-next-2.6 for a while already.
More recently, someone posted an identical patch indicated it addressed
the BUG as reported in the cited LKML thread.

I think it would be best to get these into 2.6.35 if at all possible.
Please let me know if there are problems!

Thanks,

John

---

The following changes since commit 3b87956ea645fb4de7e59c7d0aa94de04be72615:

  net sched: fix race in mirred device removal (2010-07-24 21:04:20 -0700)

are available in the git repository at:
  git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git master

John W. Linville (1):
      wireless: use netif_rx_ni in ieee80211_send_layer2_update

Ming Lei (1):
      ath9k: fix dma direction for map/unmap in ath_rx_tasklet

 drivers/net/wireless/ath/ath9k/recv.c |    4 ++--
 net/mac80211/cfg.c                    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c
index ca6065b..e3e5291 100644
--- a/drivers/net/wireless/ath/ath9k/recv.c
+++ b/drivers/net/wireless/ath/ath9k/recv.c
@@ -844,9 +844,9 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp)
 	int dma_type;
 
 	if (edma)
-		dma_type = DMA_FROM_DEVICE;
-	else
 		dma_type = DMA_BIDIRECTIONAL;
+	else
+		dma_type = DMA_FROM_DEVICE;
 
 	qtype = hp ? ATH9K_RX_QUEUE_HP : ATH9K_RX_QUEUE_LP;
 	spin_lock_bh(&sc->rx.rxbuflock);
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index c7000a6..67ee34f 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -632,7 +632,7 @@ static void ieee80211_send_layer2_update(struct sta_info *sta)
 	skb->dev = sta->sdata->dev;
 	skb->protocol = eth_type_trans(skb, sta->sdata->dev);
 	memset(skb->cb, 0, sizeof(skb->cb));
-	netif_rx(skb);
+	netif_rx_ni(skb);
 }
 
 static void sta_apply_parameters(struct ieee80211_local *local,
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

^ permalink raw reply related

* Re: iwlagn: two regressions 2.6.34->2.6.35-rc6
From: Luis R. Rodriguez @ 2010-07-26 20:01 UTC (permalink / raw)
  To: Andrew Lutomirski; +Cc: linux-wireless, ilw, Rafael J. Wysocki
In-Reply-To: <AANLkTimo4RV6UMgti0ng1rQYE2eUVh2WLv_WHQZkz30j@mail.gmail.com>

Adding Rafael, in case they are not yet on his list.

  Luis

On Mon, Jul 26, 2010 at 12:08 PM, Andrew Lutomirski <luto@mit.edu> wrote:
> Regression 1:  I got a SYSASSERT.  rmmod/modprobe fixed it.  No fancy
> debug because I can't reproduce it.
>
> [  167.648419] phy0: device no longer idle - scanning
> [  167.656408] phy0: device now idle
> [  167.715946] phy0: device no longer idle - scanning
> [  167.716066] iwlagn 0000:03:00.0: Microcode SW error detected.
> Restarting 0x82000000.
> [  167.716069] iwlagn 0000:03:00.0: Loaded firmware version: 8.24.2.12
> [  167.716105] iwlagn 0000:03:00.0: Start IWL Error Log Dump:
> [  167.716108] iwlagn 0000:03:00.0: Status: 0x0002B2E4, count: 5
> [  167.716302] iwlagn 0000:03:00.0: Desc
> Time       data1      data2      line
> [  167.716307] iwlagn 0000:03:00.0: SYSASSERT                    (#05)
> 1042449688 0x00200200 0x00000000 1051
> [  167.716312] iwlagn 0000:03:00.0: pc      blink1  blink2  ilink1  ilink2  hcmd
> [  167.716316] iwlagn 0000:03:00.0: 0x02CC8 0x02C98 0x02C98 0x008B2
> 0x00000 0x441C0080
> [  167.716319] iwlagn 0000:03:00.0: CSR values:
> [  167.716322] iwlagn 0000:03:00.0: (2nd byte of CSR_INT_COALESCING is
> CSR_INT_PERIODIC_REG)
> [  167.716350] iwlagn 0000:03:00.0:        CSR_HW_IF_CONFIG_REG: 0X00480301
> [  167.716376] iwlagn 0000:03:00.0:          CSR_INT_COALESCING: 0X00000040
> [  167.716401] iwlagn 0000:03:00.0:                     CSR_INT: 0X00000000
> [  167.716409] iwlagn 0000:03:00.0:                CSR_INT_MASK: 0X00000000
> [  167.716418] iwlagn 0000:03:00.0:           CSR_FH_INT_STATUS: 0X00000000
> [  167.716426] iwlagn 0000:03:00.0:                 CSR_GPIO_IN: 0X00000008
> [  167.716435] iwlagn 0000:03:00.0:                   CSR_RESET: 0X00000000
> [  167.716444] iwlagn 0000:03:00.0:                CSR_GP_CNTRL: 0X080403c5
> [  167.716452] iwlagn 0000:03:00.0:                  CSR_HW_REV: 0X00000024
> [  167.716461] iwlagn 0000:03:00.0:              CSR_EEPROM_REG: 0X00000000
> [  167.716470] iwlagn 0000:03:00.0:               CSR_EEPROM_GP: 0X90000804
> [  167.716478] iwlagn 0000:03:00.0:              CSR_OTP_GP_REG: 0X00060000
> [  167.716487] iwlagn 0000:03:00.0:                 CSR_GIO_REG: 0X00080042
> [  167.716495] iwlagn 0000:03:00.0:            CSR_GP_UCODE_REG: 0X00002183
> [  167.716504] iwlagn 0000:03:00.0:           CSR_GP_DRIVER_REG: 0X00000000
> [  167.716529] iwlagn 0000:03:00.0:           CSR_UCODE_DRV_GP1: 0X00000000
> [  167.716537] iwlagn 0000:03:00.0:           CSR_UCODE_DRV_GP2: 0X00000000
> [  167.716563] iwlagn 0000:03:00.0:                 CSR_LED_REG: 0X00000058
> [  167.716588] iwlagn 0000:03:00.0:        CSR_DRAM_INT_TBL_REG: 0X88135b6a
> [  167.716614] iwlagn 0000:03:00.0:        CSR_GIO_CHICKEN_BITS: 0X27800200
> [  167.716639] iwlagn 0000:03:00.0:             CSR_ANA_PLL_CFG: 0X00880300
> [  167.716664] iwlagn 0000:03:00.0:           CSR_HW_REV_WA_REG: 0X0001001a
> [  167.716673] iwlagn 0000:03:00.0:        CSR_DBG_HPET_MEM_REG: 0Xffff0000
> [  167.716675] iwlagn 0000:03:00.0: FH register values:
> [  167.716710] iwlagn 0000:03:00.0:
> FH_RSCSR_CHNL0_STTS_WPTR_REG: 0X133cf500
> [  167.716730] iwlagn 0000:03:00.0:
> FH_RSCSR_CHNL0_RBDCB_BASE_REG: 0X01339760
> [  167.716750] iwlagn 0000:03:00.0:
> FH_RSCSR_CHNL0_WPTR: 0X00000098
> [  167.716770] iwlagn 0000:03:00.0:
> FH_MEM_RCSR_CHNL0_CONFIG_REG: 0X80819104
> [  167.716789] iwlagn 0000:03:00.0:
> FH_MEM_RSSR_SHARED_CTRL_REG: 0X000000fc
> [  167.716808] iwlagn 0000:03:00.0:
> FH_MEM_RSSR_RX_STATUS_REG: 0X07030000
> [  167.716827] iwlagn 0000:03:00.0:
> FH_MEM_RSSR_RX_ENABLE_ERR_IRQ2DRV: 0X00000000
> [  167.716846] iwlagn 0000:03:00.0:
> FH_TSSR_TX_STATUS_REG: 0X07ff0001
> [  167.716865] iwlagn 0000:03:00.0:
> FH_TSSR_TX_ERROR_REG: 0X00000000
> [  167.716922] iwlagn 0000:03:00.0: Start IWL Event Log Dump: display
> last 20 entries
> [  167.716944] iwlagn 0000:03:00.0: EVT_LOGT:0151076484:0x00000037:0353
> [  167.716975] iwlagn 0000:03:00.0: EVT_LOGT:0151076880:0x0000010f:0106
> [  167.717006] iwlagn 0000:03:00.0: EVT_LOGT:0151076881:0x00000000:0302
> [  167.717037] iwlagn 0000:03:00.0: EVT_LOGT:0151076905:0x00000038:0353
> [  167.717051] iwlagn 0000:03:00.0: EVT_LOGT:0151077567:0x441c0080:0401
> [  167.717066] iwlagn 0000:03:00.0: EVT_LOGT:0151077568:0x441c0080:0700
> [  167.717080] iwlagn 0000:03:00.0: EVT_LOGT:0151077569:0x00000000:0706
> [  167.717094] iwlagn 0000:03:00.0: EVT_LOGT:0151077585:0x00000001:0452
> [  167.717109] iwlagn 0000:03:00.0: EVT_LOGT:0151077587:0x00000001:0452
> [  167.717139] iwlagn 0000:03:00.0: EVT_LOGT:0151077588:0x00000233:0601
> [  167.717153] iwlagn 0000:03:00.0: EVT_LOGT:0151077589:0x00000061:0600
> [  167.717168] iwlagn 0000:03:00.0: EVT_LOGT:0151077591:0x0000007a:0602
> [  167.717182] iwlagn 0000:03:00.0: EVT_LOGT:0151077597:0x00000100:0706
> [  167.717213] iwlagn 0000:03:00.0: EVT_LOGT:0151077601:0x00000000:0708
> [  167.717227] iwlagn 0000:03:00.0: EVT_LOGT:0151077603:0x01000200:0706
> [  167.717258] iwlagn 0000:03:00.0: EVT_LOGT:0151077613:0x01000200:0725
> [  167.717263] iwlagn 0000:03:00.0: EVT_LOGT:0151077613:0x00000000:0709
> [  167.717263] iwlagn 0000:03:00.0: EVT_LOGT:0151077614:0x00000000:0707
> [  167.717263] iwlagn 0000:03:00.0: EVT_LOGT:0151077614:0x02000201:0706
> [  167.717263] iwlagn 0000:03:00.0: EVT_LOGT:0151077622:0x00000000:0125
>
>
> Regression 2:
>
> On 2.6.34 my wireless appears to be rock solid (yay -- it's been awhile).
>
> On 2.6.35-rc6, I have an AP here that doesn't work well.  It's an
> EnGenius ESR-7750 with latest firmware.  I can connect to its 2.4GHz
> radio (usually but it seems to connect more slowly than 2.6.34), but I
> can't always see the 5GHz radio, let alone connect.  It's connected
> exactly once out of many tries on 2.6.35-rc6, but it works fine on
> 2.6.34.
>
> In the attached log, you'll see the one successful connection to
> 00:02:6f:6e:d7:6c as well as a failure.  The failure is just:
>
> [  668.569218] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 1)
> [  668.769269] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 2)
> [  668.969150] wlan0: authenticate with 00:02:6f:6e:d7:6c (try 3)
> [  669.169262] wlan0: authentication with 00:02:6f:6e:d7:6c timed out
>
> --Andy
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply

* *PING* iwlagn 2.6.35: "BA scd_flow 0 does not match txq_id 10" regression
From: Andrew Lutomirski @ 2010-07-26 20:02 UTC (permalink / raw)
  To: linux-wireless, wey-yi.w.guy

There's a regression in 2.6.35 where the connection breaks and iwlagn
writes a bunch of:

iwlagn 0000:03:00.0: BA scd_flow 0 does not match txq_id 10

This is confirmed [1] and a patch supposedly exists.  Since this
breaks at least two people's wireless and 2.6.35 is about to be
released, can we see the patches?

Thanks,
Andy

[1] http://article.gmane.org/gmane.linux.kernel.wireless.general/53552

^ permalink raw reply

* Re: [ath5k-devel] [PATCH v3] ath5k: disable ASPM
From: Luis R. Rodriguez @ 2010-07-26 20:13 UTC (permalink / raw)
  To: Maxim Levitsky
  Cc: Bob Copeland, Luis R. Rodriguez, Jussi Kivilinna,
	ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org,
	linux-kernel, kernel-team, tim.gardner, Matthew Garrett,
	David Quan
In-Reply-To: <1276961564.5173.12.camel@maxim-laptop>

On Sat, Jun 19, 2010 at 08:32:44AM -0700, Maxim Levitsky wrote:
> On Sat, 2010-06-19 at 16:02 +0300, Maxim Levitsky wrote: 
> > On Sat, 2010-06-19 at 08:38 -0400, Bob Copeland wrote: 
> > > On Sat, Jun 19, 2010 at 10:49:34AM +0300, Maxim Levitsky wrote:
> > > > How this patch?
> > > 
> > > Looks fine to me.  Some nitpicking below but feel free to add my
> > > 
> > > Acked-by: Bob Copeland <me@bobcopeland.com>
> > > 
> Done.
> 
> Best regards,
> Maxim Levitsky
> 
> --- 
> 
> commit 616afa397b3e843f2aba06be12a30e72dfff7740
> Author: Maxim Levitsky <maximlevitsky@gmail.com>
> Date:   Thu Jun 17 23:21:42 2010 +0300
> 
>     ath5k: disable ASPM
>     
>     Atheros card on Acer Aspire One (AOA150, Atheros Communications Inc. AR5001
>     Wireless Network Adapter [168c:001c] (rev 01)) doesn't work well with ASPM
>     enabled. With ASPM ath5k will eventually stall on heavy traffic with often
>     'unsupported jumbo' warnings appearing. Disabling ASPM L0s in ath5k fixes
>     these problems.
>     Also card sends a storm of RXORN interrupts even though medium is idle.
>     
>     Reproduced with pcie_aspm=force and by using 'nc < /dev/zero > /dev/null' at
>     both ends (usually stalls within seconds).
>     
>     Unfortunately BIOS enables ASPM on this card by default on these machines
>     This means that, problem shows up (less often) without pcie_aspm=force too. 
>     Therefore to benefit from this fix you need to _enable_ CONFIG_PCIEASPM
>     
> 
>     All credit for this patch goes to Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
>     for finding and fixing this bug.
>     
>     Based on patch that is
>     From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
>     
>     
>     Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
>     Acked-by: Bob Copeland <me@bobcopeland.com>

Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>

But please resubmit and completley modify the commit log to indicate
ath5k cards support ASPM but L0s must be disabled, only L1
works correctly.

The comments about ASPM force should be removed as it would
lead others to try to use the same and the fact of the matter is
that ASPM force should never be used. As was clarified out of
some of these discussions worth noting also is that in newer
kernels CONFIG_PCIEASPM=y will always become the default, for
older kernels this was never the default and some distributions
(Ubunutu) do not have this enabled, the benefit of having it
enabled is it will disable ASPM for these cases:

(a) the PCIE device is pre PCIE 1.1
(b) the firmware has the FADT flag set to tell you not to and
(c) the firmware doesn't grant control via _OSC. The powersave policy will
enable ASPM even if the BIOS didn't, but only if something else doesn't
tell us not to.

The last two checks were only recently added by Mathew and forcing
CONFIG_PCIEASPM=y was also only recently made default.

In short, Linux distributions should also start enabling
CONFIG_PCIEASPM=y on older kernels.

  Luis

> 
> diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
> index 3abbe75..4f6bd7c 100644
> --- a/drivers/net/wireless/ath/ath5k/base.c
> +++ b/drivers/net/wireless/ath/ath5k/base.c
> @@ -48,6 +48,7 @@
>  #include <linux/netdevice.h>
>  #include <linux/cache.h>
>  #include <linux/pci.h>
> +#include <linux/pci-aspm.h>
>  #include <linux/ethtool.h>
>  #include <linux/uaccess.h>
>  #include <linux/slab.h>
> @@ -469,6 +470,19 @@ ath5k_pci_probe(struct pci_dev *pdev,
>  	int ret;
>  	u8 csz;
>  
> +	/*
> +	 * Disable PCIE ASPM L0S on the card.
> +	 * ASPM triggers hardware bug, that makes card stall transmission
> +	 * untill reset, and even that doesn't always help.
> +	 * This happens on meduim to heavy transmit utilization.
> +	 * In addition to stall, hardware usually gives a storm of
> +	 * RXORN interrupts, despite idle channel, and otherwise doesn't work.
> +	 * Windows driver also disables the L0s ASPM,
> +	 * probably due to same reason
> +	 * Note: to benefit from this fix, please _enable_ CONFIG_PCIEASPM
> +	 */
> +	pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S);
> +
>  	ret = pci_enable_device(pdev);
>  	if (ret) {
>  		dev_err(&pdev->dev, "can't enable device\n");
> 
> 
> _______________________________________________
> ath5k-devel mailing list
> ath5k-devel@lists.ath5k.org
> https://lists.ath5k.org/mailman/listinfo/ath5k-devel

^ permalink raw reply

* [PATCH] wireless: Make COMPAT_NETLINK_MESSAGES depend upon WEXT_CORE
From: David Miller @ 2010-07-26 20:15 UTC (permalink / raw)
  To: netdev; +Cc: linux-wireless


WIRELESS_EXT is not the correct dependency.

Signed-off-by: David S. Miller <davem@davemloft.net>
---

Wireless folks, just FYI, I will commit this to net-next-2.6

 net/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/Kconfig b/net/Kconfig
index b325094..e24fa08 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -32,7 +32,7 @@ config WANT_COMPAT_NETLINK_MESSAGES
 config COMPAT_NETLINK_MESSAGES
 	def_bool y
 	depends on COMPAT
-	depends on WIRELESS_EXT || WANT_COMPAT_NETLINK_MESSAGES
+	depends on WEXT_CORE || WANT_COMPAT_NETLINK_MESSAGES
 	help
 	  This option makes it possible to send different netlink messages
 	  to tasks depending on whether the task is a compat task or not. To
-- 
1.7.1.1


^ permalink raw reply related

* Re: [PATCH] wireless: Make COMPAT_NETLINK_MESSAGES depend upon WEXT_CORE
From: Johannes Berg @ 2010-07-26 20:18 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, linux-wireless
In-Reply-To: <20100726.131506.245381776.davem@davemloft.net>

On Mon, 2010-07-26 at 13:15 -0700, David Miller wrote:
> WIRELESS_EXT is not the correct dependency.
> 
> Signed-off-by: David S. Miller <davem@davemloft.net>
> ---
> 
> Wireless folks, just FYI, I will commit this to net-next-2.6
> 
>  net/Kconfig |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/net/Kconfig b/net/Kconfig
> index b325094..e24fa08 100644
> --- a/net/Kconfig
> +++ b/net/Kconfig
> @@ -32,7 +32,7 @@ config WANT_COMPAT_NETLINK_MESSAGES
>  config COMPAT_NETLINK_MESSAGES
>  	def_bool y
>  	depends on COMPAT
> -	depends on WIRELESS_EXT || WANT_COMPAT_NETLINK_MESSAGES
> +	depends on WEXT_CORE || WANT_COMPAT_NETLINK_MESSAGES

You're right, thank you, I missed that at the time I changed this.

FWIW, it seems I broke this in 2.6.32! Guess nobody noticed since most
people actually do still have WIRELESS_EXT, especially distros.

johannes


^ permalink raw reply

* Re: pull request: wireless-2.6 2010-07-26
From: David Miller @ 2010-07-26 20:30 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, netdev, linux-kernel
In-Reply-To: <20100726194919.GH3903@tuxdriver.com>

From: "John W. Linville" <linville@tuxdriver.com>
Date: Mon, 26 Jul 2010 15:49:20 -0400

> The following changes since commit 3b87956ea645fb4de7e59c7d0aa94de04be72615:
> 
>   net sched: fix race in mirred device removal (2010-07-24 21:04:20 -0700)
> 
> are available in the git repository at:
>   git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git master
> 
> John W. Linville (1):
>       wireless: use netif_rx_ni in ieee80211_send_layer2_update
> 
> Ming Lei (1):
>       ath9k: fix dma direction for map/unmap in ath_rx_tasklet

Pulled, thanks John.

^ permalink raw reply

* Re: [ath9k-devel] [RFC] ath9k: improve aggregation throughput by using only first rate
From: Björn Smedman @ 2010-07-26 20:37 UTC (permalink / raw)
  To: Felix Fietkau; +Cc: ath9k-devel, linux-wireless
In-Reply-To: <4C4DE4F5.3010907@openwrt.org>

2010/7/26 Felix Fietkau <nbd@openwrt.org>:
> On 2010-07-26 9:23 PM, Björn Smedman wrote:
>> 2010/7/26 Felix Fietkau <nbd@openwrt.org>:
>> * When tx is aggregated most rate control probe frames end up inside
>> aggregates and are never used for probing (effective probe frequency
>> is divided by average aggregate length).
> Nope, a probing frame never ends up inside an aggregate. It's always
> sent out as a single frame, which is why I had to make the decision
> about sending a probing frame more complex in minstrel_ht, compared to
> minstrel - the previous 10% stuff was limiting aggregation size.

Ok, I must have jumped to conclusions. I looked quickly at the code
and had the impression that it only cared about the RATE_PROBE flag if
it was on the first subframe of the aggregate, and then I compared
debug output from rc and xmit like this:

root@OpenWrt:/sys/kernel/debug# cat
ieee80211/phy0/stations/00\:1e\:52\:c7\:cf\:63/rc_stats ; ca
t ath9k/phy0/xmit
type      rate     throughput  ewma prob   this prob  this
succ/attempt   success    attempts
HT20/LGI    MCS0        5.8       87.3       50.0          0(  0)
   48          54
HT20/LGI    MCS1       12.6       94.6      100.0          0(  0)
   46          48
HT20/LGI    MCS2       18.9       95.8      100.0          0(  0)
   52          73
HT20/LGI    MCS3       24.8       94.8      100.0          0(  0)
   53          62
HT20/LGI    MCS4       38.4       99.2      100.0          0(  0)
   45          55
HT20/LGI    MCS5       47.4       94.0      100.0          0(  0)
   56          72
HT20/LGI    MCS6       55.4       98.7      100.0          0(  0)
   60          78
HT20/LGI   PMCS7       56.2       88.8       66.6          0(  0)
  112         143
HT20/LGI    MCS8       10.8       81.4       50.0          0(  0)
   50          62
HT20/LGI    MCS9       23.6       90.4      100.0          0(  0)
   66          81
HT20/LGI    MCS10      30.6       79.0       50.0          0(  0)
   51          64
HT20/LGI    MCS11      50.1       99.2      100.0          0(  0)
   56          63
HT20/LGI    MCS12      60.1       80.6      100.0          0(  0)
  217         382
HT20/LGI    MCS13      66.6       70.6       50.0          0(  0)
 2440        3042
HT20/LGI  t MCS14      82.9       77.9       65.9          0(  0)
70446       86949
HT20/LGI T  MCS15      85.5       73.5       77.1        264(342)
31170       43240

Total packet count::    ideal 117093      lookaround 1322
Average A-MPDU length: 10.6
                            BE         BK        VI        VO

MPDUs Queued:              120          0         0       224
MPDUs Completed:           120          0         0       224
Aggregates:               7555          0         0         0
AMPDUs Queued:          118358          0         0        50
AMPDUs Completed:       118247          0         0        20
AMPDUs Retried:          15406          0         0       300
AMPDUs XRetried:            21          0         0        30
FIFO Underrun:               0          0         0         0
TXOP Exceeded:               0          0         0         0
TXTIMER Expiry:              0          0         0         0
DESC CFG Error:              0          0         0         0
DATA Underrun:               0          0         0         0
DELIM Underrun:              0          0         0         0

Rate control says 1322 lookaround (=probe frames?) but ath9k xmit says
only 120 + 224 MPDUs.

/Björn

^ permalink raw reply

* Re: [ath9k-devel] [RFC] ath9k: improve aggregation throughput by using only first rate
From: Felix Fietkau @ 2010-07-26 20:41 UTC (permalink / raw)
  To: Björn Smedman; +Cc: ath9k-devel, linux-wireless
In-Reply-To: <AANLkTikcW5Gx6P2-6w_Vmeh7kEDGuEHcY=U_jbH3tYhT@mail.gmail.com>

On 2010-07-26 10:37 PM, Björn Smedman wrote:
> 2010/7/26 Felix Fietkau <nbd@openwrt.org>:
>> On 2010-07-26 9:23 PM, Björn Smedman wrote:
>>> 2010/7/26 Felix Fietkau <nbd@openwrt.org>:
>>> * When tx is aggregated most rate control probe frames end up inside
>>> aggregates and are never used for probing (effective probe frequency
>>> is divided by average aggregate length).
>> Nope, a probing frame never ends up inside an aggregate. It's always
>> sent out as a single frame, which is why I had to make the decision
>> about sending a probing frame more complex in minstrel_ht, compared to
>> minstrel - the previous 10% stuff was limiting aggregation size.
> 
> Ok, I must have jumped to conclusions. I looked quickly at the code
> and had the impression that it only cared about the RATE_PROBE flag if
> it was on the first subframe of the aggregate, and then I compared
> debug output from rc and xmit like this:
Oh, wait. It seems that you may be right after all. I think I was
remembering stuff from the wrong codebase again Well, at least what I
described is what I think the code should be doing ;)

- Felix

^ permalink raw reply

* Re: [ath5k-devel] [PATCH v3] ath5k: disable ASPM
From: Maxim Levitsky @ 2010-07-26 20:49 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Bob Copeland, Luis R. Rodriguez, Jussi Kivilinna,
	ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org,
	linux-kernel, kernel-team, tim.gardner, Matthew Garrett,
	David Quan
In-Reply-To: <20100726201322.GI14855@tux>

On Mon, 2010-07-26 at 13:13 -0700, Luis R. Rodriguez wrote: 
> On Sat, Jun 19, 2010 at 08:32:44AM -0700, Maxim Levitsky wrote:
> > On Sat, 2010-06-19 at 16:02 +0300, Maxim Levitsky wrote: 
> > > On Sat, 2010-06-19 at 08:38 -0400, Bob Copeland wrote: 
> > > > On Sat, Jun 19, 2010 at 10:49:34AM +0300, Maxim Levitsky wrote:
> > > > > How this patch?
> > > > 
> > > > Looks fine to me.  Some nitpicking below but feel free to add my
> > > > 
> > > > Acked-by: Bob Copeland <me@bobcopeland.com>
> > > > 
> > Done.
> > 
> > Best regards,
> > Maxim Levitsky
> > 
> > --- 
> > 
> > commit 616afa397b3e843f2aba06be12a30e72dfff7740
> > Author: Maxim Levitsky <maximlevitsky@gmail.com>
> > Date:   Thu Jun 17 23:21:42 2010 +0300
> > 
> >     ath5k: disable ASPM
> >     
> >     Atheros card on Acer Aspire One (AOA150, Atheros Communications Inc. AR5001
> >     Wireless Network Adapter [168c:001c] (rev 01)) doesn't work well with ASPM
> >     enabled. With ASPM ath5k will eventually stall on heavy traffic with often
> >     'unsupported jumbo' warnings appearing. Disabling ASPM L0s in ath5k fixes
> >     these problems.
> >     Also card sends a storm of RXORN interrupts even though medium is idle.
> >     
> >     Reproduced with pcie_aspm=force and by using 'nc < /dev/zero > /dev/null' at
> >     both ends (usually stalls within seconds).
> >     
> >     Unfortunately BIOS enables ASPM on this card by default on these machines
> >     This means that, problem shows up (less often) without pcie_aspm=force too. 
> >     Therefore to benefit from this fix you need to _enable_ CONFIG_PCIEASPM
> >     
> > 
> >     All credit for this patch goes to Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> >     for finding and fixing this bug.
> >     
> >     Based on patch that is
> >     From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> >     
> >     
> >     Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
> >     Acked-by: Bob Copeland <me@bobcopeland.com>
> 
> Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> 
> But please resubmit and completley modify the commit log to indicate
> ath5k cards support ASPM but L0s must be disabled, only L1
> works correctly.
> 
> The comments about ASPM force should be removed as it would
> lead others to try to use the same and the fact of the matter is
> that ASPM force should never be used. As was clarified out of
> some of these discussions worth noting also is that in newer
> kernels CONFIG_PCIEASPM=y will always become the default, for
> older kernels this was never the default and some distributions
> (Ubunutu) do not have this enabled, the benefit of having it
> enabled is it will disable ASPM for these cases:
> 
> (a) the PCIE device is pre PCIE 1.1
> (b) the firmware has the FADT flag set to tell you not to and
> (c) the firmware doesn't grant control via _OSC. The powersave policy will
> enable ASPM even if the BIOS didn't, but only if something else doesn't
> tell us not to.
> 
> The last two checks were only recently added by Mathew and forcing
> CONFIG_PCIEASPM=y was also only recently made default.
> 
> In short, Linux distributions should also start enabling
> CONFIG_PCIEASPM=y on older kernels.


Just one note that since at least my ath5k device is pre 1.1, and you
say that L1 can be enabled, and should, I probably need to enable L1
explicitly in the driver.

OK?

Best regards,
Maxim Levitsky

> 
>   Luis
> 
> > 
> > diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
> > index 3abbe75..4f6bd7c 100644
> > --- a/drivers/net/wireless/ath/ath5k/base.c
> > +++ b/drivers/net/wireless/ath/ath5k/base.c
> > @@ -48,6 +48,7 @@
> >  #include <linux/netdevice.h>
> >  #include <linux/cache.h>
> >  #include <linux/pci.h>
> > +#include <linux/pci-aspm.h>
> >  #include <linux/ethtool.h>
> >  #include <linux/uaccess.h>
> >  #include <linux/slab.h>
> > @@ -469,6 +470,19 @@ ath5k_pci_probe(struct pci_dev *pdev,
> >  	int ret;
> >  	u8 csz;
> >  
> > +	/*
> > +	 * Disable PCIE ASPM L0S on the card.
> > +	 * ASPM triggers hardware bug, that makes card stall transmission
> > +	 * untill reset, and even that doesn't always help.
> > +	 * This happens on meduim to heavy transmit utilization.
> > +	 * In addition to stall, hardware usually gives a storm of
> > +	 * RXORN interrupts, despite idle channel, and otherwise doesn't work.
> > +	 * Windows driver also disables the L0s ASPM,
> > +	 * probably due to same reason
> > +	 * Note: to benefit from this fix, please _enable_ CONFIG_PCIEASPM
> > +	 */
> > +	pci_disable_link_state(pdev, PCIE_LINK_STATE_L0S);
> > +
> >  	ret = pci_enable_device(pdev);
> >  	if (ret) {
> >  		dev_err(&pdev->dev, "can't enable device\n");
> > 
> > 
> > _______________________________________________
> > ath5k-devel mailing list
> > ath5k-devel@lists.ath5k.org
> > https://lists.ath5k.org/mailman/listinfo/ath5k-devel



^ permalink raw reply

* Re: [ath5k-devel] [PATCH v3] ath5k: disable ASPM
From: Luis R. Rodriguez @ 2010-07-26 21:06 UTC (permalink / raw)
  To: Maxim Levitsky
  Cc: Luis Rodriguez, Bob Copeland, Luis R. Rodriguez, Jussi Kivilinna,
	ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org,
	linux-kernel, kernel-team@lists.ubuntu.com,
	tim.gardner@canonical.com, Matthew Garrett, David Quan
In-Reply-To: <1280177362.3721.7.camel@maxim-laptop>

On Mon, Jul 26, 2010 at 01:49:22PM -0700, Maxim Levitsky wrote:
> On Mon, 2010-07-26 at 13:13 -0700, Luis R. Rodriguez wrote: 
> > On Sat, Jun 19, 2010 at 08:32:44AM -0700, Maxim Levitsky wrote:
> > > On Sat, 2010-06-19 at 16:02 +0300, Maxim Levitsky wrote: 
> > > > On Sat, 2010-06-19 at 08:38 -0400, Bob Copeland wrote: 
> > > > > On Sat, Jun 19, 2010 at 10:49:34AM +0300, Maxim Levitsky wrote:
> > > > > > How this patch?
> > > > > 
> > > > > Looks fine to me.  Some nitpicking below but feel free to add my
> > > > > 
> > > > > Acked-by: Bob Copeland <me@bobcopeland.com>
> > > > > 
> > > Done.
> > > 
> > > Best regards,
> > > Maxim Levitsky
> > > 
> > > --- 
> > > 
> > > commit 616afa397b3e843f2aba06be12a30e72dfff7740
> > > Author: Maxim Levitsky <maximlevitsky@gmail.com>
> > > Date:   Thu Jun 17 23:21:42 2010 +0300
> > > 
> > >     ath5k: disable ASPM
> > >     
> > >     Atheros card on Acer Aspire One (AOA150, Atheros Communications Inc. AR5001
> > >     Wireless Network Adapter [168c:001c] (rev 01)) doesn't work well with ASPM
> > >     enabled. With ASPM ath5k will eventually stall on heavy traffic with often
> > >     'unsupported jumbo' warnings appearing. Disabling ASPM L0s in ath5k fixes
> > >     these problems.
> > >     Also card sends a storm of RXORN interrupts even though medium is idle.
> > >     
> > >     Reproduced with pcie_aspm=force and by using 'nc < /dev/zero > /dev/null' at
> > >     both ends (usually stalls within seconds).
> > >     
> > >     Unfortunately BIOS enables ASPM on this card by default on these machines
> > >     This means that, problem shows up (less often) without pcie_aspm=force too. 
> > >     Therefore to benefit from this fix you need to _enable_ CONFIG_PCIEASPM
> > >     
> > > 
> > >     All credit for this patch goes to Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> > >     for finding and fixing this bug.
> > >     
> > >     Based on patch that is
> > >     From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> > >     
> > >     
> > >     Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
> > >     Acked-by: Bob Copeland <me@bobcopeland.com>
> > 
> > Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> > 
> > But please resubmit and completley modify the commit log to indicate
> > ath5k cards support ASPM but L0s must be disabled, only L1
> > works correctly.
> > 
> > The comments about ASPM force should be removed as it would
> > lead others to try to use the same and the fact of the matter is
> > that ASPM force should never be used. As was clarified out of
> > some of these discussions worth noting also is that in newer
> > kernels CONFIG_PCIEASPM=y will always become the default, for
> > older kernels this was never the default and some distributions
> > (Ubunutu) do not have this enabled, the benefit of having it
> > enabled is it will disable ASPM for these cases:
> > 
> > (a) the PCIE device is pre PCIE 1.1
> > (b) the firmware has the FADT flag set to tell you not to and
> > (c) the firmware doesn't grant control via _OSC. The powersave policy will
> > enable ASPM even if the BIOS didn't, but only if something else doesn't
> > tell us not to.
> > 
> > The last two checks were only recently added by Mathew and forcing
> > CONFIG_PCIEASPM=y was also only recently made default.
> > 
> > In short, Linux distributions should also start enabling
> > CONFIG_PCIEASPM=y on older kernels.
> 
> 
> Just one note that since at least my ath5k device is pre 1.1, and you
> say that L1 can be enabled, and should, I probably need to enable L1
> explicitly in the driver.
> 
> OK?

No, ASPM must be enabled by the Systems Integrator through the BIOS, there are
other settings that have to be taken care of like modifying some PCI entrance and
exit latency timers, the number of FTS packets we send to exit L0s, amongst
other things. If a user selectively enables L1 but the BIOS had it disabled on
the device it may not work correctly.

In other words leave the settings as-is on your card unless you developing
for a company to enable ASPM yourself or you are willing to take the risks.
Tweaks like force enabling a device to use ASPM should only then be done in
userspace and by an end user. This is not something Linux distributions should
let users tweak. Its a hacker task.

However, it is reasonable to force disable L0s, for example, completley on
the driver if it is known that L0s does not work for all chisets supported
on that driver.

  Luis

^ permalink raw reply

* Re: [ath5k-devel] [PATCH v3] ath5k: disable ASPM
From: Matthew Garrett @ 2010-07-26 21:14 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Maxim Levitsky, Luis Rodriguez, Bob Copeland, Luis R. Rodriguez,
	Jussi Kivilinna, ath5k-devel@lists.ath5k.org,
	linux-wireless@vger.kernel.org, linux-kernel,
	kernel-team@lists.ubuntu.com, tim.gardner@canonical.com,
	David Quan
In-Reply-To: <20100726210651.GJ14855@tux>

On Mon, Jul 26, 2010 at 02:06:51PM -0700, Luis R. Rodriguez wrote:

> No, ASPM must be enabled by the Systems Integrator through the BIOS, there are
> other settings that have to be taken care of like modifying some PCI entrance and
> exit latency timers, the number of FTS packets we send to exit L0s, amongst
> other things. If a user selectively enables L1 but the BIOS had it disabled on
> the device it may not work correctly.

That's really the job of the driver. If the ASPM policy is set to 
powersave, the fadt doesn't indicate that ASPM should be disabled and 
the bus's _OSC method grants full control then the kernel will enable 
whatever combination of L states meet the latency constraints. If the 
hardware has additional constraints then the hardware-specific driver 
needs to handle them.

We don't rely on the BIOS to set up ASPM states. Nor does Windows.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

^ permalink raw reply

* Re: [ath5k-devel] [PATCH v3] ath5k: disable ASPM
From: Maxim Levitsky @ 2010-07-26 21:17 UTC (permalink / raw)
  To: Luis R. Rodriguez
  Cc: Luis Rodriguez, Bob Copeland, Luis R. Rodriguez, Jussi Kivilinna,
	ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org,
	linux-kernel, kernel-team@lists.ubuntu.com,
	tim.gardner@canonical.com, Matthew Garrett, David Quan
In-Reply-To: <20100726210651.GJ14855@tux>

On Mon, 2010-07-26 at 14:06 -0700, Luis R. Rodriguez wrote: 
> On Mon, Jul 26, 2010 at 01:49:22PM -0700, Maxim Levitsky wrote:
> > On Mon, 2010-07-26 at 13:13 -0700, Luis R. Rodriguez wrote: 
> > > On Sat, Jun 19, 2010 at 08:32:44AM -0700, Maxim Levitsky wrote:
> > > > On Sat, 2010-06-19 at 16:02 +0300, Maxim Levitsky wrote: 
> > > > > On Sat, 2010-06-19 at 08:38 -0400, Bob Copeland wrote: 
> > > > > > On Sat, Jun 19, 2010 at 10:49:34AM +0300, Maxim Levitsky wrote:
> > > > > > > How this patch?
> > > > > > 
> > > > > > Looks fine to me.  Some nitpicking below but feel free to add my
> > > > > > 
> > > > > > Acked-by: Bob Copeland <me@bobcopeland.com>
> > > > > > 
> > > > Done.
> > > > 
> > > > Best regards,
> > > > Maxim Levitsky
> > > > 
> > > > --- 
> > > > 
> > > > commit 616afa397b3e843f2aba06be12a30e72dfff7740
> > > > Author: Maxim Levitsky <maximlevitsky@gmail.com>
> > > > Date:   Thu Jun 17 23:21:42 2010 +0300
> > > > 
> > > >     ath5k: disable ASPM
> > > >     
> > > >     Atheros card on Acer Aspire One (AOA150, Atheros Communications Inc. AR5001
> > > >     Wireless Network Adapter [168c:001c] (rev 01)) doesn't work well with ASPM
> > > >     enabled. With ASPM ath5k will eventually stall on heavy traffic with often
> > > >     'unsupported jumbo' warnings appearing. Disabling ASPM L0s in ath5k fixes
> > > >     these problems.
> > > >     Also card sends a storm of RXORN interrupts even though medium is idle.
> > > >     
> > > >     Reproduced with pcie_aspm=force and by using 'nc < /dev/zero > /dev/null' at
> > > >     both ends (usually stalls within seconds).
> > > >     
> > > >     Unfortunately BIOS enables ASPM on this card by default on these machines
> > > >     This means that, problem shows up (less often) without pcie_aspm=force too. 
> > > >     Therefore to benefit from this fix you need to _enable_ CONFIG_PCIEASPM
> > > >     
> > > > 
> > > >     All credit for this patch goes to Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> > > >     for finding and fixing this bug.
> > > >     
> > > >     Based on patch that is
> > > >     From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
> > > >     
> > > >     
> > > >     Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
> > > >     Acked-by: Bob Copeland <me@bobcopeland.com>
> > > 
> > > Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
> > > 
> > > But please resubmit and completley modify the commit log to indicate
> > > ath5k cards support ASPM but L0s must be disabled, only L1
> > > works correctly.
> > > 
> > > The comments about ASPM force should be removed as it would
> > > lead others to try to use the same and the fact of the matter is
> > > that ASPM force should never be used. As was clarified out of
> > > some of these discussions worth noting also is that in newer
> > > kernels CONFIG_PCIEASPM=y will always become the default, for
> > > older kernels this was never the default and some distributions
> > > (Ubunutu) do not have this enabled, the benefit of having it
> > > enabled is it will disable ASPM for these cases:
> > > 
> > > (a) the PCIE device is pre PCIE 1.1
> > > (b) the firmware has the FADT flag set to tell you not to and
> > > (c) the firmware doesn't grant control via _OSC. The powersave policy will
> > > enable ASPM even if the BIOS didn't, but only if something else doesn't
> > > tell us not to.
> > > 
> > > The last two checks were only recently added by Mathew and forcing
> > > CONFIG_PCIEASPM=y was also only recently made default.
> > > 
> > > In short, Linux distributions should also start enabling
> > > CONFIG_PCIEASPM=y on older kernels.
> > 
> > 
> > Just one note that since at least my ath5k device is pre 1.1, and you
> > say that L1 can be enabled, and should, I probably need to enable L1
> > explicitly in the driver.
> > 
> > OK?
> 
> No, ASPM must be enabled by the Systems Integrator through the BIOS, there are
> other settings that have to be taken care of like modifying some PCI entrance and
> exit latency timers, the number of FTS packets we send to exit L0s, amongst
> other things. If a user selectively enables L1 but the BIOS had it disabled on
> the device it may not work correctly.
> 
> In other words leave the settings as-is on your card unless you developing
> for a company to enable ASPM yourself or you are willing to take the risks.
> Tweaks like force enabling a device to use ASPM should only then be done in
> userspace and by an end user. This is not something Linux distributions should
> let users tweak. Its a hacker task.
> 
> However, it is reasonable to force disable L0s, for example, completley on
> the driver if it is known that L0s does not work for all chisets supported
> on that driver.

You didn't understand me.


On my notebook, the AR5001 device is marked as pre 1.1 PCIE device.

ASPM *is* enabled for both L0s and L1 by BIOS.

Linux disables ASPM because the device is pre 1.1, and things work fine
with no more patching (assuming that CONFIG_PCIEASPM is set)


However, it is possible, (and that what I asked you) that some ath5k
devices aren't 'pre 1.1 pcie devices' so linux won't disable ASPM L0s
for them.
So indeed for 'good feeling' it is ok to disable L0s from ath5k
explicitly, but most of the time (or always) it will be no-op.

In *addition* to that, since you said that ASPM L1 *does* work, and is
enabled by BIOS, but linux disables it, that it might be worthy to
enable it again from ath5k driver explicitly.
As long as wireless works I don't really care if this done or not.


Best regards,
Maxim Levitsky


^ permalink raw reply

* Intel Wireless: Microcode SW error detected.
From: Malthe Borch @ 2010-07-26 21:19 UTC (permalink / raw)
  To: linux-wireless

[-- Attachment #1: Type: text/plain, Size: 150 bytes --]

I get this with the latest and greatest Intel firmware 9.221.4.1 build 25532.

Ultimately enabling the device fails with: "uCode did not respond OK."

[-- Attachment #2: dmesg --]
[-- Type: application/octet-stream, Size: 3233 bytes --]

[   35.882305] iwlagn 0000:02:00.0: Microcode SW error detected.  Restarting 0x82000000.
[   35.882313] iwlagn 0000:02:00.0: Loaded firmware version: 9.221.4.1 build 25532
[   35.882318] iwlagn 0000:02:00.0: Not valid error log pointer 0x00000000 for RT uCode
[   35.882322] iwlagn 0000:02:00.0: CSR values:
[   35.882325] iwlagn 0000:02:00.0: (2nd byte of CSR_INT_COALESCING is CSR_INT_PERIODIC_REG)
[   35.882333] iwlagn 0000:02:00.0:        CSR_HW_IF_CONFIG_REG: 0X00480303
[   35.882339] iwlagn 0000:02:00.0:          CSR_INT_COALESCING: 0X00000040
[   35.882346] iwlagn 0000:02:00.0:                     CSR_INT: 0X80000000
[   35.882353] iwlagn 0000:02:00.0:                CSR_INT_MASK: 0X00000000
[   35.882359] iwlagn 0000:02:00.0:           CSR_FH_INT_STATUS: 0X40010000
[   35.882365] iwlagn 0000:02:00.0:                 CSR_GPIO_IN: 0X0000000f
[   35.882371] iwlagn 0000:02:00.0:                   CSR_RESET: 0X00000000
[   35.882377] iwlagn 0000:02:00.0:                CSR_GP_CNTRL: 0X080403c5
[   35.882383] iwlagn 0000:02:00.0:                  CSR_HW_REV: 0X00000074
[   35.882389] iwlagn 0000:02:00.0:              CSR_EEPROM_REG: 0X00000000
[   35.882396] iwlagn 0000:02:00.0:               CSR_EEPROM_GP: 0X90000004
[   35.882403] iwlagn 0000:02:00.0:              CSR_OTP_GP_REG: 0X00020000
[   35.882408] iwlagn 0000:02:00.0:                 CSR_GIO_REG: 0X00080046
[   35.882415] iwlagn 0000:02:00.0:            CSR_GP_UCODE_REG: 0X00000000
[   35.882421] iwlagn 0000:02:00.0:           CSR_GP_DRIVER_REG: 0X00000000
[   35.882427] iwlagn 0000:02:00.0:           CSR_UCODE_DRV_GP1: 0X00000000
[   35.882433] iwlagn 0000:02:00.0:           CSR_UCODE_DRV_GP2: 0X00000000
[   35.882439] iwlagn 0000:02:00.0:                 CSR_LED_REG: 0X00000018
[   35.882446] iwlagn 0000:02:00.0:        CSR_DRAM_INT_TBL_REG: 0X00000000
[   35.882452] iwlagn 0000:02:00.0:        CSR_GIO_CHICKEN_BITS: 0X27800200
[   35.882458] iwlagn 0000:02:00.0:             CSR_ANA_PLL_CFG: 0X00000000
[   35.882466] iwlagn 0000:02:00.0:           CSR_HW_REV_WA_REG: 0X0001001a
[   35.882470] iwlagn 0000:02:00.0:        CSR_DBG_HPET_MEM_REG: 0Xffff0000
[   35.882472] iwlagn 0000:02:00.0: FH register values:
[   35.882484] iwlagn 0000:02:00.0:         FH_RSCSR_CHNL0_STTS_WPTR_REG: 0X0259b200
[   35.882497] iwlagn 0000:02:00.0:        FH_RSCSR_CHNL0_RBDCB_BASE_REG: 0X00259b50
[   35.882510] iwlagn 0000:02:00.0:                  FH_RSCSR_CHNL0_WPTR: 0X000000f8
[   35.882523] iwlagn 0000:02:00.0:         FH_MEM_RCSR_CHNL0_CONFIG_REG: 0X80819104
[   35.882535] iwlagn 0000:02:00.0:          FH_MEM_RSSR_SHARED_CTRL_REG: 0X000000fc
[   35.882548] iwlagn 0000:02:00.0:            FH_MEM_RSSR_RX_STATUS_REG: 0X07030000
[   35.882560] iwlagn 0000:02:00.0:    FH_MEM_RSSR_RX_ENABLE_ERR_IRQ2DRV: 0X00000000
[   35.882573] iwlagn 0000:02:00.0:                FH_TSSR_TX_STATUS_REG: 0X07ff0001
[   35.882586] iwlagn 0000:02:00.0:                 FH_TSSR_TX_ERROR_REG: 0X00000000
[   35.882588] iwlagn 0000:02:00.0: Invalid event log pointer 0x00000000 for RT uCode
[   35.882594] iwlagn 0000:02:00.0: uCode did not respond OK.
[   37.381061] eth0: no IPv6 routers present
[   39.848203] iwlagn 0000:02:00.0: START_ALIVE timeout after 4000ms.

^ permalink raw reply

* Re: [ath5k-devel] [PATCH v3] ath5k: disable ASPM
From: Matthew Garrett @ 2010-07-26 21:25 UTC (permalink / raw)
  To: Maxim Levitsky
  Cc: Luis R. Rodriguez, Luis Rodriguez, Bob Copeland,
	Luis R. Rodriguez, Jussi Kivilinna, ath5k-devel@lists.ath5k.org,
	linux-wireless@vger.kernel.org, linux-kernel,
	kernel-team@lists.ubuntu.com, tim.gardner@canonical.com,
	David Quan
In-Reply-To: <1280179033.3721.15.camel@maxim-laptop>

On Tue, Jul 27, 2010 at 12:17:13AM +0300, Maxim Levitsky wrote:

> However, it is possible, (and that what I asked you) that some ath5k
> devices aren't 'pre 1.1 pcie devices' so linux won't disable ASPM L0s
> for them.
> So indeed for 'good feeling' it is ok to disable L0s from ath5k
> explicitly, but most of the time (or always) it will be no-op.
> 
> In *addition* to that, since you said that ASPM L1 *does* work, and is
> enabled by BIOS, but linux disables it, that it might be worthy to
> enable it again from ath5k driver explicitly.
> As long as wireless works I don't really care if this done or not.

This may need to be done on a chip by chip basis. Take a look at 
http://www.atheros.cz/inffile.php?inf=68&bit=32&atheros=AR5002G&system=4 
and some of the other inf files on that site to see which devices 
provide the PciASPMOptIn flag - those should support ASPM states even if 
they're pre-1.1 devices.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

^ permalink raw reply

* [PATCH net-next 1/4] include/net/cfg80211.h: Add wiphy_<level> printk equivalents
From: Joe Perches @ 2010-07-26 21:39 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, netdev, linux-kernel
In-Reply-To: <cover.1280177971.git.joe@perches.com>

Simplify logging messages for wiphy devices

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/net/cfg80211.h |   64 +++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 63 insertions(+), 1 deletions(-)

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 4d1f19d..7fe774c 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1416,7 +1416,7 @@ static inline struct device *wiphy_dev(struct wiphy *wiphy)
  *
  * @wiphy: The wiphy whose name to return
  */
-static inline const char *wiphy_name(struct wiphy *wiphy)
+static inline const char *wiphy_name(const struct wiphy *wiphy)
 {
 	return dev_name(&wiphy->dev);
 }
@@ -2420,4 +2420,66 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev,
 			      enum nl80211_cqm_rssi_threshold_event rssi_event,
 			      gfp_t gfp);
 
+#ifdef __KERNEL__
+
+/* Logging, debugging and troubleshooting/diagnostic helpers. */
+
+/* wiphy_printk helpers, similar to dev_printk */
+
+#define wiphy_printk(level, wiphy, format, args...)		\
+	printk(level "%s: " format, wiphy_name(wiphy), ##args)
+#define wiphy_emerg(wiphy, format, args...)			\
+	wiphy_printk(KERN_EMERG, wiphy, format, ##args)
+#define wiphy_alert(wiphy, format, args...)			\
+	wiphy_printk(KERN_ALERT, wiphy, format, ##args)
+#define wiphy_crit(wiphy, format, args...)			\
+	wiphy_printk(KERN_CRIT, wiphy, format, ##args)
+#define wiphy_err(wiphy, format, args...)			\
+	wiphy_printk(KERN_ERR, wiphy, format, ##args)
+#define wiphy_warn(wiphy, format, args...)			\
+	wiphy_printk(KERN_WARNING, wiphy, format, ##args)
+#define wiphy_notice(wiphy, format, args...)			\
+	wiphy_printk(KERN_NOTICE, wiphy, format, ##args)
+#define wiphy_info(wiphy, format, args...)			\
+	wiphy_printk(KERN_INFO, wiphy, format, ##args)
+#define wiphy_debug(wiphy, format, args...)			\
+	wiphy_printk(KERN_DEBUG, wiphy, format, ##args)
+
+#if defined(DEBUG)
+#define wiphy_dbg(wiphy, format, args...)			\
+	wiphy_printk(KERN_DEBUG, wiphy, format, ##args)
+#elif defined(CONFIG_DYNAMIC_DEBUG)
+#define wiphy_dbg(wiphy, format, args...)			\
+	dynamic_pr_debug("%s: " format,	wiphy_name(dev), ##args)
+#else
+#define wiphy_dbg(wiphy, format, args...)				\
+({									\
+	if (0)								\
+		wiphy_printk(KERN_DEBUG, wiphy, format, ##args);	\
+	0;								\
+})
+#endif
+
+#if defined(VERBOSE_DEBUG)
+#define wiphy_vdbg	wiphy_dbg
+#else
+
+#define wiphy_vdbg(wiphy, format, args...)				\
+({									\
+	if (0)								\
+		wiphy_printk(KERN_DEBUG, wiphy, format, ##args);	\
+		0;							\
+})
+#endif
+
+/*
+ * wiphy_WARN() acts like wiphy_printk(), but with the key difference
+ * of using a WARN/WARN_ON to get the message out, including the
+ * file/line information and a backtrace.
+ */
+#define wiphy_WARN(wiphy, format, args...)			\
+	WARN(1, "wiphy: %s\n" format, wiphy_name(wiphy), ##args);
+
+#endif
+
 #endif /* __NET_CFG80211_H */
-- 
1.7.1


^ permalink raw reply related

* [PATCH net-next 0/4] wireless: Add and use wiphy_<level> logging macros
From: Joe Perches @ 2010-07-26 21:39 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, netdev, linux-kernel

Add some consistent use styles to wiphy messages

Joe Perches (4):
  include/net/cfg80211.h: Add wiphy_<level> printk equivalents
  drivers/net/wireless: Use wiphy_<level>
  drivers/net/wireless/at76c50x-usb.c: Neaten macros
  wireless: Convert wiphy_debug macro to function

 drivers/net/wireless/adm8211.c                 |   53 ++++----
 drivers/net/wireless/at76c50x-usb.c            |  168 +++++++++++------------
 drivers/net/wireless/ath/ar9170/cmd.c          |    7 +-
 drivers/net/wireless/ath/ar9170/led.c          |    4 +-
 drivers/net/wireless/ath/ar9170/main.c         |  172 +++++++++++-------------
 drivers/net/wireless/ath/ar9170/phy.c          |    8 +-
 drivers/net/wireless/ath/ath9k/ahb.c           |    7 +-
 drivers/net/wireless/ath/ath9k/pci.c           |    7 +-
 drivers/net/wireless/iwlwifi/iwl-agn.c         |   11 +-
 drivers/net/wireless/iwlwifi/iwl-core.c        |    2 +-
 drivers/net/wireless/iwlwifi/iwl3945-base.c    |   13 +-
 drivers/net/wireless/mac80211_hwsim.c          |   99 +++++++-------
 drivers/net/wireless/mwl8k.c                   |  123 +++++++----------
 drivers/net/wireless/orinoco/cfg.c             |    5 +-
 drivers/net/wireless/p54/eeprom.c              |   76 +++++------
 drivers/net/wireless/p54/fwio.c                |   53 ++++----
 drivers/net/wireless/p54/led.c                 |    8 +-
 drivers/net/wireless/p54/p54pci.c              |    3 +-
 drivers/net/wireless/p54/txrx.c                |   36 +++---
 drivers/net/wireless/rtl818x/rtl8180_dev.c     |   17 +--
 drivers/net/wireless/rtl818x/rtl8187_dev.c     |   11 +-
 drivers/net/wireless/rtl818x/rtl8187_rtl8225.c |    8 +-
 include/net/cfg80211.h                         |   65 +++++++++-
 net/wireless/core.c                            |   53 +++++++
 24 files changed, 528 insertions(+), 481 deletions(-)


^ permalink raw reply

* [PATCH net-next 4/4] wireless: Convert wiphy_debug macro to function
From: Joe Perches @ 2010-07-26 21:40 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, netdev, linux-kernel
In-Reply-To: <cover.1280177971.git.joe@perches.com>

Save a few bytes of text

(allyesconfig)
$ size drivers/net/wireless/built-in.o*
   text	   data	    bss	    dec	    hex	filename
3924568	 100548	 871056	4896172	 4ab5ac	drivers/net/wireless/built-in.o.new
3926520	 100548	 871464	4898532	 4abee4	drivers/net/wireless/built-in.o.old

$ size net/wireless/core.o*
   text	   data	    bss	    dec	    hex	filename
  12843	    216	   3768	  16827	   41bb	net/wireless/core.o.new
  12328	    216	   3656	  16200	   3f48	net/wireless/core.o

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/net/cfg80211.h |    5 ++-
 net/wireless/core.c    |   53 ++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+), 2 deletions(-)

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 7fe774c..ae80f8f 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2442,8 +2442,9 @@ void cfg80211_cqm_rssi_notify(struct net_device *dev,
 	wiphy_printk(KERN_NOTICE, wiphy, format, ##args)
 #define wiphy_info(wiphy, format, args...)			\
 	wiphy_printk(KERN_INFO, wiphy, format, ##args)
-#define wiphy_debug(wiphy, format, args...)			\
-	wiphy_printk(KERN_DEBUG, wiphy, format, ##args)
+
+int wiphy_debug(const struct wiphy *wiphy, const char *format, ...)
+	__attribute__ ((format (printf, 2, 3)));
 
 #if defined(DEBUG)
 #define wiphy_dbg(wiphy, format, args...)			\
diff --git a/net/wireless/core.c b/net/wireless/core.c
index f65c649..1f9de8a 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -907,3 +907,56 @@ static void __exit cfg80211_exit(void)
 	destroy_workqueue(cfg80211_wq);
 }
 module_exit(cfg80211_exit);
+
+#ifdef __KERNEL__
+
+static int ___wiphy_printk(const char *level, const struct wiphy *wiphy,
+			   struct va_format *vaf)
+{
+	if (!wiphy)
+		return printk("%s(NULL wiphy *): %pV", level, vaf);
+
+	return printk("%s%s: %pV", level, wiphy_name(wiphy), vaf);
+}
+
+int __wiphy_printk(const char *level, const struct wiphy *wiphy,
+		   const char *fmt, ...)
+{
+	struct va_format vaf;
+	va_list args;
+	int r;
+
+	va_start(args, fmt);
+
+	vaf.fmt = fmt;
+	vaf.va = &args;
+
+	r = ___wiphy_printk(level, wiphy, &vaf);
+	va_end(args);
+
+	return r;
+}
+EXPORT_SYMBOL(__wiphy_printk);
+
+#define define_wiphy_printk_level(func, kern_level)		\
+int func(const struct wiphy *wiphy, const char *fmt, ...)	\
+{								\
+	struct va_format vaf;					\
+	va_list args;						\
+	int r;							\
+								\
+	va_start(args, fmt);					\
+								\
+	vaf.fmt = fmt;						\
+	vaf.va = &args;						\
+								\
+	r = ___wiphy_printk(kern_level, wiphy, &vaf);		\
+	va_end(args);						\
+								\
+	return r;						\
+}								\
+EXPORT_SYMBOL(func);
+
+define_wiphy_printk_level(wiphy_debug, KERN_DEBUG);
+
+#endif
-- 
1.7.1


^ permalink raw reply related

* [PATCH net-next 3/4] drivers/net/wireless/at76c50x-usb.c: Neaten macros
From: Joe Perches @ 2010-07-26 21:39 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, netdev, linux-kernel
In-Reply-To: <cover.1280177971.git.joe@perches.com>

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/wireless/at76c50x-usb.c |   27 ++++++++++++---------------
 1 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index 9b0f055..d5140a8 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -89,22 +89,19 @@
 #define DBG_DEFAULTS		0
 
 /* Use our own dbg macro */
-#define at76_dbg(bits, format, arg...) \
-	do { \
-		if (at76_debug & (bits))				 \
-			printk(KERN_DEBUG DRIVER_NAME ": " format "\n" , \
-			       ## arg);					 \
-	} while (0)
-
-#define at76_dbg_dump(bits, buf, len, format, arg...)	\
-	do { \
-		if (at76_debug & (bits)) { \
-			printk(KERN_DEBUG DRIVER_NAME ": " format "\n" , \
-			       ## arg);					 \
-			print_hex_dump_bytes("", DUMP_PREFIX_OFFSET,     \
-					     buf, len);			 \
-		}							 \
-	} while (0)
+#define at76_dbg(bits, format, arg...)					\
+do {									\
+	if (at76_debug & (bits))					\
+		printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg);	\
+} while (0)
+
+#define at76_dbg_dump(bits, buf, len, format, arg...)			\
+do {									\
+	if (at76_debug & (bits)) {					\
+		printk(KERN_DEBUG DRIVER_NAME ": " format "\n", ##arg);	\
+		print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, buf, len);	\
+	}								\
+} while (0)
 
 static uint at76_debug = DBG_DEFAULTS;
 
-- 
1.7.1


^ permalink raw reply related

* [PATCH net-next 2/4] drivers/net/wireless: Use wiphy_<level>
From: Joe Perches @ 2010-07-26 21:39 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, netdev, linux-kernel
In-Reply-To: <cover.1280177971.git.joe@perches.com>

Standardize the logging macros used.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/wireless/adm8211.c                 |   53 ++++----
 drivers/net/wireless/at76c50x-usb.c            |  139 +++++++++----------
 drivers/net/wireless/ath/ar9170/cmd.c          |    7 +-
 drivers/net/wireless/ath/ar9170/led.c          |    4 +-
 drivers/net/wireless/ath/ar9170/main.c         |  172 +++++++++++-------------
 drivers/net/wireless/ath/ar9170/phy.c          |    8 +-
 drivers/net/wireless/ath/ath9k/ahb.c           |    7 +-
 drivers/net/wireless/ath/ath9k/pci.c           |    7 +-
 drivers/net/wireless/iwlwifi/iwl-agn.c         |   11 +-
 drivers/net/wireless/iwlwifi/iwl-core.c        |    2 +-
 drivers/net/wireless/iwlwifi/iwl3945-base.c    |   13 +-
 drivers/net/wireless/mac80211_hwsim.c          |   99 +++++++-------
 drivers/net/wireless/mwl8k.c                   |  123 +++++++----------
 drivers/net/wireless/orinoco/cfg.c             |    5 +-
 drivers/net/wireless/p54/eeprom.c              |   76 +++++------
 drivers/net/wireless/p54/fwio.c                |   53 ++++----
 drivers/net/wireless/p54/led.c                 |    8 +-
 drivers/net/wireless/p54/p54pci.c              |    3 +-
 drivers/net/wireless/p54/txrx.c                |   36 +++---
 drivers/net/wireless/rtl818x/rtl8180_dev.c     |   17 +--
 drivers/net/wireless/rtl818x/rtl8187_dev.c     |   11 +-
 drivers/net/wireless/rtl818x/rtl8187_rtl8225.c |    8 +-
 22 files changed, 398 insertions(+), 464 deletions(-)

diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c
index bde2fa8..a105087 100644
--- a/drivers/net/wireless/adm8211.c
+++ b/drivers/net/wireless/adm8211.c
@@ -373,8 +373,8 @@ static void adm8211_interrupt_rci(struct ieee80211_hw *dev)
 		pktlen = status & RDES0_STATUS_FL;
 		if (pktlen > RX_PKT_SIZE) {
 			if (net_ratelimit())
-				printk(KERN_DEBUG "%s: frame too long (%d)\n",
-				       wiphy_name(dev->wiphy), pktlen);
+				wiphy_debug(dev->wiphy, "frame too long (%d)\n",
+					    pktlen);
 			pktlen = RX_PKT_SIZE;
 		}
 
@@ -454,10 +454,10 @@ static void adm8211_interrupt_rci(struct ieee80211_hw *dev)
 
 static irqreturn_t adm8211_interrupt(int irq, void *dev_id)
 {
-#define ADM8211_INT(x)							   \
-do {									   \
-	if (unlikely(stsr & ADM8211_STSR_ ## x))			   \
-		printk(KERN_DEBUG "%s: " #x "\n", wiphy_name(dev->wiphy)); \
+#define ADM8211_INT(x)						\
+do {								\
+	if (unlikely(stsr & ADM8211_STSR_ ## x))		\
+		wiphy_debug(dev->wiphy, "%s\n", #x);		\
 } while (0)
 
 	struct ieee80211_hw *dev = dev_id;
@@ -570,9 +570,9 @@ static int adm8211_write_bbp(struct ieee80211_hw *dev, u8 addr, u8 data)
 	}
 
 	if (timeout == 0) {
-		printk(KERN_DEBUG "%s: adm8211_write_bbp(%d,%d) failed"
-		       " prewrite (reg=0x%08x)\n",
-		       wiphy_name(dev->wiphy), addr, data, reg);
+		wiphy_debug(dev->wiphy,
+			    "adm8211_write_bbp(%d,%d) failed prewrite (reg=0x%08x)\n",
+			    addr, data, reg);
 		return -ETIMEDOUT;
 	}
 
@@ -605,9 +605,9 @@ static int adm8211_write_bbp(struct ieee80211_hw *dev, u8 addr, u8 data)
 	if (timeout == 0) {
 		ADM8211_CSR_WRITE(BBPCTL, ADM8211_CSR_READ(BBPCTL) &
 				  ~ADM8211_BBPCTL_WR);
-		printk(KERN_DEBUG "%s: adm8211_write_bbp(%d,%d) failed"
-		       " postwrite (reg=0x%08x)\n",
-		       wiphy_name(dev->wiphy), addr, data, reg);
+		wiphy_debug(dev->wiphy,
+			    "adm8211_write_bbp(%d,%d) failed postwrite (reg=0x%08x)\n",
+			    addr, data, reg);
 		return -ETIMEDOUT;
 	}
 
@@ -675,8 +675,8 @@ static int adm8211_rf_set_channel(struct ieee80211_hw *dev, unsigned int chan)
 		break;
 
 	default:
-		printk(KERN_DEBUG "%s: unsupported transceiver type %d\n",
-		       wiphy_name(dev->wiphy), priv->transceiver_type);
+		wiphy_debug(dev->wiphy, "unsupported transceiver type %d\n",
+			    priv->transceiver_type);
 		break;
 	}
 
@@ -732,8 +732,8 @@ static int adm8211_rf_set_channel(struct ieee80211_hw *dev, unsigned int chan)
 
 	/* Nothing to do for ADMtek BBP */
 	} else if (priv->bbp_type != ADM8211_TYPE_ADMTEK)
-		printk(KERN_DEBUG "%s: unsupported BBP type %d\n",
-		       wiphy_name(dev->wiphy), priv->bbp_type);
+		wiphy_debug(dev->wiphy, "unsupported bbp type %d\n",
+			    priv->bbp_type);
 
 	ADM8211_RESTORE();
 
@@ -1027,13 +1027,12 @@ static int adm8211_hw_init_bbp(struct ieee80211_hw *dev)
 			break;
 
 		default:
-			printk(KERN_DEBUG "%s: unsupported transceiver %d\n",
-			       wiphy_name(dev->wiphy), priv->transceiver_type);
+			wiphy_debug(dev->wiphy, "unsupported transceiver %d\n",
+				    priv->transceiver_type);
 			break;
 		}
 	} else
-		printk(KERN_DEBUG "%s: unsupported BBP %d\n",
-		       wiphy_name(dev->wiphy), priv->bbp_type);
+		wiphy_debug(dev->wiphy, "unsupported bbp %d\n", priv->bbp_type);
 
 	ADM8211_CSR_WRITE(SYNRF, 0);
 
@@ -1509,15 +1508,13 @@ static int adm8211_start(struct ieee80211_hw *dev)
 	/* Power up MAC and RF chips */
 	retval = adm8211_hw_reset(dev);
 	if (retval) {
-		printk(KERN_ERR "%s: hardware reset failed\n",
-		       wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "hardware reset failed\n");
 		goto fail;
 	}
 
 	retval = adm8211_init_rings(dev);
 	if (retval) {
-		printk(KERN_ERR "%s: failed to initialize rings\n",
-		       wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "failed to initialize rings\n");
 		goto fail;
 	}
 
@@ -1528,8 +1525,7 @@ static int adm8211_start(struct ieee80211_hw *dev)
 	retval = request_irq(priv->pdev->irq, adm8211_interrupt,
 			     IRQF_SHARED, "adm8211", dev);
 	if (retval) {
-		printk(KERN_ERR "%s: failed to register IRQ handler\n",
-		       wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "failed to register irq handler\n");
 		goto fail;
 	}
 
@@ -1906,9 +1902,8 @@ static int __devinit adm8211_probe(struct pci_dev *pdev,
 		goto err_free_eeprom;
 	}
 
-	printk(KERN_INFO "%s: hwaddr %pM, Rev 0x%02x\n",
-	       wiphy_name(dev->wiphy), dev->wiphy->perm_addr,
-	       pdev->revision);
+	wiphy_info(dev->wiphy, "hwaddr %pm, rev 0x%02x\n",
+		   dev->wiphy->perm_addr, pdev->revision);
 
 	return 0;
 
diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
index cd8caea..9b0f055 100644
--- a/drivers/net/wireless/at76c50x-usb.c
+++ b/drivers/net/wireless/at76c50x-usb.c
@@ -658,8 +658,8 @@ static int at76_get_hw_config(struct at76_priv *priv)
 exit:
 	kfree(hwcfg);
 	if (ret < 0)
-		printk(KERN_ERR "%s: cannot get HW Config (error %d)\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "cannot get hw config (error %d)\n",
+			  ret);
 
 	return ret;
 }
@@ -794,8 +794,9 @@ static int at76_wait_completion(struct at76_priv *priv, int cmd)
 	do {
 		status = at76_get_cmd_status(priv->udev, cmd);
 		if (status < 0) {
-			printk(KERN_ERR "%s: at76_get_cmd_status failed: %d\n",
-			       wiphy_name(priv->hw->wiphy), status);
+			wiphy_err(priv->hw->wiphy,
+				  "at76_get_cmd_status failed: %d\n",
+				  status);
 			break;
 		}
 
@@ -810,9 +811,8 @@ static int at76_wait_completion(struct at76_priv *priv, int cmd)
 
 		schedule_timeout_interruptible(HZ / 10);	/* 100 ms */
 		if (time_after(jiffies, timeout)) {
-			printk(KERN_ERR
-			       "%s: completion timeout for command %d\n",
-			       wiphy_name(priv->hw->wiphy), cmd);
+			wiphy_err(priv->hw->wiphy,
+				  "completion timeout for command %d\n", cmd);
 			status = -ETIMEDOUT;
 			break;
 		}
@@ -833,9 +833,9 @@ static int at76_set_mib(struct at76_priv *priv, struct set_mib_buffer *buf)
 
 	ret = at76_wait_completion(priv, CMD_SET_MIB);
 	if (ret != CMD_STATUS_COMPLETE) {
-		printk(KERN_INFO
-		       "%s: set_mib: at76_wait_completion failed "
-		       "with %d\n", wiphy_name(priv->hw->wiphy), ret);
+		wiphy_info(priv->hw->wiphy,
+			   "set_mib: at76_wait_completion failed with %d\n",
+			   ret);
 		ret = -EIO;
 	}
 
@@ -855,8 +855,8 @@ static int at76_set_radio(struct at76_priv *priv, int enable)
 
 	ret = at76_set_card_command(priv->udev, cmd, NULL, 0);
 	if (ret < 0)
-		printk(KERN_ERR "%s: at76_set_card_command(%d) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), cmd, ret);
+		wiphy_err(priv->hw->wiphy,
+			  "at76_set_card_command(%d) failed: %d\n", cmd, ret);
 	else
 		ret = 1;
 
@@ -876,8 +876,8 @@ static int at76_set_pm_mode(struct at76_priv *priv)
 
 	ret = at76_set_mib(priv, &priv->mib_buf);
 	if (ret < 0)
-		printk(KERN_ERR "%s: set_mib (pm_mode) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "set_mib (pm_mode) failed: %d\n",
+			  ret);
 
 	return ret;
 }
@@ -893,8 +893,8 @@ static int at76_set_preamble(struct at76_priv *priv, u8 type)
 
 	ret = at76_set_mib(priv, &priv->mib_buf);
 	if (ret < 0)
-		printk(KERN_ERR "%s: set_mib (preamble) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "set_mib (preamble) failed: %d\n",
+			  ret);
 
 	return ret;
 }
@@ -910,8 +910,8 @@ static int at76_set_frag(struct at76_priv *priv, u16 size)
 
 	ret = at76_set_mib(priv, &priv->mib_buf);
 	if (ret < 0)
-		printk(KERN_ERR "%s: set_mib (frag threshold) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "set_mib (frag threshold) failed: %d\n", ret);
 
 	return ret;
 }
@@ -927,8 +927,7 @@ static int at76_set_rts(struct at76_priv *priv, u16 size)
 
 	ret = at76_set_mib(priv, &priv->mib_buf);
 	if (ret < 0)
-		printk(KERN_ERR "%s: set_mib (rts) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "set_mib (rts) failed: %d\n", ret);
 
 	return ret;
 }
@@ -944,8 +943,8 @@ static int at76_set_autorate_fallback(struct at76_priv *priv, int onoff)
 
 	ret = at76_set_mib(priv, &priv->mib_buf);
 	if (ret < 0)
-		printk(KERN_ERR "%s: set_mib (autorate fallback) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "set_mib (autorate fallback) failed: %d\n", ret);
 
 	return ret;
 }
@@ -963,8 +962,8 @@ static void at76_dump_mib_mac_addr(struct at76_priv *priv)
 	ret = at76_get_mib(priv->udev, MIB_MAC_ADDR, m,
 			   sizeof(struct mib_mac_addr));
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_get_mib (MAC_ADDR) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "at76_get_mib (mac_addr) failed: %d\n", ret);
 		goto exit;
 	}
 
@@ -992,8 +991,8 @@ static void at76_dump_mib_mac_wep(struct at76_priv *priv)
 	ret = at76_get_mib(priv->udev, MIB_MAC_WEP, m,
 			   sizeof(struct mib_mac_wep));
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_get_mib (MAC_WEP) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "at76_get_mib (mac_wep) failed: %d\n", ret);
 		goto exit;
 	}
 
@@ -1029,8 +1028,8 @@ static void at76_dump_mib_mac_mgmt(struct at76_priv *priv)
 	ret = at76_get_mib(priv->udev, MIB_MAC_MGMT, m,
 			   sizeof(struct mib_mac_mgmt));
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_get_mib (MAC_MGMT) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "at76_get_mib (mac_mgmt) failed: %d\n", ret);
 		goto exit;
 	}
 
@@ -1065,8 +1064,8 @@ static void at76_dump_mib_mac(struct at76_priv *priv)
 
 	ret = at76_get_mib(priv->udev, MIB_MAC, m, sizeof(struct mib_mac));
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_get_mib (MAC) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "at76_get_mib (mac) failed: %d\n", ret);
 		goto exit;
 	}
 
@@ -1102,8 +1101,8 @@ static void at76_dump_mib_phy(struct at76_priv *priv)
 
 	ret = at76_get_mib(priv->udev, MIB_PHY, m, sizeof(struct mib_phy));
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_get_mib (PHY) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "at76_get_mib (phy) failed: %d\n", ret);
 		goto exit;
 	}
 
@@ -1135,8 +1134,8 @@ static void at76_dump_mib_local(struct at76_priv *priv)
 
 	ret = at76_get_mib(priv->udev, MIB_LOCAL, m, sizeof(struct mib_local));
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_get_mib (LOCAL) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "at76_get_mib (local) failed: %d\n", ret);
 		goto exit;
 	}
 
@@ -1161,8 +1160,8 @@ static void at76_dump_mib_mdomain(struct at76_priv *priv)
 	ret = at76_get_mib(priv->udev, MIB_MDOMAIN, m,
 			   sizeof(struct mib_mdomain));
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_get_mib (MDOMAIN) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "at76_get_mib (mdomain) failed: %d\n", ret);
 		goto exit;
 	}
 
@@ -1233,16 +1232,16 @@ static int at76_submit_rx_urb(struct at76_priv *priv)
 	struct sk_buff *skb = priv->rx_skb;
 
 	if (!priv->rx_urb) {
-		printk(KERN_ERR "%s: %s: priv->rx_urb is NULL\n",
-		       wiphy_name(priv->hw->wiphy), __func__);
+		wiphy_err(priv->hw->wiphy, "%s: priv->rx_urb is null\n",
+			  __func__);
 		return -EFAULT;
 	}
 
 	if (!skb) {
 		skb = dev_alloc_skb(sizeof(struct at76_rx_buffer));
 		if (!skb) {
-			printk(KERN_ERR "%s: cannot allocate rx skbuff\n",
-			       wiphy_name(priv->hw->wiphy));
+			wiphy_err(priv->hw->wiphy,
+				  "cannot allocate rx skbuff\n");
 			ret = -ENOMEM;
 			goto exit;
 		}
@@ -1261,15 +1260,14 @@ static int at76_submit_rx_urb(struct at76_priv *priv)
 			at76_dbg(DBG_DEVSTART,
 				 "usb_submit_urb returned -ENODEV");
 		else
-			printk(KERN_ERR "%s: rx, usb_submit_urb failed: %d\n",
-			       wiphy_name(priv->hw->wiphy), ret);
+			wiphy_err(priv->hw->wiphy,
+				  "rx, usb_submit_urb failed: %d\n", ret);
 	}
 
 exit:
 	if (ret < 0 && ret != -ENODEV)
-		printk(KERN_ERR "%s: cannot submit rx urb - please unload the "
-		       "driver and/or power cycle the device\n",
-		       wiphy_name(priv->hw->wiphy));
+		wiphy_err(priv->hw->wiphy,
+			  "cannot submit rx urb - please unload the driver and/or power cycle the device\n");
 
 	return ret;
 }
@@ -1438,8 +1436,8 @@ static int at76_startup_device(struct at76_priv *priv)
 	ret = at76_set_card_command(priv->udev, CMD_STARTUP, &priv->card_config,
 				    sizeof(struct at76_card_config));
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_set_card_command failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "at76_set_card_command failed: %d\n",
+			  ret);
 		return ret;
 	}
 
@@ -1504,8 +1502,8 @@ static void at76_work_set_promisc(struct work_struct *work)
 
 	ret = at76_set_mib(priv, &priv->mib_buf);
 	if (ret < 0)
-		printk(KERN_ERR "%s: set_mib (promiscuous_mode) failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy,
+			  "set_mib (promiscuous_mode) failed: %d\n", ret);
 
 	mutex_unlock(&priv->mtx);
 }
@@ -1668,16 +1666,16 @@ static int at76_join(struct at76_priv *priv)
 				    sizeof(struct at76_req_join));
 
 	if (ret < 0) {
-		printk(KERN_ERR "%s: at76_set_card_command failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "at76_set_card_command failed: %d\n",
+			  ret);
 		return 0;
 	}
 
 	ret = at76_wait_completion(priv, CMD_JOIN);
 	at76_dbg(DBG_MAC80211, "%s: CMD_JOIN returned: 0x%02x", __func__, ret);
 	if (ret != CMD_STATUS_COMPLETE) {
-		printk(KERN_ERR "%s: at76_wait_completion failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "at76_wait_completion failed: %d\n",
+			  ret);
 		return 0;
 	}
 
@@ -1745,8 +1743,8 @@ static int at76_mac80211_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
 	at76_dbg(DBG_MAC80211, "%s()", __func__);
 
 	if (priv->tx_urb->status == -EINPROGRESS) {
-		printk(KERN_ERR "%s: %s called while tx urb is pending\n",
-		       wiphy_name(priv->hw->wiphy), __func__);
+		wiphy_err(priv->hw->wiphy,
+			  "%s called while tx urb is pending\n", __func__);
 		return NETDEV_TX_BUSY;
 	}
 
@@ -1794,13 +1792,12 @@ static int at76_mac80211_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
 			  submit_len, at76_mac80211_tx_callback, priv);
 	ret = usb_submit_urb(priv->tx_urb, GFP_ATOMIC);
 	if (ret) {
-		printk(KERN_ERR "%s: error in tx submit urb: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "error in tx submit urb: %d\n", ret);
 		if (ret == -EINVAL)
-			printk(KERN_ERR
-			       "%s: -EINVAL: tx urb %p hcpriv %p complete %p\n",
-			       wiphy_name(priv->hw->wiphy), priv->tx_urb,
-			       priv->tx_urb->hcpriv, priv->tx_urb->complete);
+			wiphy_err(priv->hw->wiphy,
+				  "-einval: tx urb %p hcpriv %p complete %p\n",
+				  priv->tx_urb,
+				  priv->tx_urb->hcpriv, priv->tx_urb->complete);
 	}
 
 	return 0;
@@ -1817,8 +1814,8 @@ static int at76_mac80211_start(struct ieee80211_hw *hw)
 
 	ret = at76_submit_rx_urb(priv);
 	if (ret < 0) {
-		printk(KERN_ERR "%s: open: submit_rx_urb failed: %d\n",
-		       wiphy_name(priv->hw->wiphy), ret);
+		wiphy_err(priv->hw->wiphy, "open: submit_rx_urb failed: %d\n",
+			  ret);
 		goto error;
 	}
 
@@ -2316,14 +2313,12 @@ static int at76_init_new_device(struct at76_priv *priv,
 
 	priv->mac80211_registered = 1;
 
-	printk(KERN_INFO "%s: USB %s, MAC %pM, firmware %d.%d.%d-%d\n",
-	       wiphy_name(priv->hw->wiphy),
-	       dev_name(&interface->dev), priv->mac_addr,
-	       priv->fw_version.major, priv->fw_version.minor,
-	       priv->fw_version.patch, priv->fw_version.build);
-	printk(KERN_INFO "%s: regulatory domain 0x%02x: %s\n",
-	       wiphy_name(priv->hw->wiphy),
-	       priv->regulatory_domain, priv->domain->name);
+	wiphy_info(priv->hw->wiphy, "usb %s, mac %pm, firmware %d.%d.%d-%d\n",
+		   dev_name(&interface->dev), priv->mac_addr,
+		   priv->fw_version.major, priv->fw_version.minor,
+		   priv->fw_version.patch, priv->fw_version.build);
+	wiphy_info(priv->hw->wiphy, "regulatory domain 0x%02x: %s\n",
+		   priv->regulatory_domain, priv->domain->name);
 
 exit:
 	return ret;
@@ -2485,7 +2480,7 @@ static void at76_disconnect(struct usb_interface *interface)
 	if (!priv)
 		return;
 
-	printk(KERN_INFO "%s: disconnecting\n", wiphy_name(priv->hw->wiphy));
+	wiphy_info(priv->hw->wiphy, "disconnecting\n");
 	at76_delete_device(priv);
 	dev_printk(KERN_INFO, &interface->dev, "disconnected\n");
 }
diff --git a/drivers/net/wireless/ath/ar9170/cmd.c b/drivers/net/wireless/ath/ar9170/cmd.c
index cf6f5c4..4604de0 100644
--- a/drivers/net/wireless/ath/ar9170/cmd.c
+++ b/drivers/net/wireless/ath/ar9170/cmd.c
@@ -48,8 +48,7 @@ int ar9170_write_mem(struct ar9170 *ar, const __le32 *data, size_t len)
 
 	err = ar->exec_cmd(ar, AR9170_CMD_WMEM, len, (u8 *) data, 0, NULL);
 	if (err)
-		printk(KERN_DEBUG "%s: writing memory failed\n",
-		       wiphy_name(ar->hw->wiphy));
+		wiphy_debug(ar->hw->wiphy, "writing memory failed\n");
 	return err;
 }
 
@@ -67,8 +66,8 @@ int ar9170_write_reg(struct ar9170 *ar, const u32 reg, const u32 val)
 	err = ar->exec_cmd(ar, AR9170_CMD_WREG, sizeof(buf),
 			   (u8 *) buf, 0, NULL);
 	if (err)
-		printk(KERN_DEBUG "%s: writing reg %#x (val %#x) failed\n",
-		       wiphy_name(ar->hw->wiphy), reg, val);
+		wiphy_debug(ar->hw->wiphy, "writing reg %#x (val %#x) failed\n",
+			    reg, val);
 	return err;
 }
 
diff --git a/drivers/net/wireless/ath/ar9170/led.c b/drivers/net/wireless/ath/ar9170/led.c
index 86c4e79..832d900 100644
--- a/drivers/net/wireless/ath/ar9170/led.c
+++ b/drivers/net/wireless/ath/ar9170/led.c
@@ -133,8 +133,8 @@ static int ar9170_register_led(struct ar9170 *ar, int i, char *name,
 	err = led_classdev_register(wiphy_dev(ar->hw->wiphy),
 				    &ar->leds[i].l);
 	if (err)
-		printk(KERN_ERR "%s: failed to register %s LED (%d).\n",
-		       wiphy_name(ar->hw->wiphy), ar->leds[i].name, err);
+		wiphy_err(ar->hw->wiphy, "failed to register %s LED (%d).\n",
+			  ar->leds[i].name, err);
 	else
 		ar->leds[i].registered = true;
 
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c
index 2abc875..5e2c514 100644
--- a/drivers/net/wireless/ath/ar9170/main.c
+++ b/drivers/net/wireless/ath/ar9170/main.c
@@ -198,12 +198,13 @@ static void ar9170_print_txheader(struct ar9170 *ar, struct sk_buff *skb)
 	struct ar9170_tx_info *arinfo = (void *) txinfo->rate_driver_data;
 	struct ieee80211_hdr *hdr = (void *) txc->frame_data;
 
-	printk(KERN_DEBUG "%s: => FRAME [skb:%p, q:%d, DA:[%pM] s:%d "
-			  "mac_ctrl:%04x, phy_ctrl:%08x, timeout:[%d ms]]\n",
-	       wiphy_name(ar->hw->wiphy), skb, skb_get_queue_mapping(skb),
-	       ieee80211_get_DA(hdr), ar9170_get_seq_h(hdr),
-	       le16_to_cpu(txc->mac_control), le32_to_cpu(txc->phy_control),
-	       jiffies_to_msecs(arinfo->timeout - jiffies));
+	wiphy_debug(ar->hw->wiphy,
+		    "=> FRAME [skb:%p, q:%d, DA:[%pM] s:%d "
+		    "mac_ctrl:%04x, phy_ctrl:%08x, timeout:[%d ms]]\n",
+		    skb, skb_get_queue_mapping(skb),
+		    ieee80211_get_DA(hdr), ar9170_get_seq_h(hdr),
+		    le16_to_cpu(txc->mac_control), le32_to_cpu(txc->phy_control),
+		    jiffies_to_msecs(arinfo->timeout - jiffies));
 }
 
 static void __ar9170_dump_txqueue(struct ar9170 *ar,
@@ -213,8 +214,8 @@ static void __ar9170_dump_txqueue(struct ar9170 *ar,
 	int i = 0;
 
 	printk(KERN_DEBUG "---[ cut here ]---\n");
-	printk(KERN_DEBUG "%s: %d entries in queue.\n",
-	       wiphy_name(ar->hw->wiphy), skb_queue_len(queue));
+	wiphy_debug(ar->hw->wiphy, "%d entries in queue.\n",
+		    skb_queue_len(queue));
 
 	skb_queue_walk(queue, skb) {
 		printk(KERN_DEBUG "index:%d =>\n", i++);
@@ -244,15 +245,14 @@ static void __ar9170_dump_txstats(struct ar9170 *ar)
 {
 	int i;
 
-	printk(KERN_DEBUG "%s: QoS queue stats\n",
-	       wiphy_name(ar->hw->wiphy));
+	wiphy_debug(ar->hw->wiphy, "qos queue stats\n");
 
 	for (i = 0; i < __AR9170_NUM_TXQ; i++)
-		printk(KERN_DEBUG "%s: queue:%d limit:%d len:%d waitack:%d "
-		       " stopped:%d\n", wiphy_name(ar->hw->wiphy), i,
-		       ar->tx_stats[i].limit, ar->tx_stats[i].len,
-		       skb_queue_len(&ar->tx_status[i]),
-		       ieee80211_queue_stopped(ar->hw, i));
+		wiphy_debug(ar->hw->wiphy,
+			    "queue:%d limit:%d len:%d waitack:%d stopped:%d\n",
+			    i, ar->tx_stats[i].limit, ar->tx_stats[i].len,
+			    skb_queue_len(&ar->tx_status[i]),
+			    ieee80211_queue_stopped(ar->hw, i));
 }
 #endif /* AR9170_QUEUE_STOP_DEBUG */
 
@@ -274,9 +274,9 @@ static void ar9170_recycle_expired(struct ar9170 *ar,
 
 		if (time_is_before_jiffies(arinfo->timeout)) {
 #ifdef AR9170_QUEUE_DEBUG
-			printk(KERN_DEBUG "%s: [%ld > %ld] frame expired => "
-			       "recycle\n", wiphy_name(ar->hw->wiphy),
-			       jiffies, arinfo->timeout);
+			wiphy_debug(ar->hw->wiphy,
+				    "[%ld > %ld] frame expired => recycle\n",
+				    jiffies, arinfo->timeout);
 			ar9170_print_txheader(ar, skb);
 #endif /* AR9170_QUEUE_DEBUG */
 			__skb_unlink(skb, queue);
@@ -317,8 +317,8 @@ static void ar9170_tx_status(struct ar9170 *ar, struct sk_buff *skb,
 		break;
 
 	default:
-		printk(KERN_ERR "%s: invalid tx_status response (%x).\n",
-		       wiphy_name(ar->hw->wiphy), tx_status);
+		wiphy_err(ar->hw->wiphy,
+			  "invalid tx_status response (%x)\n", tx_status);
 		break;
 	}
 
@@ -339,8 +339,7 @@ void ar9170_tx_callback(struct ar9170 *ar, struct sk_buff *skb)
 
 	if (ar->tx_stats[queue].len < AR9170_NUM_TX_LIMIT_SOFT) {
 #ifdef AR9170_QUEUE_STOP_DEBUG
-		printk(KERN_DEBUG "%s: wake queue %d\n",
-		       wiphy_name(ar->hw->wiphy), queue);
+		wiphy_debug(ar->hw->wiphy, "wake queue %d\n", queue);
 		__ar9170_dump_txstats(ar);
 #endif /* AR9170_QUEUE_STOP_DEBUG */
 		ieee80211_wake_queue(ar->hw, queue);
@@ -387,9 +386,9 @@ static struct sk_buff *ar9170_get_queued_skb(struct ar9170 *ar,
 
 		if (mac && compare_ether_addr(ieee80211_get_DA(hdr), mac)) {
 #ifdef AR9170_QUEUE_DEBUG
-			printk(KERN_DEBUG "%s: skip frame => DA %pM != %pM\n",
-			       wiphy_name(ar->hw->wiphy), mac,
-			       ieee80211_get_DA(hdr));
+			wiphy_debug(ar->hw->wiphy,
+				    "skip frame => da %pm != %pm\n",
+				    mac, ieee80211_get_DA(hdr));
 			ar9170_print_txheader(ar, skb);
 #endif /* AR9170_QUEUE_DEBUG */
 			continue;
@@ -400,8 +399,8 @@ static struct sk_buff *ar9170_get_queued_skb(struct ar9170 *ar,
 
 		if ((rate != AR9170_TX_INVALID_RATE) && (r != rate)) {
 #ifdef AR9170_QUEUE_DEBUG
-			printk(KERN_DEBUG "%s: skip frame => rate %d != %d\n",
-			       wiphy_name(ar->hw->wiphy), rate, r);
+			wiphy_debug(ar->hw->wiphy,
+				    "skip frame => rate %d != %d\n", rate, r);
 			ar9170_print_txheader(ar, skb);
 #endif /* AR9170_QUEUE_DEBUG */
 			continue;
@@ -413,9 +412,9 @@ static struct sk_buff *ar9170_get_queued_skb(struct ar9170 *ar,
 	}
 
 #ifdef AR9170_QUEUE_DEBUG
-	printk(KERN_ERR "%s: ESS:[%pM] does not have any "
-			"outstanding frames in queue.\n",
-			wiphy_name(ar->hw->wiphy), mac);
+	wiphy_err(ar->hw->wiphy,
+		  "ESS:[%pM] does not have any outstanding frames in queue.\n",
+		  mac);
 	__ar9170_dump_txqueue(ar, queue);
 #endif /* AR9170_QUEUE_DEBUG */
 	spin_unlock_irqrestore(&queue->lock, flags);
@@ -444,8 +443,8 @@ static void ar9170_tx_janitor(struct work_struct *work)
 
 	for (i = 0; i < __AR9170_NUM_TXQ; i++) {
 #ifdef AR9170_QUEUE_DEBUG
-		printk(KERN_DEBUG "%s: garbage collector scans queue:%d\n",
-		       wiphy_name(ar->hw->wiphy), i);
+		wiphy_debug(ar->hw->wiphy, "garbage collector scans queue:%d\n",
+			    i);
 		ar9170_dump_txqueue(ar, &ar->tx_pending[i]);
 		ar9170_dump_txqueue(ar, &ar->tx_status[i]);
 #endif /* AR9170_QUEUE_DEBUG */
@@ -495,8 +494,9 @@ void ar9170_handle_command_response(struct ar9170 *ar, void *buf, u32 len)
 		u32 q = (phy & AR9170_TX_PHY_QOS_MASK) >>
 			AR9170_TX_PHY_QOS_SHIFT;
 #ifdef AR9170_QUEUE_DEBUG
-		printk(KERN_DEBUG "%s: recv tx_status for %pM, p:%08x, q:%d\n",
-		       wiphy_name(ar->hw->wiphy), cmd->tx_status.dst, phy, q);
+		wiphy_debug(ar->hw->wiphy,
+			    "recv tx_status for %pm, p:%08x, q:%d\n",
+			    cmd->tx_status.dst, phy, q);
 #endif /* AR9170_QUEUE_DEBUG */
 
 		skb = ar9170_get_queued_skb(ar, cmd->tx_status.dst,
@@ -582,7 +582,7 @@ void ar9170_handle_command_response(struct ar9170 *ar, void *buf, u32 len)
 		break;
 
 	default:
-		printk(KERN_INFO "received unhandled event %x\n", cmd->type);
+		pr_info("received unhandled event %x\n", cmd->type);
 		print_hex_dump_bytes("dump:", DUMP_PREFIX_NONE, buf, len);
 		break;
 	}
@@ -675,9 +675,9 @@ static int ar9170_rx_mac_status(struct ar9170 *ar,
 		/* TODO: update netdevice's RX dropped/errors statistics */
 
 		if (ar9170_nag_limiter(ar))
-			printk(KERN_DEBUG "%s: received frame with "
-			       "suspicious error code (%#x).\n",
-			       wiphy_name(ar->hw->wiphy), error);
+			wiphy_debug(ar->hw->wiphy,
+				    "received frame with suspicious error code (%#x).\n",
+				    error);
 
 		return -EINVAL;
 	}
@@ -704,9 +704,9 @@ static int ar9170_rx_mac_status(struct ar9170 *ar,
 			break;
 		default:
 			if (ar9170_nag_limiter(ar))
-				printk(KERN_ERR "%s: invalid plcp cck rate "
-				       "(%x).\n", wiphy_name(ar->hw->wiphy),
-				       head->plcp[0]);
+				wiphy_err(ar->hw->wiphy,
+					  "invalid plcp cck rate (%x).\n",
+					  head->plcp[0]);
 			return -EINVAL;
 		}
 		break;
@@ -740,9 +740,9 @@ static int ar9170_rx_mac_status(struct ar9170 *ar,
 			break;
 		default:
 			if (ar9170_nag_limiter(ar))
-				printk(KERN_ERR "%s: invalid plcp ofdm rate "
-				       "(%x).\n", wiphy_name(ar->hw->wiphy),
-				       head->plcp[0]);
+				wiphy_err(ar->hw->wiphy,
+					  "invalid plcp ofdm rate (%x).\n",
+					  head->plcp[0]);
 			return -EINVAL;
 		}
 		if (status->band == IEEE80211_BAND_2GHZ)
@@ -761,8 +761,7 @@ static int ar9170_rx_mac_status(struct ar9170 *ar,
 
 	default:
 		if (ar9170_nag_limiter(ar))
-			printk(KERN_ERR "%s: invalid modulation\n",
-			       wiphy_name(ar->hw->wiphy));
+			wiphy_err(ar->hw->wiphy, "invalid modulation\n");
 		return -EINVAL;
 	}
 
@@ -863,8 +862,8 @@ static void ar9170_handle_mpdu(struct ar9170 *ar, u8 *buf, int len)
 			ar->rx_mpdu.has_plcp = true;
 		} else {
 			if (ar9170_nag_limiter(ar))
-				printk(KERN_ERR "%s: plcp info is clipped.\n",
-				       wiphy_name(ar->hw->wiphy));
+				wiphy_err(ar->hw->wiphy,
+					  "plcp info is clipped.\n");
 			return ;
 		}
 		break;
@@ -877,8 +876,8 @@ static void ar9170_handle_mpdu(struct ar9170 *ar, u8 *buf, int len)
 			phy = (void *)(buf + mpdu_len);
 		} else {
 			if (ar9170_nag_limiter(ar))
-				printk(KERN_ERR "%s: frame tail is clipped.\n",
-				       wiphy_name(ar->hw->wiphy));
+				wiphy_err(ar->hw->wiphy,
+					  "frame tail is clipped.\n");
 			return ;
 		}
 
@@ -888,9 +887,8 @@ static void ar9170_handle_mpdu(struct ar9170 *ar, u8 *buf, int len)
 			if (!ar9170_nag_limiter(ar))
 				return ;
 
-			printk(KERN_ERR "%s: rx stream did not start "
-					"with a first_mpdu frame tag.\n",
-			       wiphy_name(ar->hw->wiphy));
+			wiphy_err(ar->hw->wiphy,
+				  "rx stream did not start with a first_mpdu frame tag.\n");
 
 			return ;
 		}
@@ -954,8 +952,8 @@ void ar9170_rx(struct ar9170 *ar, struct sk_buff *skb)
 			if (!ar->rx_failover_missing) {
 				/* this is no "short read". */
 				if (ar9170_nag_limiter(ar)) {
-					printk(KERN_ERR "%s: missing tag!\n",
-					       wiphy_name(ar->hw->wiphy));
+					wiphy_err(ar->hw->wiphy,
+						  "missing tag!\n");
 					goto err_telluser;
 				} else
 					goto err_silent;
@@ -963,9 +961,8 @@ void ar9170_rx(struct ar9170 *ar, struct sk_buff *skb)
 
 			if (ar->rx_failover_missing > tlen) {
 				if (ar9170_nag_limiter(ar)) {
-					printk(KERN_ERR "%s: possible multi "
-					       "stream corruption!\n",
-					       wiphy_name(ar->hw->wiphy));
+					wiphy_err(ar->hw->wiphy,
+						  "possible multi stream corruption!\n");
 					goto err_telluser;
 				} else
 					goto err_silent;
@@ -997,9 +994,8 @@ void ar9170_rx(struct ar9170 *ar, struct sk_buff *skb)
 			if (ar->rx_failover_missing) {
 				/* TODO: handle double stream corruption. */
 				if (ar9170_nag_limiter(ar)) {
-					printk(KERN_ERR "%s: double rx stream "
-					       "corruption!\n",
-						wiphy_name(ar->hw->wiphy));
+					wiphy_err(ar->hw->wiphy,
+						  "double rx stream corruption!\n");
 					goto err_telluser;
 				} else
 					goto err_silent;
@@ -1042,9 +1038,9 @@ void ar9170_rx(struct ar9170 *ar, struct sk_buff *skb)
 
 	if (tlen) {
 		if (net_ratelimit())
-			printk(KERN_ERR "%s: %d bytes of unprocessed "
-					"data left in rx stream!\n",
-			       wiphy_name(ar->hw->wiphy), tlen);
+			wiphy_err(ar->hw->wiphy,
+				  "%d bytes of unprocessed data left in rx stream!\n",
+				  tlen);
 
 		goto err_telluser;
 	}
@@ -1052,10 +1048,9 @@ void ar9170_rx(struct ar9170 *ar, struct sk_buff *skb)
 	return ;
 
 err_telluser:
-	printk(KERN_ERR "%s: damaged RX stream data [want:%d, "
-			"data:%d, rx:%d, pending:%d ]\n",
-	       wiphy_name(ar->hw->wiphy), clen, wlen, tlen,
-	       ar->rx_failover_missing);
+	wiphy_err(ar->hw->wiphy,
+		  "damaged RX stream data [want:%d, data:%d, rx:%d, pending:%d ]\n",
+		  clen, wlen, tlen, ar->rx_failover_missing);
 
 	if (ar->rx_failover_missing)
 		print_hex_dump_bytes("rxbuf:", DUMP_PREFIX_OFFSET,
@@ -1065,9 +1060,8 @@ err_telluser:
 	print_hex_dump_bytes("stream:", DUMP_PREFIX_OFFSET,
 			     skb->data, skb->len);
 
-	printk(KERN_ERR "%s: please check your hardware and cables, if "
-			"you see this message frequently.\n",
-	       wiphy_name(ar->hw->wiphy));
+	wiphy_err(ar->hw->wiphy,
+		  "If you see this message frequently, please check your hardware and cables.\n");
 
 err_silent:
 	if (ar->rx_failover_missing) {
@@ -1384,10 +1378,10 @@ static void ar9170_tx(struct ar9170 *ar)
 
 		if (remaining_space < frames) {
 #ifdef AR9170_QUEUE_DEBUG
-			printk(KERN_DEBUG "%s: tx quota reached queue:%d, "
-			       "remaining slots:%d, needed:%d\n",
-			       wiphy_name(ar->hw->wiphy), i, remaining_space,
-			       frames);
+			wiphy_debug(ar->hw->wiphy,
+				    "tx quota reached queue:%d, "
+				    "remaining slots:%d, needed:%d\n",
+				    i, remaining_space, frames);
 #endif /* AR9170_QUEUE_DEBUG */
 			frames = remaining_space;
 		}
@@ -1396,18 +1390,14 @@ static void ar9170_tx(struct ar9170 *ar)
 		ar->tx_stats[i].count += frames;
 		if (ar->tx_stats[i].len >= ar->tx_stats[i].limit) {
 #ifdef AR9170_QUEUE_DEBUG
-			printk(KERN_DEBUG "%s: queue %d full\n",
-			       wiphy_name(ar->hw->wiphy), i);
-
-			printk(KERN_DEBUG "%s: stuck frames: ===>\n",
-			       wiphy_name(ar->hw->wiphy));
+			wiphy_debug(ar->hw->wiphy, "queue %d full\n", i);
+			wiphy_debug(ar->hw->wiphy, "stuck frames: ===>\n");
 			ar9170_dump_txqueue(ar, &ar->tx_pending[i]);
 			ar9170_dump_txqueue(ar, &ar->tx_status[i]);
 #endif /* AR9170_QUEUE_DEBUG */
 
 #ifdef AR9170_QUEUE_STOP_DEBUG
-			printk(KERN_DEBUG "%s: stop queue %d\n",
-			       wiphy_name(ar->hw->wiphy), i);
+			wiphy_debug(ar->hw->wiphy, "stop queue %d\n", i);
 			__ar9170_dump_txstats(ar);
 #endif /* AR9170_QUEUE_STOP_DEBUG */
 			ieee80211_stop_queue(ar->hw, i);
@@ -1435,8 +1425,7 @@ static void ar9170_tx(struct ar9170 *ar)
 					  msecs_to_jiffies(AR9170_TX_TIMEOUT);
 
 #ifdef AR9170_QUEUE_DEBUG
-			printk(KERN_DEBUG "%s: send frame q:%d =>\n",
-			       wiphy_name(ar->hw->wiphy), i);
+			wiphy_debug(ar->hw->wiphy, "send frame q:%d =>\n", i);
 			ar9170_print_txheader(ar, skb);
 #endif /* AR9170_QUEUE_DEBUG */
 
@@ -1453,26 +1442,25 @@ static void ar9170_tx(struct ar9170 *ar)
 		}
 
 #ifdef AR9170_QUEUE_DEBUG
-		printk(KERN_DEBUG "%s: ar9170_tx report for queue %d\n",
-		       wiphy_name(ar->hw->wiphy), i);
+		wiphy_debug(ar->hw->wiphy,
+			    "ar9170_tx report for queue %d\n", i);
 
-		printk(KERN_DEBUG "%s: unprocessed pending frames left:\n",
-		       wiphy_name(ar->hw->wiphy));
+		wiphy_debug(ar->hw->wiphy,
+			    "unprocessed pending frames left:\n");
 		ar9170_dump_txqueue(ar, &ar->tx_pending[i]);
 #endif /* AR9170_QUEUE_DEBUG */
 
 		if (unlikely(frames_failed)) {
 #ifdef AR9170_QUEUE_DEBUG
-			printk(KERN_DEBUG "%s: frames failed %d =>\n",
-			       wiphy_name(ar->hw->wiphy), frames_failed);
+			wiphy_debug(ar->hw->wiphy,
+				    "frames failed %d =>\n", frames_failed);
 #endif /* AR9170_QUEUE_DEBUG */
 
 			spin_lock_irqsave(&ar->tx_stats_lock, flags);
 			ar->tx_stats[i].len -= frames_failed;
 			ar->tx_stats[i].count -= frames_failed;
 #ifdef AR9170_QUEUE_STOP_DEBUG
-			printk(KERN_DEBUG "%s: wake queue %d\n",
-			       wiphy_name(ar->hw->wiphy), i);
+			wiphy_debug(ar->hw->wiphy, "wake queue %d\n", i);
 			__ar9170_dump_txstats(ar);
 #endif /* AR9170_QUEUE_STOP_DEBUG */
 			ieee80211_wake_queue(ar->hw, i);
diff --git a/drivers/net/wireless/ath/ar9170/phy.c b/drivers/net/wireless/ath/ar9170/phy.c
index 45a415e..0dbfcf7 100644
--- a/drivers/net/wireless/ath/ar9170/phy.c
+++ b/drivers/net/wireless/ath/ar9170/phy.c
@@ -670,8 +670,7 @@ static int ar9170_init_rf_banks_0_7(struct ar9170 *ar, bool band5ghz)
 	ar9170_regwrite_finish();
 	err = ar9170_regwrite_result();
 	if (err)
-		printk(KERN_ERR "%s: rf init failed\n",
-		       wiphy_name(ar->hw->wiphy));
+		wiphy_err(ar->hw->wiphy, "rf init failed\n");
 	return err;
 }
 
@@ -1702,9 +1701,8 @@ int ar9170_set_channel(struct ar9170 *ar, struct ieee80211_channel *channel,
 				       0x200 | ar->phy_heavy_clip);
 		if (err) {
 			if (ar9170_nag_limiter(ar))
-				printk(KERN_ERR "%s: failed to set "
-				       "heavy clip\n",
-				       wiphy_name(ar->hw->wiphy));
+				wiphy_err(ar->hw->wiphy,
+					  "failed to set heavy clip\n");
 		}
 	}
 
diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c
index 85fdd26..1a984b0 100644
--- a/drivers/net/wireless/ath/ath9k/ahb.c
+++ b/drivers/net/wireless/ath/ath9k/ahb.c
@@ -131,11 +131,8 @@ static int ath_ahb_probe(struct platform_device *pdev)
 
 	ah = sc->sc_ah;
 	ath9k_hw_name(ah, hw_name, sizeof(hw_name));
-	printk(KERN_INFO
-	       "%s: %s mem=0x%lx, irq=%d\n",
-	       wiphy_name(hw->wiphy),
-	       hw_name,
-	       (unsigned long)mem, irq);
+	wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n",
+		   hw_name, (unsigned long)mem, irq);
 
 	return 0;
 
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
index 257b10b..b5b6514 100644
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -209,11 +209,8 @@ static int ath_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	}
 
 	ath9k_hw_name(sc->sc_ah, hw_name, sizeof(hw_name));
-	printk(KERN_INFO
-	       "%s: %s mem=0x%lx, irq=%d\n",
-	       wiphy_name(hw->wiphy),
-	       hw_name,
-	       (unsigned long)mem, pdev->irq);
+	wiphy_info(hw->wiphy, "%s mem=0x%lx, irq=%d\n",
+		   hw_name, (unsigned long)mem, pdev->irq);
 
 	return 0;
 
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 7391c63..bf9a217 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -27,6 +27,8 @@
  *
  *****************************************************************************/
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
@@ -4389,19 +4391,18 @@ static int __init iwl_init(void)
 {
 
 	int ret;
-	printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n");
-	printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n");
+	pr_info(DRV_DESCRIPTION ", " DRV_VERSION "\n");
+	pr_info(DRV_COPYRIGHT "\n");
 
 	ret = iwlagn_rate_control_register();
 	if (ret) {
-		printk(KERN_ERR DRV_NAME
-		       "Unable to register rate control algorithm: %d\n", ret);
+		pr_err("Unable to register rate control algorithm: %d\n", ret);
 		return ret;
 	}
 
 	ret = pci_register_driver(&iwl_driver);
 	if (ret) {
-		printk(KERN_ERR DRV_NAME "Unable to initialize PCI module\n");
+		pr_err("Unable to initialize PCI module\n");
 		goto error_register;
 	}
 
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index 676d49d..73c4fda 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -170,7 +170,7 @@ struct ieee80211_hw *iwl_alloc_all(struct iwl_cfg *cfg,
 	struct ieee80211_hw *hw =
 		ieee80211_alloc_hw(sizeof(struct iwl_priv), hw_ops);
 	if (hw == NULL) {
-		printk(KERN_ERR "%s: Can not allocate network device\n",
+		pr_err("%s: Can not allocate network device\n",
 		       cfg->name);
 		goto out;
 	}
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 8eb3471..5a06ade 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -27,6 +27,8 @@
  *
  *****************************************************************************/
 
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
@@ -3932,7 +3934,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
 	 *   space for this driver's private structure */
 	hw = iwl_alloc_all(cfg, &iwl3945_hw_ops);
 	if (hw == NULL) {
-		printk(KERN_ERR DRV_NAME "Can not allocate network device\n");
+		pr_err("Can not allocate network device\n");
 		err = -ENOMEM;
 		goto out;
 	}
@@ -4224,19 +4226,18 @@ static int __init iwl3945_init(void)
 {
 
 	int ret;
-	printk(KERN_INFO DRV_NAME ": " DRV_DESCRIPTION ", " DRV_VERSION "\n");
-	printk(KERN_INFO DRV_NAME ": " DRV_COPYRIGHT "\n");
+	pr_info(DRV_DESCRIPTION ", " DRV_VERSION "\n");
+	pr_info(DRV_COPYRIGHT "\n");
 
 	ret = iwl3945_rate_control_register();
 	if (ret) {
-		printk(KERN_ERR DRV_NAME
-		       "Unable to register rate control algorithm: %d\n", ret);
+		pr_err("Unable to register rate control algorithm: %d\n", ret);
 		return ret;
 	}
 
 	ret = pci_register_driver(&iwl3945_driver);
 	if (ret) {
-		printk(KERN_ERR DRV_NAME "Unable to initialize PCI module\n");
+		pr_err("Unable to initialize PCI module\n");
 		goto error_register;
 	}
 
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index e7f299d..01ad7f7 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -486,8 +486,7 @@ static bool mac80211_hwsim_tx_frame(struct ieee80211_hw *hw,
 	struct ieee80211_rx_status rx_status;
 
 	if (data->idle) {
-		printk(KERN_DEBUG "%s: Trying to TX when idle - reject\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_debug(hw->wiphy, "trying to tx when idle - reject\n");
 		return false;
 	}
 
@@ -576,7 +575,7 @@ static int mac80211_hwsim_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
 static int mac80211_hwsim_start(struct ieee80211_hw *hw)
 {
 	struct mac80211_hwsim_data *data = hw->priv;
-	printk(KERN_DEBUG "%s:%s\n", wiphy_name(hw->wiphy), __func__);
+	wiphy_debug(hw->wiphy, "%s\n", __func__);
 	data->started = 1;
 	return 0;
 }
@@ -587,16 +586,15 @@ static void mac80211_hwsim_stop(struct ieee80211_hw *hw)
 	struct mac80211_hwsim_data *data = hw->priv;
 	data->started = 0;
 	del_timer(&data->beacon_timer);
-	printk(KERN_DEBUG "%s:%s\n", wiphy_name(hw->wiphy), __func__);
+	wiphy_debug(hw->wiphy, "%s\n", __func__);
 }
 
 
 static int mac80211_hwsim_add_interface(struct ieee80211_hw *hw,
 					struct ieee80211_vif *vif)
 {
-	printk(KERN_DEBUG "%s:%s (type=%d mac_addr=%pM)\n",
-	       wiphy_name(hw->wiphy), __func__, vif->type,
-	       vif->addr);
+	wiphy_debug(hw->wiphy, "%s (type=%d mac_addr=%pM)\n",
+		    __func__, vif->type, vif->addr);
 	hwsim_set_magic(vif);
 	return 0;
 }
@@ -605,9 +603,8 @@ static int mac80211_hwsim_add_interface(struct ieee80211_hw *hw,
 static void mac80211_hwsim_remove_interface(
 	struct ieee80211_hw *hw, struct ieee80211_vif *vif)
 {
-	printk(KERN_DEBUG "%s:%s (type=%d mac_addr=%pM)\n",
-	       wiphy_name(hw->wiphy), __func__, vif->type,
-	       vif->addr);
+	wiphy_debug(hw->wiphy, "%s (type=%d mac_addr=%pM)\n",
+		    __func__, vif->type, vif->addr);
 	hwsim_check_magic(vif);
 	hwsim_clear_magic(vif);
 }
@@ -670,13 +667,14 @@ static int mac80211_hwsim_config(struct ieee80211_hw *hw, u32 changed)
 		[IEEE80211_SMPS_DYNAMIC] = "dynamic",
 	};
 
-	printk(KERN_DEBUG "%s:%s (freq=%d/%s idle=%d ps=%d smps=%s)\n",
-	       wiphy_name(hw->wiphy), __func__,
-	       conf->channel->center_freq,
-	       hwsim_chantypes[conf->channel_type],
-	       !!(conf->flags & IEEE80211_CONF_IDLE),
-	       !!(conf->flags & IEEE80211_CONF_PS),
-	       smps_modes[conf->smps_mode]);
+	wiphy_debug(hw->wiphy,
+		    "%s (freq=%d/%s idle=%d ps=%d smps=%s)\n",
+		    __func__,
+		    conf->channel->center_freq,
+		    hwsim_chantypes[conf->channel_type],
+		    !!(conf->flags & IEEE80211_CONF_IDLE),
+		    !!(conf->flags & IEEE80211_CONF_PS),
+		    smps_modes[conf->smps_mode]);
 
 	data->idle = !!(conf->flags & IEEE80211_CONF_IDLE);
 
@@ -696,7 +694,7 @@ static void mac80211_hwsim_configure_filter(struct ieee80211_hw *hw,
 {
 	struct mac80211_hwsim_data *data = hw->priv;
 
-	printk(KERN_DEBUG "%s:%s\n", wiphy_name(hw->wiphy), __func__);
+	wiphy_debug(hw->wiphy, "%s\n", __func__);
 
 	data->rx_filter = 0;
 	if (*total_flags & FIF_PROMISC_IN_BSS)
@@ -717,26 +715,23 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw,
 
 	hwsim_check_magic(vif);
 
-	printk(KERN_DEBUG "%s:%s(changed=0x%x)\n",
-	       wiphy_name(hw->wiphy), __func__, changed);
+	wiphy_debug(hw->wiphy, "%s(changed=0x%x)\n", __func__, changed);
 
 	if (changed & BSS_CHANGED_BSSID) {
-		printk(KERN_DEBUG "%s:%s: BSSID changed: %pM\n",
-		       wiphy_name(hw->wiphy), __func__,
-		       info->bssid);
+		wiphy_debug(hw->wiphy, "%s: BSSID changed: %pM\n",
+			    __func__, info->bssid);
 		memcpy(vp->bssid, info->bssid, ETH_ALEN);
 	}
 
 	if (changed & BSS_CHANGED_ASSOC) {
-		printk(KERN_DEBUG "  %s: ASSOC: assoc=%d aid=%d\n",
-		       wiphy_name(hw->wiphy), info->assoc, info->aid);
+		wiphy_debug(hw->wiphy, "  ASSOC: assoc=%d aid=%d\n",
+			    info->assoc, info->aid);
 		vp->assoc = info->assoc;
 		vp->aid = info->aid;
 	}
 
 	if (changed & BSS_CHANGED_BEACON_INT) {
-		printk(KERN_DEBUG "  %s: BCNINT: %d\n",
-		       wiphy_name(hw->wiphy), info->beacon_int);
+		wiphy_debug(hw->wiphy, "  BCNINT: %d\n", info->beacon_int);
 		data->beacon_int = 1024 * info->beacon_int / 1000 * HZ / 1000;
 		if (WARN_ON(!data->beacon_int))
 			data->beacon_int = 1;
@@ -746,31 +741,28 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw,
 	}
 
 	if (changed & BSS_CHANGED_ERP_CTS_PROT) {
-		printk(KERN_DEBUG "  %s: ERP_CTS_PROT: %d\n",
-		       wiphy_name(hw->wiphy), info->use_cts_prot);
+		wiphy_debug(hw->wiphy, "  ERP_CTS_PROT: %d\n",
+			    info->use_cts_prot);
 	}
 
 	if (changed & BSS_CHANGED_ERP_PREAMBLE) {
-		printk(KERN_DEBUG "  %s: ERP_PREAMBLE: %d\n",
-		       wiphy_name(hw->wiphy), info->use_short_preamble);
+		wiphy_debug(hw->wiphy, "  ERP_PREAMBLE: %d\n",
+			    info->use_short_preamble);
 	}
 
 	if (changed & BSS_CHANGED_ERP_SLOT) {
-		printk(KERN_DEBUG "  %s: ERP_SLOT: %d\n",
-		       wiphy_name(hw->wiphy), info->use_short_slot);
+		wiphy_debug(hw->wiphy, "  ERP_SLOT: %d\n", info->use_short_slot);
 	}
 
 	if (changed & BSS_CHANGED_HT) {
-		printk(KERN_DEBUG "  %s: HT: op_mode=0x%x, chantype=%s\n",
-		       wiphy_name(hw->wiphy),
-		       info->ht_operation_mode,
-		       hwsim_chantypes[info->channel_type]);
+		wiphy_debug(hw->wiphy, "  HT: op_mode=0x%x, chantype=%s\n",
+			    info->ht_operation_mode,
+			    hwsim_chantypes[info->channel_type]);
 	}
 
 	if (changed & BSS_CHANGED_BASIC_RATES) {
-		printk(KERN_DEBUG "  %s: BASIC_RATES: 0x%llx\n",
-		       wiphy_name(hw->wiphy),
-		       (unsigned long long) info->basic_rates);
+		wiphy_debug(hw->wiphy, "  BASIC_RATES: 0x%llx\n",
+			    (unsigned long long) info->basic_rates);
 	}
 }
 
@@ -824,10 +816,11 @@ static int mac80211_hwsim_conf_tx(
 	struct ieee80211_hw *hw, u16 queue,
 	const struct ieee80211_tx_queue_params *params)
 {
-	printk(KERN_DEBUG "%s:%s (queue=%d txop=%d cw_min=%d cw_max=%d "
-	       "aifs=%d)\n",
-	       wiphy_name(hw->wiphy), __func__, queue,
-	       params->txop, params->cw_min, params->cw_max, params->aifs);
+	wiphy_debug(hw->wiphy,
+		    "%s (queue=%d txop=%d cw_min=%d cw_max=%d aifs=%d)\n",
+		    __func__, queue,
+		    params->txop, params->cw_min,
+		    params->cw_max, params->aifs);
 	return 0;
 }
 
@@ -837,8 +830,7 @@ static int mac80211_hwsim_get_survey(
 {
 	struct ieee80211_conf *conf = &hw->conf;
 
-	printk(KERN_DEBUG "%s:%s (idx=%d)\n",
-	       wiphy_name(hw->wiphy), __func__, idx);
+	wiphy_debug(hw->wiphy, "%s (idx=%d)\n", __func__, idx);
 
 	if (idx != 0)
 		return -ENOENT;
@@ -1108,8 +1100,9 @@ static void hwsim_send_ps_poll(void *dat, u8 *mac, struct ieee80211_vif *vif)
 	if (!vp->assoc)
 		return;
 
-	printk(KERN_DEBUG "%s:%s: send PS-Poll to %pM for aid %d\n",
-	       wiphy_name(data->hw->wiphy), __func__, vp->bssid, vp->aid);
+	wiphy_debug(data->hw->wiphy,
+		    "%s: send PS-Poll to %pM for aid %d\n",
+		    __func__, vp->bssid, vp->aid);
 
 	skb = dev_alloc_skb(sizeof(*pspoll));
 	if (!skb)
@@ -1137,8 +1130,9 @@ static void hwsim_send_nullfunc(struct mac80211_hwsim_data *data, u8 *mac,
 	if (!vp->assoc)
 		return;
 
-	printk(KERN_DEBUG "%s:%s: send data::nullfunc to %pM ps=%d\n",
-	       wiphy_name(data->hw->wiphy), __func__, vp->bssid, ps);
+	wiphy_debug(data->hw->wiphy,
+		    "%s: send data::nullfunc to %pM ps=%d\n",
+		    __func__, vp->bssid, ps);
 
 	skb = dev_alloc_skb(sizeof(*hdr));
 	if (!skb)
@@ -1473,9 +1467,8 @@ static int __init init_mac80211_hwsim(void)
 			break;
 		}
 
-		printk(KERN_DEBUG "%s: hwaddr %pM registered\n",
-		       wiphy_name(hw->wiphy),
-		       hw->wiphy->perm_addr);
+		wiphy_debug(hw->wiphy, "hwaddr %pm registered\n",
+			    hw->wiphy->perm_addr);
 
 		data->debugfs = debugfs_create_dir("hwsim",
 						   hw->wiphy->debugfsdir);
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c
index 0e34260..28beeaf 100644
--- a/drivers/net/wireless/mwl8k.c
+++ b/drivers/net/wireless/mwl8k.c
@@ -905,16 +905,14 @@ static int mwl8k_rxq_init(struct ieee80211_hw *hw, int index)
 
 	rxq->rxd = pci_alloc_consistent(priv->pdev, size, &rxq->rxd_dma);
 	if (rxq->rxd == NULL) {
-		printk(KERN_ERR "%s: failed to alloc RX descriptors\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "failed to alloc rx descriptors\n");
 		return -ENOMEM;
 	}
 	memset(rxq->rxd, 0, size);
 
 	rxq->buf = kmalloc(MWL8K_RX_DESCS * sizeof(*rxq->buf), GFP_KERNEL);
 	if (rxq->buf == NULL) {
-		printk(KERN_ERR "%s: failed to alloc RX skbuff list\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "failed to alloc rx skbuff list\n");
 		pci_free_consistent(priv->pdev, size, rxq->rxd, rxq->rxd_dma);
 		return -ENOMEM;
 	}
@@ -1141,16 +1139,14 @@ static int mwl8k_txq_init(struct ieee80211_hw *hw, int index)
 
 	txq->txd = pci_alloc_consistent(priv->pdev, size, &txq->txd_dma);
 	if (txq->txd == NULL) {
-		printk(KERN_ERR "%s: failed to alloc TX descriptors\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "failed to alloc tx descriptors\n");
 		return -ENOMEM;
 	}
 	memset(txq->txd, 0, size);
 
 	txq->skb = kmalloc(MWL8K_TX_DESCS * sizeof(*txq->skb), GFP_KERNEL);
 	if (txq->skb == NULL) {
-		printk(KERN_ERR "%s: failed to alloc TX skbuff list\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "failed to alloc tx skbuff list\n");
 		pci_free_consistent(priv->pdev, size, txq->txd, txq->txd_dma);
 		return -ENOMEM;
 	}
@@ -1206,11 +1202,12 @@ static void mwl8k_dump_tx_rings(struct ieee80211_hw *hw)
 				unused++;
 		}
 
-		printk(KERN_ERR "%s: txq[%d] len=%d head=%d tail=%d "
-		       "fw_owned=%d drv_owned=%d unused=%d\n",
-		       wiphy_name(hw->wiphy), i,
-		       txq->len, txq->head, txq->tail,
-		       fw_owned, drv_owned, unused);
+		wiphy_err(hw->wiphy,
+			  "txq[%d] len=%d head=%d tail=%d "
+			  "fw_owned=%d drv_owned=%d unused=%d\n",
+			  i,
+			  txq->len, txq->head, txq->tail,
+			  fw_owned, drv_owned, unused);
 	}
 }
 
@@ -1254,25 +1251,23 @@ static int mwl8k_tx_wait_empty(struct ieee80211_hw *hw)
 		if (timeout) {
 			WARN_ON(priv->pending_tx_pkts);
 			if (retry) {
-				printk(KERN_NOTICE "%s: tx rings drained\n",
-				       wiphy_name(hw->wiphy));
+				wiphy_notice(hw->wiphy, "tx rings drained\n");
 			}
 			break;
 		}
 
 		if (priv->pending_tx_pkts < oldcount) {
-			printk(KERN_NOTICE "%s: waiting for tx rings "
-			       "to drain (%d -> %d pkts)\n",
-			       wiphy_name(hw->wiphy), oldcount,
-			       priv->pending_tx_pkts);
+			wiphy_notice(hw->wiphy,
+				     "waiting for tx rings to drain (%d -> %d pkts)\n",
+				     oldcount, priv->pending_tx_pkts);
 			retry = 1;
 			continue;
 		}
 
 		priv->tx_wait = NULL;
 
-		printk(KERN_ERR "%s: tx rings stuck for %d ms\n",
-		       wiphy_name(hw->wiphy), MWL8K_TX_WAIT_TIMEOUT_MS);
+		wiphy_err(hw->wiphy, "tx rings stuck for %d ms\n",
+			  MWL8K_TX_WAIT_TIMEOUT_MS);
 		mwl8k_dump_tx_rings(hw);
 
 		rc = -ETIMEDOUT;
@@ -1423,8 +1418,8 @@ mwl8k_txq_xmit(struct ieee80211_hw *hw, int index, struct sk_buff *skb)
 				skb->len, PCI_DMA_TODEVICE);
 
 	if (pci_dma_mapping_error(priv->pdev, dma)) {
-		printk(KERN_DEBUG "%s: failed to dma map skb, "
-		       "dropping TX frame.\n", wiphy_name(hw->wiphy));
+		wiphy_debug(hw->wiphy,
+			    "failed to dma map skb, dropping TX frame.\n");
 		dev_kfree_skb(skb);
 		return NETDEV_TX_OK;
 	}
@@ -1572,10 +1567,9 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd)
 					PCI_DMA_BIDIRECTIONAL);
 
 	if (!timeout) {
-		printk(KERN_ERR "%s: Command %s timeout after %u ms\n",
-		       wiphy_name(hw->wiphy),
-		       mwl8k_cmd_name(cmd->code, buf, sizeof(buf)),
-		       MWL8K_CMD_TIMEOUT_MS);
+		wiphy_err(hw->wiphy, "command %s timeout after %u ms\n",
+			  mwl8k_cmd_name(cmd->code, buf, sizeof(buf)),
+			  MWL8K_CMD_TIMEOUT_MS);
 		rc = -ETIMEDOUT;
 	} else {
 		int ms;
@@ -1584,15 +1578,14 @@ static int mwl8k_post_cmd(struct ieee80211_hw *hw, struct mwl8k_cmd_pkt *cmd)
 
 		rc = cmd->result ? -EINVAL : 0;
 		if (rc)
-			printk(KERN_ERR "%s: Command %s error 0x%x\n",
-			       wiphy_name(hw->wiphy),
-			       mwl8k_cmd_name(cmd->code, buf, sizeof(buf)),
-			       le16_to_cpu(cmd->result));
+			wiphy_err(hw->wiphy, "command %s error 0x%x\n",
+				  mwl8k_cmd_name(cmd->code, buf, sizeof(buf)),
+				  le16_to_cpu(cmd->result));
 		else if (ms > 2000)
-			printk(KERN_NOTICE "%s: Command %s took %d ms\n",
-			       wiphy_name(hw->wiphy),
-			       mwl8k_cmd_name(cmd->code, buf, sizeof(buf)),
-			       ms);
+			wiphy_notice(hw->wiphy, "command %s took %d ms\n",
+				     mwl8k_cmd_name(cmd->code,
+						    buf, sizeof(buf)),
+				     ms);
 	}
 
 	return rc;
@@ -3192,8 +3185,8 @@ static int mwl8k_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
 	int rc;
 
 	if (!priv->radio_on) {
-		printk(KERN_DEBUG "%s: dropped TX frame since radio "
-		       "disabled\n", wiphy_name(hw->wiphy));
+		wiphy_debug(hw->wiphy,
+			    "dropped TX frame since radio disabled\n");
 		dev_kfree_skb(skb);
 		return NETDEV_TX_OK;
 	}
@@ -3211,8 +3204,7 @@ static int mwl8k_start(struct ieee80211_hw *hw)
 	rc = request_irq(priv->pdev->irq, mwl8k_interrupt,
 			 IRQF_SHARED, MWL8K_NAME, hw);
 	if (rc) {
-		printk(KERN_ERR "%s: failed to register IRQ handler\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "failed to register irq handler\n");
 		return -EIO;
 	}
 
@@ -3299,9 +3291,8 @@ static int mwl8k_add_interface(struct ieee80211_hw *hw,
 	 * mode.  (Sniffer mode is only used on STA firmware.)
 	 */
 	if (priv->sniffer_enabled) {
-		printk(KERN_INFO "%s: unable to create STA "
-		       "interface due to sniffer mode being enabled\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_info(hw->wiphy,
+			   "unable to create STA interface because sniffer mode is enabled\n");
 		return -EINVAL;
 	}
 
@@ -3583,9 +3574,8 @@ mwl8k_configure_filter_sniffer(struct ieee80211_hw *hw,
 	 */
 	if (!list_empty(&priv->vif_list)) {
 		if (net_ratelimit())
-			printk(KERN_INFO "%s: not enabling sniffer "
-			       "mode because STA interface is active\n",
-			       wiphy_name(hw->wiphy));
+			wiphy_info(hw->wiphy,
+				   "not enabling sniffer mode because STA interface is active\n");
 		return 0;
 	}
 
@@ -3913,8 +3903,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
 
 	priv->sram = pci_iomap(pdev, 0, 0x10000);
 	if (priv->sram == NULL) {
-		printk(KERN_ERR "%s: Cannot map device SRAM\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "cannot map device sram\n");
 		goto err_iounmap;
 	}
 
@@ -3926,8 +3915,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
 	if (priv->regs == NULL) {
 		priv->regs = pci_iomap(pdev, 2, 0x10000);
 		if (priv->regs == NULL) {
-			printk(KERN_ERR "%s: Cannot map device registers\n",
-			       wiphy_name(hw->wiphy));
+			wiphy_err(hw->wiphy, "cannot map device registers\n");
 			goto err_iounmap;
 		}
 	}
@@ -3939,16 +3927,14 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
 	/* Ask userland hotplug daemon for the device firmware */
 	rc = mwl8k_request_firmware(priv);
 	if (rc) {
-		printk(KERN_ERR "%s: Firmware files not found\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "firmware files not found\n");
 		goto err_stop_firmware;
 	}
 
 	/* Load firmware into hardware */
 	rc = mwl8k_load_firmware(hw);
 	if (rc) {
-		printk(KERN_ERR "%s: Cannot start firmware\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "cannot start firmware\n");
 		goto err_stop_firmware;
 	}
 
@@ -3959,9 +3945,8 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
 	if (priv->ap_fw) {
 		priv->rxd_ops = priv->device_info->ap_rxd_ops;
 		if (priv->rxd_ops == NULL) {
-			printk(KERN_ERR "%s: Driver does not have AP "
-			       "firmware image support for this hardware\n",
-			       wiphy_name(hw->wiphy));
+			wiphy_err(hw->wiphy,
+				  "Driver does not have AP firmware image support for this hardware\n");
 			goto err_stop_firmware;
 		}
 	} else {
@@ -4039,8 +4024,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
 	rc = request_irq(priv->pdev->irq, mwl8k_interrupt,
 			 IRQF_SHARED, MWL8K_NAME, hw);
 	if (rc) {
-		printk(KERN_ERR "%s: failed to register IRQ handler\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "failed to register irq handler\n");
 		goto err_free_queues;
 	}
 
@@ -4060,8 +4044,7 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
 		rc = mwl8k_cmd_get_hw_spec_sta(hw);
 	}
 	if (rc) {
-		printk(KERN_ERR "%s: Cannot initialise firmware\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "cannot initialise firmware\n");
 		goto err_free_irq;
 	}
 
@@ -4075,15 +4058,14 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
 	/* Turn radio off */
 	rc = mwl8k_cmd_radio_disable(hw);
 	if (rc) {
-		printk(KERN_ERR "%s: Cannot disable\n", wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "cannot disable\n");
 		goto err_free_irq;
 	}
 
 	/* Clear MAC address */
 	rc = mwl8k_cmd_set_mac_addr(hw, NULL, "\x00\x00\x00\x00\x00\x00");
 	if (rc) {
-		printk(KERN_ERR "%s: Cannot clear MAC address\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "cannot clear mac address\n");
 		goto err_free_irq;
 	}
 
@@ -4093,17 +4075,16 @@ static int __devinit mwl8k_probe(struct pci_dev *pdev,
 
 	rc = ieee80211_register_hw(hw);
 	if (rc) {
-		printk(KERN_ERR "%s: Cannot register device\n",
-		       wiphy_name(hw->wiphy));
+		wiphy_err(hw->wiphy, "cannot register device\n");
 		goto err_free_queues;
 	}
 
-	printk(KERN_INFO "%s: %s v%d, %pM, %s firmware %u.%u.%u.%u\n",
-	       wiphy_name(hw->wiphy), priv->device_info->part_name,
-	       priv->hw_rev, hw->wiphy->perm_addr,
-	       priv->ap_fw ? "AP" : "STA",
-	       (priv->fw_rev >> 24) & 0xff, (priv->fw_rev >> 16) & 0xff,
-	       (priv->fw_rev >> 8) & 0xff, priv->fw_rev & 0xff);
+	wiphy_info(hw->wiphy, "%s v%d, %pm, %s firmware %u.%u.%u.%u\n",
+		   priv->device_info->part_name,
+		   priv->hw_rev, hw->wiphy->perm_addr,
+		   priv->ap_fw ? "AP" : "STA",
+		   (priv->fw_rev >> 24) & 0xff, (priv->fw_rev >> 16) & 0xff,
+		   (priv->fw_rev >> 8) & 0xff, priv->fw_rev & 0xff);
 
 	return 0;
 
diff --git a/drivers/net/wireless/orinoco/cfg.c b/drivers/net/wireless/orinoco/cfg.c
index 8c4169c..09fae2f 100644
--- a/drivers/net/wireless/orinoco/cfg.c
+++ b/drivers/net/wireless/orinoco/cfg.c
@@ -117,9 +117,8 @@ static int orinoco_change_vif(struct wiphy *wiphy, struct net_device *dev,
 
 	case NL80211_IFTYPE_MONITOR:
 		if (priv->broken_monitor && !force_monitor) {
-			printk(KERN_WARNING "%s: Monitor mode support is "
-			       "buggy in this firmware, not enabling\n",
-			       wiphy_name(wiphy));
+			wiphy_warn(wiphy,
+				   "Monitor mode support is buggy in this firmware, not enabling\n");
 			err = -EINVAL;
 		}
 		break;
diff --git a/drivers/net/wireless/p54/eeprom.c b/drivers/net/wireless/p54/eeprom.c
index e51650e..d687cb7 100644
--- a/drivers/net/wireless/p54/eeprom.c
+++ b/drivers/net/wireless/p54/eeprom.c
@@ -149,16 +149,15 @@ static int p54_generate_band(struct ieee80211_hw *dev,
 			continue;
 
 		if (list->channels[i].data != CHAN_HAS_ALL) {
-			printk(KERN_ERR "%s:%s%s%s is/are missing for "
-					"channel:%d [%d MHz].\n",
-			       wiphy_name(dev->wiphy),
-			       (list->channels[i].data & CHAN_HAS_CAL ? "" :
-				" [iqauto calibration data]"),
-			       (list->channels[i].data & CHAN_HAS_LIMIT ? "" :
-				" [output power limits]"),
-			       (list->channels[i].data & CHAN_HAS_CURVE ? "" :
-				" [curve data]"),
-			       list->channels[i].index, list->channels[i].freq);
+			wiphy_err(dev->wiphy,
+				  "%s%s%s is/are missing for channel:%d [%d MHz].\n",
+				  (list->channels[i].data & CHAN_HAS_CAL ? "" :
+				   " [iqauto calibration data]"),
+				  (list->channels[i].data & CHAN_HAS_LIMIT ? "" :
+				   " [output power limits]"),
+				  (list->channels[i].data & CHAN_HAS_CURVE ? "" :
+				   " [curve data]"),
+				  list->channels[i].index, list->channels[i].freq);
 			continue;
 		}
 
@@ -168,9 +167,8 @@ static int p54_generate_band(struct ieee80211_hw *dev,
 	}
 
 	if (j == 0) {
-		printk(KERN_ERR "%s: Disabling totally damaged %s band.\n",
-		       wiphy_name(dev->wiphy), (band == IEEE80211_BAND_2GHZ) ?
-		       "2 GHz" : "5 GHz");
+		wiphy_err(dev->wiphy, "disabling totally damaged %d GHz band\n",
+			  (band == IEEE80211_BAND_2GHZ) ? 2 : 5);
 
 		ret = -ENODATA;
 		goto err_out;
@@ -244,9 +242,9 @@ static int p54_generate_channel_lists(struct ieee80211_hw *dev)
 
 	if ((priv->iq_autocal_len != priv->curve_data->entries) ||
 	    (priv->iq_autocal_len != priv->output_limit->entries))
-		printk(KERN_ERR "%s: Unsupported or damaged EEPROM detected. "
-				"You may not be able to use all channels.\n",
-				wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy,
+			  "Unsupported or damaged EEPROM detected. "
+			  "You may not be able to use all channels.\n");
 
 	max_channel_num = max_t(unsigned int, priv->output_limit->entries,
 				priv->iq_autocal_len);
@@ -419,15 +417,14 @@ static void p54_parse_rssical(struct ieee80211_hw *dev, void *data, int len,
 	int i;
 
 	if (len != (entry_size * num_entries)) {
-		printk(KERN_ERR "%s: unknown rssi calibration data packing "
-				 " type:(%x) len:%d.\n",
-		       wiphy_name(dev->wiphy), type, len);
+		wiphy_err(dev->wiphy,
+			  "unknown rssi calibration data packing type:(%x) len:%d.\n",
+			  type, len);
 
 		print_hex_dump_bytes("rssical:", DUMP_PREFIX_NONE,
 				     data, len);
 
-		printk(KERN_ERR "%s: please report this issue.\n",
-			wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "please report this issue.\n");
 		return;
 	}
 
@@ -445,15 +442,14 @@ static void p54_parse_default_country(struct ieee80211_hw *dev,
 	struct pda_country *country;
 
 	if (len != sizeof(*country)) {
-		printk(KERN_ERR "%s: found possible invalid default country "
-				"eeprom entry. (entry size: %d)\n",
-		       wiphy_name(dev->wiphy), len);
+		wiphy_err(dev->wiphy,
+			  "found possible invalid default country eeprom entry. (entry size: %d)\n",
+			  len);
 
 		print_hex_dump_bytes("country:", DUMP_PREFIX_NONE,
 				     data, len);
 
-		printk(KERN_ERR "%s: please report this issue.\n",
-			wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "please report this issue.\n");
 		return;
 	}
 
@@ -478,8 +474,8 @@ static int p54_convert_output_limits(struct ieee80211_hw *dev,
 		return -EINVAL;
 
 	if (data[0] != 0) {
-		printk(KERN_ERR "%s: unknown output power db revision:%x\n",
-		       wiphy_name(dev->wiphy), data[0]);
+		wiphy_err(dev->wiphy, "unknown output power db revision:%x\n",
+			  data[0]);
 		return -EINVAL;
 	}
 
@@ -587,10 +583,9 @@ int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
 				err = p54_convert_rev1(dev, curve_data);
 				break;
 			default:
-				printk(KERN_ERR "%s: unknown curve data "
-						"revision %d\n",
-						wiphy_name(dev->wiphy),
-						curve_data->cal_method_rev);
+				wiphy_err(dev->wiphy,
+					  "unknown curve data revision %d\n",
+					  curve_data->cal_method_rev);
 				err = -ENODEV;
 				break;
 			}
@@ -672,8 +667,8 @@ int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
 
 	if (!synth || !priv->iq_autocal || !priv->output_limit ||
 	    !priv->curve_data) {
-		printk(KERN_ERR "%s: not all required entries found in eeprom!\n",
-			wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy,
+			  "not all required entries found in eeprom!\n");
 		err = -EINVAL;
 		goto err;
 	}
@@ -699,15 +694,15 @@ int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
 	if (!is_valid_ether_addr(dev->wiphy->perm_addr)) {
 		u8 perm_addr[ETH_ALEN];
 
-		printk(KERN_WARNING "%s: Invalid hwaddr! Using randomly generated MAC addr\n",
-			wiphy_name(dev->wiphy));
+		wiphy_warn(dev->wiphy,
+			   "invalid hwaddr! using randomly generated mac addr\n");
 		random_ether_addr(perm_addr);
 		SET_IEEE80211_PERM_ADDR(dev, perm_addr);
 	}
 
-	printk(KERN_INFO "%s: hwaddr %pM, MAC:isl38%02x RF:%s\n",
-		wiphy_name(dev->wiphy),	dev->wiphy->perm_addr, priv->version,
-		p54_rf_chips[priv->rxhw]);
+	wiphy_info(dev->wiphy, "hwaddr %pm, mac:isl38%02x rf:%s\n",
+		   dev->wiphy->perm_addr, priv->version,
+		   p54_rf_chips[priv->rxhw]);
 
 	return 0;
 
@@ -719,8 +714,7 @@ err:
 	priv->output_limit = NULL;
 	priv->curve_data = NULL;
 
-	printk(KERN_ERR "%s: eeprom parse failed!\n",
-		wiphy_name(dev->wiphy));
+	wiphy_err(dev->wiphy, "eeprom parse failed!\n");
 	return err;
 }
 EXPORT_SYMBOL_GPL(p54_parse_eeprom);
diff --git a/drivers/net/wireless/p54/fwio.c b/drivers/net/wireless/p54/fwio.c
index c43a5d4..47006bc 100644
--- a/drivers/net/wireless/p54/fwio.c
+++ b/drivers/net/wireless/p54/fwio.c
@@ -62,16 +62,15 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
 			case FW_LM20:
 			case FW_LM87: {
 				char *iftype = (char *)bootrec->data;
-				printk(KERN_INFO "%s: p54 detected a LM%c%c "
-						 "firmware\n",
-					wiphy_name(priv->hw->wiphy),
-					iftype[2], iftype[3]);
+				wiphy_info(priv->hw->wiphy,
+					   "p54 detected a LM%c%c firmware\n",
+					   iftype[2], iftype[3]);
 				break;
 				}
 			case FW_FMAC:
 			default:
-				printk(KERN_ERR "%s: unsupported firmware\n",
-					wiphy_name(priv->hw->wiphy));
+				wiphy_err(priv->hw->wiphy,
+					  "unsupported firmware\n");
 				return -ENODEV;
 			}
 			break;
@@ -125,15 +124,15 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
 	}
 
 	if (fw_version)
-		printk(KERN_INFO "%s: FW rev %s - Softmac protocol %x.%x\n",
-			wiphy_name(priv->hw->wiphy), fw_version,
-			priv->fw_var >> 8, priv->fw_var & 0xff);
+		wiphy_info(priv->hw->wiphy,
+			   "fw rev %s - softmac protocol %x.%x\n",
+			   fw_version, priv->fw_var >> 8, priv->fw_var & 0xff);
 
 	if (priv->fw_var < 0x500)
-		printk(KERN_INFO "%s: you are using an obsolete firmware. "
-		       "visit http://wireless.kernel.org/en/users/Drivers/p54 "
-		       "and grab one for \"kernel >= 2.6.28\"!\n",
-			wiphy_name(priv->hw->wiphy));
+		wiphy_info(priv->hw->wiphy,
+			   "you are using an obsolete firmware. "
+			   "visit http://wireless.kernel.org/en/users/Drivers/p54 "
+			   "and grab one for \"kernel >= 2.6.28\"!\n");
 
 	if (priv->fw_var >= 0x300) {
 		/* Firmware supports QoS, use it! */
@@ -152,13 +151,14 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
 		priv->hw->queues = P54_QUEUE_AC_NUM;
 	}
 
-	printk(KERN_INFO "%s: cryptographic accelerator "
-	       "WEP:%s, TKIP:%s, CCMP:%s\n", wiphy_name(priv->hw->wiphy),
-		(priv->privacy_caps & BR_DESC_PRIV_CAP_WEP) ? "YES" :
-		"no", (priv->privacy_caps & (BR_DESC_PRIV_CAP_TKIP |
-		BR_DESC_PRIV_CAP_MICHAEL)) ? "YES" : "no",
-		(priv->privacy_caps & BR_DESC_PRIV_CAP_AESCCMP) ?
-		"YES" : "no");
+	wiphy_info(priv->hw->wiphy,
+		   "cryptographic accelerator WEP:%s, TKIP:%s, CCMP:%s\n",
+		   (priv->privacy_caps & BR_DESC_PRIV_CAP_WEP) ? "YES" : "no",
+		   (priv->privacy_caps &
+		    (BR_DESC_PRIV_CAP_TKIP | BR_DESC_PRIV_CAP_MICHAEL))
+		   ? "YES" : "no",
+		   (priv->privacy_caps & BR_DESC_PRIV_CAP_AESCCMP)
+		   ? "YES" : "no");
 
 	if (priv->rx_keycache_size) {
 		/*
@@ -247,8 +247,7 @@ int p54_download_eeprom(struct p54_common *priv, void *buf,
 
 	if (!wait_for_completion_interruptible_timeout(
 	     &priv->eeprom_comp, HZ)) {
-		printk(KERN_ERR "%s: device does not respond!\n",
-		       wiphy_name(priv->hw->wiphy));
+		wiphy_err(priv->hw->wiphy, "device does not respond!\n");
 		ret = -EBUSY;
 	}
 	priv->eeprom = NULL;
@@ -523,9 +522,9 @@ int p54_scan(struct p54_common *priv, u16 mode, u16 dwell)
 	return 0;
 
 err:
-	printk(KERN_ERR "%s: frequency change to channel %d failed.\n",
-	       wiphy_name(priv->hw->wiphy), ieee80211_frequency_to_channel(
-	       priv->hw->conf.channel->center_freq));
+	wiphy_err(priv->hw->wiphy, "frequency change to channel %d failed.\n",
+		  ieee80211_frequency_to_channel(
+			  priv->hw->conf.channel->center_freq));
 
 	dev_kfree_skb_any(skb);
 	return -EINVAL;
@@ -676,8 +675,8 @@ int p54_upload_key(struct p54_common *priv, u8 algo, int slot, u8 idx, u8 len,
 		break;
 
 	default:
-		printk(KERN_ERR "%s: invalid cryptographic algorithm: %d\n",
-		       wiphy_name(priv->hw->wiphy), algo);
+		wiphy_err(priv->hw->wiphy,
+			  "invalid cryptographic algorithm: %d\n", algo);
 		dev_kfree_skb(skb);
 		return -EINVAL;
 	}
diff --git a/drivers/net/wireless/p54/led.c b/drivers/net/wireless/p54/led.c
index 9575ac0..ea91f5c 100644
--- a/drivers/net/wireless/p54/led.c
+++ b/drivers/net/wireless/p54/led.c
@@ -57,8 +57,8 @@ static void p54_update_leds(struct work_struct *work)
 
 	err = p54_set_leds(priv);
 	if (err && net_ratelimit())
-		printk(KERN_ERR "%s: failed to update LEDs (%d).\n",
-			wiphy_name(priv->hw->wiphy), err);
+		wiphy_err(priv->hw->wiphy,
+			  "failed to update leds (%d).\n", err);
 
 	if (rerun)
 		ieee80211_queue_delayed_work(priv->hw, &priv->led_work,
@@ -102,8 +102,8 @@ static int p54_register_led(struct p54_common *priv,
 
 	err = led_classdev_register(wiphy_dev(priv->hw->wiphy), &led->led_dev);
 	if (err)
-		printk(KERN_ERR "%s: Failed to register %s LED.\n",
-			wiphy_name(priv->hw->wiphy), name);
+		wiphy_err(priv->hw->wiphy,
+			  "failed to register %s led.\n", name);
 	else
 		led->registered = 1;
 
diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c
index a5ea89c..822f8dc 100644
--- a/drivers/net/wireless/p54/p54pci.c
+++ b/drivers/net/wireless/p54/p54pci.c
@@ -466,8 +466,7 @@ static int p54p_open(struct ieee80211_hw *dev)
 	P54P_READ(dev_int);
 
 	if (!wait_for_completion_interruptible_timeout(&priv->boot_comp, HZ)) {
-		printk(KERN_ERR "%s: Cannot boot firmware!\n",
-		       wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "cannot boot firmware!\n");
 		p54p_stop(dev);
 		return -ETIMEDOUT;
 	}
diff --git a/drivers/net/wireless/p54/txrx.c b/drivers/net/wireless/p54/txrx.c
index 4e68910..427b46f 100644
--- a/drivers/net/wireless/p54/txrx.c
+++ b/drivers/net/wireless/p54/txrx.c
@@ -38,8 +38,8 @@ static void p54_dump_tx_queue(struct p54_common *priv)
 	u32 largest_hole = 0, free;
 
 	spin_lock_irqsave(&priv->tx_queue.lock, flags);
-	printk(KERN_DEBUG "%s: / --- tx queue dump (%d entries) ---\n",
-	       wiphy_name(priv->hw->wiphy), skb_queue_len(&priv->tx_queue));
+	wiphy_debug(priv->hw->wiphy, "/ --- tx queue dump (%d entries) ---\n",
+		    skb_queue_len(&priv->tx_queue));
 
 	prev_addr = priv->rx_start;
 	skb_queue_walk(&priv->tx_queue, skb) {
@@ -48,21 +48,23 @@ static void p54_dump_tx_queue(struct p54_common *priv)
 		hdr = (void *) skb->data;
 
 		free = range->start_addr - prev_addr;
-		printk(KERN_DEBUG "%s: | [%02d] => [skb:%p skb_len:0x%04x "
-		       "hdr:{flags:%02x len:%04x req_id:%04x type:%02x} "
-		       "mem:{start:%04x end:%04x, free:%d}]\n",
-		       wiphy_name(priv->hw->wiphy), i++, skb, skb->len,
-		       le16_to_cpu(hdr->flags), le16_to_cpu(hdr->len),
-		       le32_to_cpu(hdr->req_id), le16_to_cpu(hdr->type),
-		       range->start_addr, range->end_addr, free);
+		wiphy_debug(priv->hw->wiphy,
+			    "| [%02d] => [skb:%p skb_len:0x%04x "
+			    "hdr:{flags:%02x len:%04x req_id:%04x type:%02x} "
+			    "mem:{start:%04x end:%04x, free:%d}]\n",
+			    i++, skb, skb->len,
+			    le16_to_cpu(hdr->flags), le16_to_cpu(hdr->len),
+			    le32_to_cpu(hdr->req_id), le16_to_cpu(hdr->type),
+			    range->start_addr, range->end_addr, free);
 
 		prev_addr = range->end_addr;
 		largest_hole = max(largest_hole, free);
 	}
 	free = priv->rx_end - prev_addr;
 	largest_hole = max(largest_hole, free);
-	printk(KERN_DEBUG "%s: \\ --- [free: %d], largest free block: %d ---\n",
-	       wiphy_name(priv->hw->wiphy), free, largest_hole);
+	wiphy_debug(priv->hw->wiphy,
+		    "\\ --- [free: %d], largest free block: %d ---\n",
+		    free, largest_hole);
 	spin_unlock_irqrestore(&priv->tx_queue.lock, flags);
 }
 #endif /* P54_MM_DEBUG */
@@ -538,8 +540,7 @@ static void p54_rx_trap(struct p54_common *priv, struct sk_buff *skb)
 	case P54_TRAP_BEACON_TX:
 		break;
 	case P54_TRAP_RADAR:
-		printk(KERN_INFO "%s: radar (freq:%d MHz)\n",
-			wiphy_name(priv->hw->wiphy), freq);
+		wiphy_info(priv->hw->wiphy, "radar (freq:%d mhz)\n", freq);
 		break;
 	case P54_TRAP_NO_BEACON:
 		if (priv->vif)
@@ -558,8 +559,8 @@ static void p54_rx_trap(struct p54_common *priv, struct sk_buff *skb)
 		wiphy_rfkill_set_hw_state(priv->hw->wiphy, false);
 		break;
 	default:
-		printk(KERN_INFO "%s: received event:%x freq:%d\n",
-		       wiphy_name(priv->hw->wiphy), event, freq);
+		wiphy_info(priv->hw->wiphy, "received event:%x freq:%d\n",
+			   event, freq);
 		break;
 	}
 }
@@ -584,8 +585,9 @@ static int p54_rx_control(struct p54_common *priv, struct sk_buff *skb)
 		p54_rx_eeprom_readback(priv, skb);
 		break;
 	default:
-		printk(KERN_DEBUG "%s: not handling 0x%02x type control frame\n",
-		       wiphy_name(priv->hw->wiphy), le16_to_cpu(hdr->type));
+		wiphy_debug(priv->hw->wiphy,
+			    "not handling 0x%02x type control frame\n",
+			    le16_to_cpu(hdr->type));
 		break;
 	}
 	return 0;
diff --git a/drivers/net/wireless/rtl818x/rtl8180_dev.c b/drivers/net/wireless/rtl818x/rtl8180_dev.c
index 31808f9..1601cfa 100644
--- a/drivers/net/wireless/rtl818x/rtl8180_dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8180_dev.c
@@ -357,7 +357,7 @@ static int rtl8180_init_hw(struct ieee80211_hw *dev)
 
 	/* check success of reset */
 	if (rtl818x_ioread8(priv, &priv->map->CMD) & RTL818X_CMD_RESET) {
-		printk(KERN_ERR "%s: reset timeout!\n", wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "reset timeout!\n");
 		return -ETIMEDOUT;
 	}
 
@@ -441,8 +441,7 @@ static int rtl8180_init_rx_ring(struct ieee80211_hw *dev)
 					     &priv->rx_ring_dma);
 
 	if (!priv->rx_ring || (unsigned long)priv->rx_ring & 0xFF) {
-		printk(KERN_ERR "%s: Cannot allocate RX ring\n",
-		       wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "cannot allocate rx ring\n");
 		return -ENOMEM;
 	}
 
@@ -499,8 +498,8 @@ static int rtl8180_init_tx_ring(struct ieee80211_hw *dev,
 
 	ring = pci_alloc_consistent(priv->pdev, sizeof(*ring) * entries, &dma);
 	if (!ring || (unsigned long)ring & 0xFF) {
-		printk(KERN_ERR "%s: Cannot allocate TX ring (prio = %d)\n",
-		       wiphy_name(dev->wiphy), prio);
+		wiphy_err(dev->wiphy, "cannot allocate tx ring (prio = %d)\n",
+			  prio);
 		return -ENOMEM;
 	}
 
@@ -565,8 +564,7 @@ static int rtl8180_start(struct ieee80211_hw *dev)
 	ret = request_irq(priv->pdev->irq, rtl8180_interrupt,
 			  IRQF_SHARED, KBUILD_MODNAME, dev);
 	if (ret) {
-		printk(KERN_ERR "%s: failed to register IRQ handler\n",
-		       wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "failed to register irq handler\n");
 		goto err_free_rings;
 	}
 
@@ -1103,9 +1101,8 @@ static int __devinit rtl8180_probe(struct pci_dev *pdev,
 		goto err_iounmap;
 	}
 
-	printk(KERN_INFO "%s: hwaddr %pM, %s + %s\n",
-	       wiphy_name(dev->wiphy), mac_addr,
-	       chip_name, priv->rf->name);
+	wiphy_info(dev->wiphy, "hwaddr %pm, %s + %s\n",
+		   mac_addr, chip_name, priv->rf->name);
 
 	return 0;
 
diff --git a/drivers/net/wireless/rtl818x/rtl8187_dev.c b/drivers/net/wireless/rtl818x/rtl8187_dev.c
index 891b849..5738a55 100644
--- a/drivers/net/wireless/rtl818x/rtl8187_dev.c
+++ b/drivers/net/wireless/rtl818x/rtl8187_dev.c
@@ -573,7 +573,7 @@ static int rtl8187_cmd_reset(struct ieee80211_hw *dev)
 	} while (--i);
 
 	if (!i) {
-		printk(KERN_ERR "%s: Reset timeout!\n", wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "reset timeout!\n");
 		return -ETIMEDOUT;
 	}
 
@@ -589,8 +589,7 @@ static int rtl8187_cmd_reset(struct ieee80211_hw *dev)
 	} while (--i);
 
 	if (!i) {
-		printk(KERN_ERR "%s: eeprom reset timeout!\n",
-		       wiphy_name(dev->wiphy));
+		wiphy_err(dev->wiphy, "eeprom reset timeout!\n");
 		return -ETIMEDOUT;
 	}
 
@@ -1527,9 +1526,9 @@ static int __devinit rtl8187_probe(struct usb_interface *intf,
 	mutex_init(&priv->conf_mutex);
 	skb_queue_head_init(&priv->b_tx_status.queue);
 
-	printk(KERN_INFO "%s: hwaddr %pM, %s V%d + %s, rfkill mask %d\n",
-	       wiphy_name(dev->wiphy), mac_addr,
-	       chip_name, priv->asic_rev, priv->rf->name, priv->rfkill_mask);
+	wiphy_info(dev->wiphy, "hwaddr %pm, %s v%d + %s, rfkill mask %d\n",
+		   mac_addr, chip_name, priv->asic_rev, priv->rf->name,
+		   priv->rfkill_mask);
 
 #ifdef CONFIG_RTL8187_LEDS
 	eeprom_93cx6_read(&eeprom, 0x3F, &reg);
diff --git a/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c b/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c
index a098193..fd96f91 100644
--- a/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c
+++ b/drivers/net/wireless/rtl818x/rtl8187_rtl8225.c
@@ -366,8 +366,8 @@ static void rtl8225_rf_init(struct ieee80211_hw *dev)
 		rtl8225_write(dev, 0x02, 0x044d);
 		msleep(100);
 		if (!(rtl8225_read(dev, 6) & (1 << 7)))
-			printk(KERN_WARNING "%s: RF Calibration Failed! %x\n",
-			       wiphy_name(dev->wiphy), rtl8225_read(dev, 6));
+			wiphy_warn(dev->wiphy, "rf calibration failed! %x\n",
+				   rtl8225_read(dev, 6));
 	}
 
 	rtl8225_write(dev, 0x0, 0x127);
@@ -735,8 +735,8 @@ static void rtl8225z2_rf_init(struct ieee80211_hw *dev)
 		rtl8225_write(dev, 0x02, 0x044D);
 		msleep(100);
 		if (!(rtl8225_read(dev, 6) & (1 << 7)))
-			printk(KERN_WARNING "%s: RF Calibration Failed! %x\n",
-			       wiphy_name(dev->wiphy), rtl8225_read(dev, 6));
+			wiphy_warn(dev->wiphy, "rf calibration failed! %x\n",
+				   rtl8225_read(dev, 6));
 	}
 
 	msleep(200);
-- 
1.7.1


^ permalink raw reply related

* Re: wl1271 with atmel-mci
From: Logan Gunthorpe @ 2010-07-26 21:40 UTC (permalink / raw)
  To: linux-wireless; +Cc: Luciano Coelho, Levi, Shahar
In-Reply-To: <4C488EEA.5020505@deltatee.com>

Hi Everyone,


> I've had the wl1271 working for the most part on an Atmel 
> micro-controller, but I've been fighting with a bug for the past couple 
> of days.
> 
> The problem happens whenever I try to transmit large packets of data 
> (using iperf, or nc, etc) the driver would hang and no longer be able to 
> send packets. tx_queue_len in the debugfs would then grow as I tried to 
> send packets but nothing would actually be sent to the device. At the 
> same time receiving packets would consistently work all of the time.
> 
> When this occurred I usually got the following messages:
> 
> atmel_mci atmel_mci.0: data CRC error
> wl1271: ERROR sdio write failed (-84) - addr 0x14fd8, 1076 bytes, 1

Firstly, I'd like to let anyone who's interested know that the problem I 
had above turned out to be a hardware issue. I tried two newly populated 
boards which both turned out not to exhibit this problem. I now have the 
wl1271 working on two AT91SAM9G45-EKES development kits.

Using iperf I have gathered some performance data. I am seeing between a 
wl1271 device and a host PC (connected via a dlink router):

PC to Device: ~23.0Mbit/s
Device to PC: ~21.7Mbit/s

When running in Ad-Hoc mode between two devices I am getting between 
about 15Mbit/s and 17Mbit/s.

Does anyone have any insight as to why the Ad-Hoc mode between two 
devices is noticeably slower? Can anything be done to improve this?


Thanks,

Logan



^ permalink raw reply

* Re: ath9k:  /proc/net/wireless always shows status of 0
From: Ben Greear @ 2010-07-26 22:00 UTC (permalink / raw)
  To: linux-wireless
In-Reply-To: <4C4DE6B5.5080307@candelatech.com>

On 07/26/2010 12:49 PM, Ben Greear wrote:
> This is with today's wireless-testing (with no extra hacks)

Maybe a better question:  In 2.6.31 you could mount debugfs at /debug
and get the state with:
cat /debug/ieee80211/sta0/state

It seems in .34 there is only phy0 info in debugfs.  Or, am I
just not looking in the right place?

I don't mind hacking code, but I'd appreciate a pointer to the
right part of the code if anyone has suggestions.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply

* Re: [ath5k-devel] [PATCH v3] ath5k: disable ASPM
From: Luis R. Rodriguez @ 2010-07-26 22:13 UTC (permalink / raw)
  To: Maxim Levitsky
  Cc: Matthew Garrett, Luis R. Rodriguez, David Quan,
	ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org,
	linux-kernel, kernel-team@lists.ubuntu.com, Luis Rodriguez,
	Jussi Kivilinna, tim.gardner@canonical.com
In-Reply-To: <1280179033.3721.15.camel@maxim-laptop>

On Mon, Jul 26, 2010 at 2:17 PM, Maxim Levitsky <maximlevitsky@gmail.com> wrote:
> On Mon, 2010-07-26 at 14:06 -0700, Luis R. Rodriguez wrote:
>> On Mon, Jul 26, 2010 at 01:49:22PM -0700, Maxim Levitsky wrote:
>> > On Mon, 2010-07-26 at 13:13 -0700, Luis R. Rodriguez wrote:
>> > > On Sat, Jun 19, 2010 at 08:32:44AM -0700, Maxim Levitsky wrote:
>> > > > On Sat, 2010-06-19 at 16:02 +0300, Maxim Levitsky wrote:
>> > > > > On Sat, 2010-06-19 at 08:38 -0400, Bob Copeland wrote:
>> > > > > > On Sat, Jun 19, 2010 at 10:49:34AM +0300, Maxim Levitsky wrote:
>> > > > > > > How this patch?
>> > > > > >
>> > > > > > Looks fine to me.  Some nitpicking below but feel free to add my
>> > > > > >
>> > > > > > Acked-by: Bob Copeland <me@bobcopeland.com>
>> > > > > >
>> > > > Done.
>> > > >
>> > > > Best regards,
>> > > > Maxim Levitsky
>> > > >
>> > > > ---
>> > > >
>> > > > commit 616afa397b3e843f2aba06be12a30e72dfff7740
>> > > > Author: Maxim Levitsky <maximlevitsky@gmail.com>
>> > > > Date:   Thu Jun 17 23:21:42 2010 +0300
>> > > >
>> > > >     ath5k: disable ASPM
>> > > >
>> > > >     Atheros card on Acer Aspire One (AOA150, Atheros Communications Inc. AR5001
>> > > >     Wireless Network Adapter [168c:001c] (rev 01)) doesn't work well with ASPM
>> > > >     enabled. With ASPM ath5k will eventually stall on heavy traffic with often
>> > > >     'unsupported jumbo' warnings appearing. Disabling ASPM L0s in ath5k fixes
>> > > >     these problems.
>> > > >     Also card sends a storm of RXORN interrupts even though medium is idle.
>> > > >
>> > > >     Reproduced with pcie_aspm=force and by using 'nc < /dev/zero > /dev/null' at
>> > > >     both ends (usually stalls within seconds).
>> > > >
>> > > >     Unfortunately BIOS enables ASPM on this card by default on these machines
>> > > >     This means that, problem shows up (less often) without pcie_aspm=force too.
>> > > >     Therefore to benefit from this fix you need to _enable_ CONFIG_PCIEASPM
>> > > >
>> > > >
>> > > >     All credit for this patch goes to Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
>> > > >     for finding and fixing this bug.
>> > > >
>> > > >     Based on patch that is
>> > > >     From: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
>> > > >
>> > > >
>> > > >     Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com>
>> > > >     Acked-by: Bob Copeland <me@bobcopeland.com>
>> > >
>> > > Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
>> > >
>> > > But please resubmit and completley modify the commit log to indicate
>> > > ath5k cards support ASPM but L0s must be disabled, only L1
>> > > works correctly.
>> > >
>> > > The comments about ASPM force should be removed as it would
>> > > lead others to try to use the same and the fact of the matter is
>> > > that ASPM force should never be used. As was clarified out of
>> > > some of these discussions worth noting also is that in newer
>> > > kernels CONFIG_PCIEASPM=y will always become the default, for
>> > > older kernels this was never the default and some distributions
>> > > (Ubunutu) do not have this enabled, the benefit of having it
>> > > enabled is it will disable ASPM for these cases:
>> > >
>> > > (a) the PCIE device is pre PCIE 1.1
>> > > (b) the firmware has the FADT flag set to tell you not to and
>> > > (c) the firmware doesn't grant control via _OSC. The powersave policy will
>> > > enable ASPM even if the BIOS didn't, but only if something else doesn't
>> > > tell us not to.
>> > >
>> > > The last two checks were only recently added by Mathew and forcing
>> > > CONFIG_PCIEASPM=y was also only recently made default.
>> > >
>> > > In short, Linux distributions should also start enabling
>> > > CONFIG_PCIEASPM=y on older kernels.
>> >
>> >
>> > Just one note that since at least my ath5k device is pre 1.1, and you
>> > say that L1 can be enabled, and should, I probably need to enable L1
>> > explicitly in the driver.
>> >
>> > OK?
>>
>> No, ASPM must be enabled by the Systems Integrator through the BIOS, there are
>> other settings that have to be taken care of like modifying some PCI entrance and
>> exit latency timers, the number of FTS packets we send to exit L0s, amongst
>> other things. If a user selectively enables L1 but the BIOS had it disabled on
>> the device it may not work correctly.
>>
>> In other words leave the settings as-is on your card unless you developing
>> for a company to enable ASPM yourself or you are willing to take the risks.
>> Tweaks like force enabling a device to use ASPM should only then be done in
>> userspace and by an end user. This is not something Linux distributions should
>> let users tweak. Its a hacker task.
>>
>> However, it is reasonable to force disable L0s, for example, completley on
>> the driver if it is known that L0s does not work for all chisets supported
>> on that driver.
>
> You didn't understand me.
>
>
> On my notebook, the AR5001 device is marked as pre 1.1 PCIE device.
>
> ASPM *is* enabled for both L0s and L1 by BIOS.
>
> Linux disables ASPM because the device is pre 1.1, and things work fine
> with no more patching (assuming that CONFIG_PCIEASPM is set)
>
>
> However, it is possible, (and that what I asked you) that some ath5k
> devices aren't 'pre 1.1 pcie devices' so linux won't disable ASPM L0s
> for them.
> So indeed for 'good feeling' it is ok to disable L0s from ath5k
> explicitly, but most of the time (or always) it will be no-op.

Sure, a no-op is fine given that it won't affect those devices. That
is why I ACKed the contents of the patch but not the commit log entry
description.

> In *addition* to that, since you said that ASPM L1 *does* work, and is
> enabled by BIOS, but linux disables it, that it might be worthy to
> enable it again from ath5k driver explicitly.
> As long as wireless works I don't really care if this done or not.

No, L1 isn't enabled on all devices, so best is to just keep what the
device has set and if the kernel knows better through the rules
mentioned before, let it disable it.

  Luis

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox