Refactoring: add function
Merge branch 'master' of https://github.com/adriaandejonge/client-wifi-fix