Instead of using some magic integer values that really only mean something to WPA internal code, just use simple strings. Possible values are "msgdump", "debug", "info", "warning" and "error" which map directly to WPA debugging support.