Please refer mac80211_hwsim:

en/users/Drivers/mac80211_hwsim