mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 10:01:25 +00:00
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>
This commit is contained in:
parent
21a8e9dd52
commit
29ce6ecbb8
10 changed files with 123 additions and 129 deletions
|
@ -946,9 +946,7 @@ void cfg80211_process_wdev_events(struct wireless_dev *wdev)
|
|||
ev->cr.status == WLAN_STATUS_SUCCESS);
|
||||
break;
|
||||
case EVENT_ROAMED:
|
||||
__cfg80211_roamed(wdev, ev->rm.bss, ev->rm.req_ie,
|
||||
ev->rm.req_ie_len, ev->rm.resp_ie,
|
||||
ev->rm.resp_ie_len);
|
||||
__cfg80211_roamed(wdev, &ev->rm);
|
||||
break;
|
||||
case EVENT_DISCONNECTED:
|
||||
__cfg80211_disconnected(wdev->netdev,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue