wifi: Disable the network based on the Deauth reason code.

Network connection failure shall happen due to various reasons
(VIZ assoc_reject, max supplicant loop iterations, authentication
failure due to wrong password, etc). For the cases apart from the
reason being assoc_reject there is no point continuing still
enabling the current profile and hence disable the same.

Change-Id: I9a0022d100dcfb1e1d1a9540ec6439ad140c06d1
CRs-fixed: 626680
Wifi: Add a feature to control wifi auto connect.

If wifi connection type and gsm to wifi connection type is auto connect,
auto connect wifi.
CRs-Fixed: 507965

Change-Id: Icbfc58c93f13e97a2b6c6526d154153031e4b77c
Fix calculation of next DateChangedEvent time

Calendar.HOUR indicates the hour of the morning or afternoon. In the
morning this is no problem, but if this method is called after noon, it
will schedule the alarm for 12:00 the next day instead of 00:00.

Change-Id: Ibce239a6c7a41df85cf0c6ca3f45871a581eb7d9