HomeFreeBSD

net80211: reduce code duplication between ieee80211_swscan_cancel_scan()

Description

net80211: reduce code duplication between ieee80211_swscan_cancel_scan()
and ieee80211_swscan_cancel_anyscan()

Tested with:

  • Intel 3945BG, STA mode.
  • RTL8188EU, HOSTAP mode.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5133