txrx.c (0898782247ae533d1f4e47a06bc5d4870931b284) txrx.c (fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Common code for mac80211 Prism54 drivers
4 *
5 * Copyright (c) 2006, Michael Wu <flamingice@sourmilk.net>
6 * Copyright (c) 2007-2009, Christian Lamparter <chunkeey@web.de>
7 * Copyright 2008, Johannes Berg <johannes@sipsolutions.net>
8 *

--- 417 unchanged lines hidden (view full) ---

426 dev_kfree_skb_any(entry);
427 return ;
428 }
429
430 /*
431 * Clear manually, ieee80211_tx_info_clear_status would
432 * clear the counts too and we need them.
433 */
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Common code for mac80211 Prism54 drivers
4 *
5 * Copyright (c) 2006, Michael Wu <flamingice@sourmilk.net>
6 * Copyright (c) 2007-2009, Christian Lamparter <chunkeey@web.de>
7 * Copyright 2008, Johannes Berg <johannes@sipsolutions.net>
8 *

--- 417 unchanged lines hidden (view full) ---

426 dev_kfree_skb_any(entry);
427 return ;
428 }
429
430 /*
431 * Clear manually, ieee80211_tx_info_clear_status would
432 * clear the counts too and we need them.
433 */
434 memset(&info->status.ack_signal, 0,
435 sizeof(struct ieee80211_tx_info) -
436 offsetof(struct ieee80211_tx_info, status.ack_signal));
437 BUILD_BUG_ON(offsetof(struct ieee80211_tx_info,
438 status.ack_signal) != 20);
434 memset_after(&info->status, 0, rates);
439
440 if (entry_hdr->flags & cpu_to_le16(P54_HDR_FLAG_DATA_ALIGN))
441 pad = entry_data->align[0];
442
443 /* walk through the rates array and adjust the counts */
444 count = payload->tries;
445 for (idx = 0; idx < 4; idx++) {
446 if (count >= info->status.rates[idx].count) {

--- 500 unchanged lines hidden ---
435
436 if (entry_hdr->flags & cpu_to_le16(P54_HDR_FLAG_DATA_ALIGN))
437 pad = entry_data->align[0];
438
439 /* walk through the rates array and adjust the counts */
440 count = payload->tries;
441 for (idx = 0; idx < 4; idx++) {
442 if (count >= info->status.rates[idx].count) {

--- 500 unchanged lines hidden ---