fix bug with ap+sta modes using wpa