Fix changes in wifi code from 4.2 to 4.4