The mechanism of Hostap mode's beacon generation is the same as in IBSS mode, so simply add `IEEE80211_M_HOSTAP` on
`iv->newstate()`.
Currently, wtap(4) has trouble combined with wpa_supplicant(8), please see D38508. The patch D38807 doesn't fix the problem, although this patch works well on many hardware NICs.