wifi: mac80211_hwsim: use 32-bit skb cookie
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Jul 2022 19:16:45 +0000 (21:16 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:12 +0000 (11:43 +0200)
commitcc5250cdb43d444061412df7fae72d2b4acbdf97
tree43724de21c4fe0270c600c3bd2d55e501e3943d2
parent9dd9495d560a39a3f6f43e77dc8cec3666efd7f7
wifi: mac80211_hwsim: use 32-bit skb cookie

We won't really have enough skbs to need a 64-bit cookie,
and on 32-bit platforms storing the 64-bit cookie into the
void *rate_driver_data doesn't work anyway. Switch back to
using just a 32-bit cookie and uintptr_t for the type to
avoid compiler warnings about all this.

Fixes: 4ee186fa7e40 ("wifi: mac80211_hwsim: fix race condition in pending packet")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c