cfg80211: unify cfg80211_roamed() and cfg80211_roamed_bss()
authorAvraham Stern <avraham.stern@intel.com>
Wed, 26 Apr 2017 07:58:49 +0000 (10:58 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 28 Apr 2017 10:28:44 +0000 (12:28 +0200)
commit29ce6ecbb83c9185d76e3a7c340c9702d2a54961
treecb823f5b578cdef2caab533d0d0d37910b83ddc4
parent21a8e9dd52b64f0170bad208293ef8c30c3c1403
cfg80211: unify cfg80211_roamed() and cfg80211_roamed_bss()

cfg80211_roamed() and cfg80211_roamed_bss() take the same arguments
except that cfg80211_roamed() requires the BSSID and
cfg80211_roamed_bss() requires the bss entry.

Unify the two functions by using a struct for driver initiated
roaming information so that either the BSSID or the bss entry can be
passed as an argument to the unified function.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
[modified the ath6k, brcm80211, rndis and wlan-ng drivers accordingly]
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
[modify brcmfmac to remove the useless cast, spotted by Arend]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
drivers/net/wireless/rndis_wlan.c
drivers/staging/wlan-ng/cfg80211.c
include/net/cfg80211.h
net/wireless/core.h
net/wireless/nl80211.c
net/wireless/nl80211.h
net/wireless/sme.c
net/wireless/util.c