Remove a dependency of the deprecated wifi API