wificond: correct the handling of NL80211_CMD_CH_SWITCH_NOTIFY

This commit corrects the improper handling of
NL80211_CMD_CH_SWITCH_NOTIFY , which breaks the SAP case. Also
updates the associated frequency based on the data carried by
this event, rather than querying the same from the scan results
as there would be duplicate BSS entries when the channel has
changed and ideal way is to consider the latest BSS.
This implementation resorts to the way wpa_supplicant handles
the same while updating the connected frequency on CSA.

Change-Id: Ia6d7edeedfe9a378db490626cffd94a35cd580df
CRs-Fixed: 2341619
3 files changed