iwlwifi: mvm: move AP-specific code to right function