mac80211: refactor and move scan RX code