main.c (7607cbe2ad6931400c5d15ced342ab329ab8f92c) | main.c (1bf38661822049931a0ab8d2b43153b26cc919f6) |
---|---|
1/* 2 * Copyright (c) 2008-2009 Atheros Communications 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 --- 359 unchanged lines hidden (view full) --- 368 int ftype; 369 int chain_ok = 0; 370 int chain; 371 int len = 1800; 372 373 if (!caldata) 374 return; 375 | 1/* 2 * Copyright (c) 2008-2009 Atheros Communications 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 --- 359 unchanged lines hidden (view full) --- 368 int ftype; 369 int chain_ok = 0; 370 int chain; 371 int len = 1800; 372 373 if (!caldata) 374 return; 375 |
376 if (ar9003_paprd_init_table(ah) < 0) 377 return; 378 |
|
376 skb = alloc_skb(len, GFP_KERNEL); 377 if (!skb) 378 return; 379 380 skb_put(skb, len); 381 memset(skb->data, 0, len); 382 hdr = (struct ieee80211_hdr *)skb->data; 383 ftype = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_NULLFUNC; 384 hdr->frame_control = cpu_to_le16(ftype); 385 hdr->duration_id = cpu_to_le16(10); 386 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN); 387 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN); 388 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN); 389 390 ath9k_ps_wakeup(sc); | 379 skb = alloc_skb(len, GFP_KERNEL); 380 if (!skb) 381 return; 382 383 skb_put(skb, len); 384 memset(skb->data, 0, len); 385 hdr = (struct ieee80211_hdr *)skb->data; 386 ftype = IEEE80211_FTYPE_DATA | IEEE80211_STYPE_NULLFUNC; 387 hdr->frame_control = cpu_to_le16(ftype); 388 hdr->duration_id = cpu_to_le16(10); 389 memcpy(hdr->addr1, hw->wiphy->perm_addr, ETH_ALEN); 390 memcpy(hdr->addr2, hw->wiphy->perm_addr, ETH_ALEN); 391 memcpy(hdr->addr3, hw->wiphy->perm_addr, ETH_ALEN); 392 393 ath9k_ps_wakeup(sc); |
391 ar9003_paprd_init_table(ah); | |
392 for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { 393 if (!(common->tx_chainmask & BIT(chain))) 394 continue; 395 396 chain_ok = 0; 397 398 ath_dbg(common, ATH_DBG_CALIBRATE, 399 "Sending PAPRD frame for thermal measurement " --- 1798 unchanged lines hidden --- | 394 for (chain = 0; chain < AR9300_MAX_CHAINS; chain++) { 395 if (!(common->tx_chainmask & BIT(chain))) 396 continue; 397 398 chain_ok = 0; 399 400 ath_dbg(common, ATH_DBG_CALIBRATE, 401 "Sending PAPRD frame for thermal measurement " --- 1798 unchanged lines hidden --- |