fix building wlan bugs