link.c (593d0a3e9f813db910dc50574532914db21d09ff) | link.c (381c726c09bb43aea8088ede5ce24eaa158289dc) |
---|---|
1/* 2 * Copyright (c) 2012 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 240 unchanged lines hidden (view full) --- 249 struct ieee80211_hdr *hdr; 250 struct sk_buff *skb = NULL; 251 struct ath9k_hw_cal_data *caldata = ah->caldata; 252 struct ath_common *common = ath9k_hw_common(ah); 253 int ftype; 254 int chain_ok = 0; 255 int chain; 256 int len = 1800; | 1/* 2 * Copyright (c) 2012 Qualcomm Atheros, Inc. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --- 240 unchanged lines hidden (view full) --- 249 struct ieee80211_hdr *hdr; 250 struct sk_buff *skb = NULL; 251 struct ath9k_hw_cal_data *caldata = ah->caldata; 252 struct ath_common *common = ath9k_hw_common(ah); 253 int ftype; 254 int chain_ok = 0; 255 int chain; 256 int len = 1800; |
257 int ret; |
|
257 258 if (!caldata) 259 return; 260 261 ath9k_ps_wakeup(sc); 262 263 if (ar9003_paprd_init_table(ah) < 0) 264 goto fail_paprd; --- 32 unchanged lines hidden (view full) --- 297 goto fail_paprd; 298 299 if (!ar9003_paprd_is_done(ah)) { 300 ath_dbg(common, CALIBRATE, 301 "PAPRD not yet done on chain %d\n", chain); 302 break; 303 } 304 | 258 259 if (!caldata) 260 return; 261 262 ath9k_ps_wakeup(sc); 263 264 if (ar9003_paprd_init_table(ah) < 0) 265 goto fail_paprd; --- 32 unchanged lines hidden (view full) --- 298 goto fail_paprd; 299 300 if (!ar9003_paprd_is_done(ah)) { 301 ath_dbg(common, CALIBRATE, 302 "PAPRD not yet done on chain %d\n", chain); 303 break; 304 } 305 |
305 if (ar9003_paprd_create_curve(ah, caldata, chain)) { | 306 ret = ar9003_paprd_create_curve(ah, caldata, chain); 307 if (ret == -EINPROGRESS) { |
306 ath_dbg(common, CALIBRATE, | 308 ath_dbg(common, CALIBRATE, |
309 "PAPRD curve on chain %d needs to be re-trained\n", 310 chain); 311 break; 312 } else if (ret) { 313 ath_dbg(common, CALIBRATE, |
|
307 "PAPRD create curve failed on chain %d\n", 308 chain); 309 break; 310 } 311 312 chain_ok = 1; 313 } 314 kfree_skb(skb); --- 241 unchanged lines hidden --- | 314 "PAPRD create curve failed on chain %d\n", 315 chain); 316 break; 317 } 318 319 chain_ok = 1; 320 } 321 kfree_skb(skb); --- 241 unchanged lines hidden --- |