Fixed not defined variable issue and constant wlan issue

+ adding whitspace of the ap name to "+"