Remove duplicated CONFIG_AP_MODE check.

The check for AP_MODE config is duplicated so it can be removed.