fixed error when executing addwifi with "-R" option

there was a compare of str() < int() which led to an error