cfg80211: no cookies in cfg80211_send_XXX()
Get rid of cookies in cfg80211_send_XXX() functions. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
b54853f1b1
commit
ce470613cd
@ -121,7 +121,7 @@ void cfg80211_send_rx_assoc(struct net_device *dev, const u8 *buf, size_t len)
|
||||
}
|
||||
EXPORT_SYMBOL(cfg80211_send_rx_assoc);
|
||||
|
||||
static void __cfg80211_send_deauth(struct net_device *dev,
|
||||
void __cfg80211_send_deauth(struct net_device *dev,
|
||||
const u8 *buf, size_t len)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
@ -177,27 +177,19 @@ static void __cfg80211_send_deauth(struct net_device *dev,
|
||||
false, NULL);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(__cfg80211_send_deauth);
|
||||
|
||||
|
||||
void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len,
|
||||
void *cookie)
|
||||
void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
|
||||
BUG_ON(cookie && wdev != cookie);
|
||||
|
||||
if (cookie) {
|
||||
/* called within callback */
|
||||
__cfg80211_send_deauth(dev, buf, len);
|
||||
} else {
|
||||
wdev_lock(wdev);
|
||||
__cfg80211_send_deauth(dev, buf, len);
|
||||
wdev_unlock(wdev);
|
||||
}
|
||||
wdev_lock(wdev);
|
||||
__cfg80211_send_deauth(dev, buf, len);
|
||||
wdev_unlock(wdev);
|
||||
}
|
||||
EXPORT_SYMBOL(cfg80211_send_deauth);
|
||||
|
||||
static void __cfg80211_send_disassoc(struct net_device *dev,
|
||||
void __cfg80211_send_disassoc(struct net_device *dev,
|
||||
const u8 *buf, size_t len)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
@ -238,22 +230,15 @@ static void __cfg80211_send_disassoc(struct net_device *dev,
|
||||
from_ap = memcmp(mgmt->sa, dev->dev_addr, ETH_ALEN) != 0;
|
||||
__cfg80211_disconnected(dev, NULL, 0, reason_code, from_ap);
|
||||
}
|
||||
EXPORT_SYMBOL(__cfg80211_send_disassoc);
|
||||
|
||||
void cfg80211_send_disassoc(struct net_device *dev, const u8 *buf, size_t len,
|
||||
void *cookie)
|
||||
void cfg80211_send_disassoc(struct net_device *dev, const u8 *buf, size_t len)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
|
||||
BUG_ON(cookie && wdev != cookie);
|
||||
|
||||
if (cookie) {
|
||||
/* called within callback */
|
||||
__cfg80211_send_disassoc(dev, buf, len);
|
||||
} else {
|
||||
wdev_lock(wdev);
|
||||
__cfg80211_send_disassoc(dev, buf, len);
|
||||
wdev_unlock(wdev);
|
||||
}
|
||||
wdev_lock(wdev);
|
||||
__cfg80211_send_disassoc(dev, buf, len);
|
||||
wdev_unlock(wdev);
|
||||
}
|
||||
EXPORT_SYMBOL(cfg80211_send_disassoc);
|
||||
|
||||
|
Reference in New Issue
Block a user