summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohannes Berg2015-06-01 23:14:59 +0200
committerJohannes Berg2015-06-02 13:07:59 +0200
commit3b79af973cf42de059d0e90e20fd145d7ed8c5c1 (patch)
tree2b3bd6e6e0f9f579c92cc96e794cfd45bd217524 /include/net
parentmac80211: copy nl80211 mgmt TX SKB for status (diff)
downloadkernel-qcow2-linux-3b79af973cf42de059d0e90e20fd145d7ed8c5c1.tar.gz
kernel-qcow2-linux-3b79af973cf42de059d0e90e20fd145d7ed8c5c1.tar.xz
kernel-qcow2-linux-3b79af973cf42de059d0e90e20fd145d7ed8c5c1.zip
mac80211: stop using pointers as userspace cookies
Even if the pointers are really only accessible to root and used pretty much only by wpa_supplicant, this is still not great; even for debugging it'd be easier to have something that's easier to read and guaranteed to never get reused. With the recent change to make mac80211 create an ack_skb for the mgmt-tx path this becomes possible, only the client probe method needs to also allocate an ack_skb, and we can store the cookie in that skb. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/mac80211.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 39e864b35083..7466c55bfc0b 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -875,6 +875,9 @@ struct ieee80211_tx_info {
/* 4 bytes free */
} control;
struct {
+ u64 cookie;
+ } ack;
+ struct {
struct ieee80211_tx_rate rates[IEEE80211_TX_MAX_RATES];
s32 ack_signal;
u8 ampdu_ack_len;