mac80211_hwsim: stop using pointers as cookies
authorJohannes Berg <johannes.berg@intel.com>
Fri, 6 Nov 2015 10:57:23 +0000 (11:57 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 4 Dec 2015 13:43:32 +0000 (14:43 +0100)
commit959eb2fd70df86a089e9e31be654462235952a24
tree03a73aad40ab8f4a2a72f52bce6ed8bea074c06b
parent00eeccc4a9a84afe819062df13cdb47159919a7c
mac80211_hwsim: stop using pointers as cookies

Instead of using pointers, use sequentially assigned cookies.
This is easier to understand while debugging and also avoids
problems when the pointer is reused for the next allocation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c