adding wifi functions for 16Ch, initial

Basically copying PWMEXPANSION functionality and adding it to wifi
files.  Initially, likely buggy commit.