wifimac: prettify code