Great, problem solved. I replaced the int value with the enum "WIFI_POWER_18_5_dBm" and now it is working! Thanks!