fixed Wifi for new PWM values

The wifi class was accessing the channel array values directly to
calculate the number of bytes in output but then later on it was using
the GetChannel method to get it.  They now return different numbers.