device: Security should be provided when scanning for a hidden SSID

This will permit to ensure user connects the right network, when
connecting for the first time to a hidden network: current issues is
ConnMan does not check requested hidden network security when
connecting to it, thus allowing connect attemps to wrong network(s).

This patch also apply the same scan() function signature all over
the place (gpointer to void *, for the user_data part).

Reported by Alexandru Costache
5 files changed