mac80211_hwsim: assign index from separate counter
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 Jan 2014 21:56:30 +0000 (22:56 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 10 Jan 2014 19:12:58 +0000 (20:12 +0100)
commit2d68992b6079cd5bdfff85251c3c670ce1560d5c
tree2456560eb608c74ed248fb847b13e4ae19ab1c40
parent8133841045b81639495dc5ca1bcab45d279661ab
mac80211_hwsim: assign index from separate counter

To later allow dynamic registration, assign the index for the
struct device and MAC address from a new free-running counter.

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