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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:22:46 +0000 (14:22 +0200)
commit594f1b923813cac77b384c24ab3b7209881da335
tree3709c0033957d4fca8ec69e8da97ecfc74564be5
parent6b6ed18432ead05d44b7950eb0accde7729e11d4
wifi: mac80211_hwsim: use 32-bit skb cookie

commit cc5250cdb43d444061412df7fae72d2b4acbdf97 upstream.

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>
Cc: Jeongik Cha <jeongik@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mac80211_hwsim.c