Wireless MAC Processors: Programming MAC Protocols on Commodity Hardware