mac80211.h (d787a3e38f01bfc4566df4e85d432a29d192e637) mac80211.h (fb5f6a0e8063b7a84d6d44ef353846ccd7708d2e)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * mac80211 <-> driver interface
4 *
5 * Copyright 2002-2005, Devicescape Software, Inc.
6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
7 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net>
8 * Copyright 2013-2014 Intel Mobile Communications GmbH

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

1200 BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) !=
1201 offsetof(struct ieee80211_tx_info, control.rates));
1202 BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) !=
1203 offsetof(struct ieee80211_tx_info, driver_rates));
1204 BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) != 8);
1205 /* clear the rate counts */
1206 for (i = 0; i < IEEE80211_TX_MAX_RATES; i++)
1207 info->status.rates[i].count = 0;
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * mac80211 <-> driver interface
4 *
5 * Copyright 2002-2005, Devicescape Software, Inc.
6 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
7 * Copyright 2007-2010 Johannes Berg <johannes@sipsolutions.net>
8 * Copyright 2013-2014 Intel Mobile Communications GmbH

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

1200 BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) !=
1201 offsetof(struct ieee80211_tx_info, control.rates));
1202 BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) !=
1203 offsetof(struct ieee80211_tx_info, driver_rates));
1204 BUILD_BUG_ON(offsetof(struct ieee80211_tx_info, status.rates) != 8);
1205 /* clear the rate counts */
1206 for (i = 0; i < IEEE80211_TX_MAX_RATES; i++)
1207 info->status.rates[i].count = 0;
1208
1209 BUILD_BUG_ON(
1210 offsetof(struct ieee80211_tx_info, status.ack_signal) != 20);
1211 memset(&info->status.ampdu_ack_len, 0,
1212 sizeof(struct ieee80211_tx_info) -
1213 offsetof(struct ieee80211_tx_info, status.ampdu_ack_len));
1208 memset_after(&info->status, 0, rates);
1214}
1215
1216
1217/**
1218 * enum mac80211_rx_flags - receive flags
1219 *
1220 * These flags are used with the @flag member of &struct ieee80211_rx_status.
1221 * @RX_FLAG_MMIC_ERROR: Michael MIC error was reported on this frame.

--- 5639 unchanged lines hidden ---
1209}
1210
1211
1212/**
1213 * enum mac80211_rx_flags - receive flags
1214 *
1215 * These flags are used with the @flag member of &struct ieee80211_rx_status.
1216 * @RX_FLAG_MMIC_ERROR: Michael MIC error was reported on this frame.

--- 5639 unchanged lines hidden ---