@@ -1785,7 +1785,7 @@ static int ieee80211_cancel_remain_on_channel(struct wiphy *wiphy,
}
static enum work_done_result
-ieee80211_offchan_tx_done(struct ieee80211_work *wk, struct sk_buff *skb)
+ieee80211_offchan_tx_done(struct mac80211_work *wk, struct sk_buff *skb)
{
/*
* Use the data embedded in the work struct for reporting
@@ -1816,7 +1816,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,
struct mac80211_local *local = sdata->local;
struct sk_buff *skb;
struct sta_info *sta;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
const struct ieee80211_mgmt *mgmt = (void *)buf;
u32 flags = IEEE80211_TX_INTFL_NL80211_FRAME_TX |
IEEE80211_TX_CTL_REQ_TX_STATUS;
@@ -1983,7 +1983,7 @@ static int ieee80211_mgmt_tx_cancel_wait(struct wiphy *wiphy,
{
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
struct mac80211_local *local = sdata->local;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
int ret = -ENOENT;
mutex_lock(&local->mtx);
@@ -1274,7 +1274,7 @@ u32 __ieee80211_recalc_idle(struct mac80211_local *local)
struct ieee80211_sub_if_data *sdata;
int count = 0;
bool working = false, scanning = false, hw_roc = false;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
unsigned int led_trig_start = 0, led_trig_stop = 0;
#ifdef CONFIG_PROVE_LOCKING
@@ -279,14 +279,14 @@ enum work_done_result {
WORK_DONE_REQUEUE,
};
-struct ieee80211_work {
+struct mac80211_work {
struct list_head list;
struct rcu_head rcu_head;
struct ieee80211_sub_if_data *sdata;
- enum work_done_result (*done)(struct ieee80211_work *wk,
+ enum work_done_result (*done)(struct mac80211_work *wk,
struct sk_buff *skb);
struct ieee80211_channel *chan;
@@ -1374,8 +1374,8 @@ size_t ieee80211_ie_split_vendor(const u8 *ies, size_t ielen, size_t offset);
/* internal work items */
void ieee80211_work_init(struct mac80211_local *local);
-void ieee80211_add_work(struct ieee80211_work *wk);
-void free_work(struct ieee80211_work *wk);
+void ieee80211_add_work(struct mac80211_work *wk);
+void free_work(struct mac80211_work *wk);
void ieee80211_work_purge(struct ieee80211_sub_if_data *sdata);
ieee80211_rx_result ieee80211_work_rx_mgmt(struct ieee80211_sub_if_data *sdata,
struct sk_buff *skb);
@@ -1431,7 +1431,7 @@ ieee80211_rx_mgmt_disassoc(struct ieee80211_sub_if_data *sdata,
}
-static bool ieee80211_assoc_success(struct ieee80211_work *wk,
+static bool ieee80211_assoc_success(struct mac80211_work *wk,
struct ieee80211_mgmt *mgmt, size_t len)
{
struct ieee80211_sub_if_data *sdata = wk->sdata;
@@ -1964,7 +1964,7 @@ void ieee80211_sta_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata,
if (skb->len >= 24 + 2 /* mgmt + deauth reason */ &&
(fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_DEAUTH) {
struct mac80211_local *local = sdata->local;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
mutex_lock(&local->mtx);
list_for_each_entry(wk, &local->work_list, list) {
@@ -2274,7 +2274,7 @@ int ieee80211_max_network_latency(struct notifier_block *nb,
/* config hooks */
static enum work_done_result
-ieee80211_probe_auth_done(struct ieee80211_work *wk,
+ieee80211_probe_auth_done(struct mac80211_work *wk,
struct sk_buff *skb)
{
if (!skb) {
@@ -2300,7 +2300,7 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
struct cfg80211_auth_request *req)
{
const u8 *ssid;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
u16 auth_alg;
if (req->local_state_change)
@@ -2363,7 +2363,7 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
return 0;
}
-static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,
+static enum work_done_result ieee80211_assoc_done(struct mac80211_work *wk,
struct sk_buff *skb)
{
struct ieee80211_mgmt *mgmt;
@@ -2414,7 +2414,7 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
{
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
struct mac80211_bss *bss = (void *)req->bss->priv;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
const u8 *ssid;
int i;
@@ -2540,7 +2540,7 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,
{
struct mac80211_local *local = sdata->local;
struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
u8 bssid[ETH_ALEN];
bool assoc_bss = false;
@@ -327,7 +327,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
}
if (info->flags & IEEE80211_TX_INTFL_NL80211_FRAME_TX) {
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
u64 cookie = (unsigned long)skb;
rcu_read_lock();
@@ -67,13 +67,13 @@ static void run_again(struct mac80211_local *local,
static void work_free_rcu(struct rcu_head *head)
{
- struct ieee80211_work *wk =
- container_of(head, struct ieee80211_work, rcu_head);
+ struct mac80211_work *wk =
+ container_of(head, struct mac80211_work, rcu_head);
kfree(wk);
}
-void free_work(struct ieee80211_work *wk)
+void free_work(struct mac80211_work *wk)
{
call_rcu(&wk->rcu_head, work_free_rcu);
}
@@ -192,7 +192,7 @@ static void ieee80211_add_ht_ie(struct sk_buff *skb, const u8 *ht_info_ie,
}
static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata,
- struct ieee80211_work *wk)
+ struct mac80211_work *wk)
{
struct mac80211_local *local = sdata->local;
struct sk_buff *skb;
@@ -410,7 +410,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata,
}
static void ieee80211_remove_auth_bss(struct mac80211_local *local,
- struct ieee80211_work *wk)
+ struct mac80211_work *wk)
{
struct cfg80211_bss *cbss;
u16 capa_val = WLAN_CAPABILITY_ESS;
@@ -430,7 +430,7 @@ static void ieee80211_remove_auth_bss(struct mac80211_local *local,
}
static enum work_action __must_check
-ieee80211_direct_probe(struct ieee80211_work *wk)
+ieee80211_direct_probe(struct mac80211_work *wk)
{
struct ieee80211_sub_if_data *sdata = wk->sdata;
struct mac80211_local *local = sdata->local;
@@ -468,7 +468,7 @@ ieee80211_direct_probe(struct ieee80211_work *wk)
static enum work_action __must_check
-ieee80211_authenticate(struct ieee80211_work *wk)
+ieee80211_authenticate(struct mac80211_work *wk)
{
struct ieee80211_sub_if_data *sdata = wk->sdata;
struct mac80211_local *local = sdata->local;
@@ -501,7 +501,7 @@ ieee80211_authenticate(struct ieee80211_work *wk)
}
static enum work_action __must_check
-ieee80211_associate(struct ieee80211_work *wk)
+ieee80211_associate(struct mac80211_work *wk)
{
struct ieee80211_sub_if_data *sdata = wk->sdata;
struct mac80211_local *local = sdata->local;
@@ -533,7 +533,7 @@ ieee80211_associate(struct ieee80211_work *wk)
}
static enum work_action __must_check
-ieee80211_remain_on_channel_timeout(struct ieee80211_work *wk)
+ieee80211_remain_on_channel_timeout(struct mac80211_work *wk)
{
/*
* First time we run, do nothing -- the generic code will
@@ -553,7 +553,7 @@ ieee80211_remain_on_channel_timeout(struct ieee80211_work *wk)
}
static enum work_action __must_check
-ieee80211_offchannel_tx(struct ieee80211_work *wk)
+ieee80211_offchannel_tx(struct mac80211_work *wk)
{
if (!wk->started) {
wk->timeout = jiffies + msecs_to_jiffies(wk->offchan_tx.wait);
@@ -572,7 +572,7 @@ ieee80211_offchannel_tx(struct ieee80211_work *wk)
}
static enum work_action __must_check
-ieee80211_assoc_beacon_wait(struct ieee80211_work *wk)
+ieee80211_assoc_beacon_wait(struct mac80211_work *wk)
{
if (wk->started)
return WORK_ACT_TIMEOUT;
@@ -587,7 +587,7 @@ ieee80211_assoc_beacon_wait(struct ieee80211_work *wk)
return WORK_ACT_NONE;
}
-static void ieee80211_auth_challenge(struct ieee80211_work *wk,
+static void ieee80211_auth_challenge(struct mac80211_work *wk,
struct ieee80211_mgmt *mgmt,
size_t len)
{
@@ -607,7 +607,7 @@ static void ieee80211_auth_challenge(struct ieee80211_work *wk,
}
static enum work_action __must_check
-ieee80211_rx_mgmt_auth(struct ieee80211_work *wk,
+ieee80211_rx_mgmt_auth(struct mac80211_work *wk,
struct ieee80211_mgmt *mgmt, size_t len)
{
u16 auth_alg, auth_transaction, status_code;
@@ -654,7 +654,7 @@ ieee80211_rx_mgmt_auth(struct ieee80211_work *wk,
}
static enum work_action __must_check
-ieee80211_rx_mgmt_assoc_resp(struct ieee80211_work *wk,
+ieee80211_rx_mgmt_assoc_resp(struct mac80211_work *wk,
struct ieee80211_mgmt *mgmt, size_t len,
bool reassoc)
{
@@ -712,7 +712,7 @@ ieee80211_rx_mgmt_assoc_resp(struct ieee80211_work *wk,
}
static enum work_action __must_check
-ieee80211_rx_mgmt_probe_resp(struct ieee80211_work *wk,
+ieee80211_rx_mgmt_probe_resp(struct mac80211_work *wk,
struct ieee80211_mgmt *mgmt, size_t len,
struct ieee80211_rx_status *rx_status)
{
@@ -737,7 +737,7 @@ ieee80211_rx_mgmt_probe_resp(struct ieee80211_work *wk,
}
static enum work_action __must_check
-ieee80211_rx_mgmt_beacon(struct ieee80211_work *wk,
+ieee80211_rx_mgmt_beacon(struct mac80211_work *wk,
struct ieee80211_mgmt *mgmt, size_t len)
{
struct ieee80211_sub_if_data *sdata = wk->sdata;
@@ -760,7 +760,7 @@ static void ieee80211_work_rx_queued_mgmt(struct mac80211_local *local,
{
struct ieee80211_rx_status *rx_status;
struct ieee80211_mgmt *mgmt;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
enum work_action rma = WORK_ACT_NONE;
u16 fc;
@@ -918,7 +918,7 @@ static void ieee80211_work_work(struct work_struct *work)
struct mac80211_local *local =
container_of(work, struct mac80211_local, work_work);
struct sk_buff *skb;
- struct ieee80211_work *wk, *tmp;
+ struct mac80211_work *wk, *tmp;
LIST_HEAD(free_work);
enum work_action rma;
bool remain_off_channel = false;
@@ -1117,7 +1117,7 @@ static void ieee80211_work_work(struct work_struct *work)
}
}
-void ieee80211_add_work(struct ieee80211_work *wk)
+void ieee80211_add_work(struct mac80211_work *wk)
{
struct mac80211_local *local;
@@ -1155,7 +1155,7 @@ void ieee80211_work_init(struct mac80211_local *local)
void ieee80211_work_purge(struct ieee80211_sub_if_data *sdata)
{
struct mac80211_local *local = sdata->local;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
bool cleanup = false;
mutex_lock(&local->mtx);
@@ -1188,7 +1188,7 @@ ieee80211_rx_result ieee80211_work_rx_mgmt(struct ieee80211_sub_if_data *sdata,
{
struct mac80211_local *local = sdata->local;
struct ieee80211_mgmt *mgmt;
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
u16 fc;
if (skb->len < 24)
@@ -1220,7 +1220,7 @@ ieee80211_rx_result ieee80211_work_rx_mgmt(struct ieee80211_sub_if_data *sdata,
return RX_CONTINUE;
}
-static enum work_done_result ieee80211_remain_done(struct ieee80211_work *wk,
+static enum work_done_result ieee80211_remain_done(struct mac80211_work *wk,
struct sk_buff *skb)
{
/*
@@ -1238,7 +1238,7 @@ int ieee80211_wk_remain_on_channel(struct ieee80211_sub_if_data *sdata,
enum nl80211_channel_type channel_type,
unsigned int duration, u64 *cookie)
{
- struct ieee80211_work *wk;
+ struct mac80211_work *wk;
wk = kzalloc(sizeof(*wk), GFP_KERNEL);
if (!wk)
@@ -1263,7 +1263,7 @@ int ieee80211_wk_cancel_remain_on_channel(struct ieee80211_sub_if_data *sdata,
u64 cookie)
{
struct mac80211_local *local = sdata->local;
- struct ieee80211_work *wk, *tmp;
+ struct mac80211_work *wk, *tmp;
bool found = false;
mutex_lock(&local->mtx);
Signed-off-by: Kalle Valo <kvalo@adurom.com> --- net/mac80211/cfg.c | 6 +++--- net/mac80211/iface.c | 2 +- net/mac80211/mac80211_i.h | 8 ++++---- net/mac80211/mlme.c | 14 +++++++------ net/mac80211/status.c | 2 +- net/mac80211/work.c | 48 +++++++++++++++++++++++---------------------- 6 files changed, 40 insertions(+), 40 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html