carl9170 firmware: mac reset refactoring, take-2