linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@adurom.com>
To: linux-wireless@vger.kernel.org
Subject: [RFC PATCH 16/27] mac80211: rename ieee80211_work_type to mac80211_work_type
Date: Sun, 29 May 2011 23:06:00 +0300	[thread overview]
Message-ID: <20110529200600.16479.47044.stgit@localhost6.localdomain6> (raw)
In-Reply-To: <20110529195022.16479.71762.stgit@localhost6.localdomain6>

Signed-off-by: Kalle Valo <kvalo@adurom.com>
---
 net/mac80211/cfg.c        |    4 ++--
 net/mac80211/mac80211_i.h |   18 +++++++++---------
 net/mac80211/mlme.c       |   30 +++++++++++++++---------------
 net/mac80211/status.c     |    2 +-
 net/mac80211/work.c       |   34 +++++++++++++++++-----------------
 5 files changed, 44 insertions(+), 44 deletions(-)

diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 593c07d..4d1dc36 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1963,7 +1963,7 @@ static int ieee80211_mgmt_tx(struct wiphy *wiphy, struct net_device *dev,
 		return -ENOMEM;
 	}
 
-	wk->type = IEEE80211_WORK_OFFCHANNEL_TX;
+	wk->type = MAC80211_WORK_OFFCHANNEL_TX;
 	wk->chan = chan;
 	wk->chan_type = channel_type;
 	wk->sdata = sdata;
@@ -2019,7 +2019,7 @@ static int ieee80211_mgmt_tx_cancel_wait(struct wiphy *wiphy,
 		if (wk->sdata != sdata)
 			continue;
 
-		if (wk->type != IEEE80211_WORK_OFFCHANNEL_TX)
+		if (wk->type != MAC80211_WORK_OFFCHANNEL_TX)
 			continue;
 
 		if (cookie != (unsigned long) wk->offchan_tx.frame)
diff --git a/net/mac80211/mac80211_i.h b/net/mac80211/mac80211_i.h
index dc30f13..ad654de 100644
--- a/net/mac80211/mac80211_i.h
+++ b/net/mac80211/mac80211_i.h
@@ -257,14 +257,14 @@ struct mesh_preq_queue {
 	u8 flags;
 };
 
-enum ieee80211_work_type {
-	IEEE80211_WORK_ABORT,
-	IEEE80211_WORK_DIRECT_PROBE,
-	IEEE80211_WORK_AUTH,
-	IEEE80211_WORK_ASSOC_BEACON_WAIT,
-	IEEE80211_WORK_ASSOC,
-	IEEE80211_WORK_REMAIN_ON_CHANNEL,
-	IEEE80211_WORK_OFFCHANNEL_TX,
+enum mac80211_work_type {
+	MAC80211_WORK_ABORT,
+	MAC80211_WORK_DIRECT_PROBE,
+	MAC80211_WORK_AUTH,
+	MAC80211_WORK_ASSOC_BEACON_WAIT,
+	MAC80211_WORK_ASSOC,
+	MAC80211_WORK_REMAIN_ON_CHANNEL,
+	MAC80211_WORK_OFFCHANNEL_TX,
 };
 
 /**
@@ -293,7 +293,7 @@ struct ieee80211_work {
 	enum nl80211_channel_type chan_type;
 
 	unsigned long timeout;
-	enum ieee80211_work_type type;
+	enum mac80211_work_type type;
 
 	u8 filter_ta[ETH_ALEN];
 
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 4e24610..fb72946 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1971,8 +1971,8 @@ void ieee80211_sta_rx_queued_mgmt(struct ieee80211_sub_if_data *sdata,
 			if (wk->sdata != sdata)
 				continue;
 
-			if (wk->type != IEEE80211_WORK_ASSOC &&
-			    wk->type != IEEE80211_WORK_ASSOC_BEACON_WAIT)
+			if (wk->type != MAC80211_WORK_ASSOC &&
+			    wk->type != MAC80211_WORK_ASSOC_BEACON_WAIT)
 				continue;
 
 			if (memcmp(mgmt->bssid, wk->filter_ta, ETH_ALEN))
@@ -2282,7 +2282,7 @@ ieee80211_probe_auth_done(struct ieee80211_work *wk,
 		return WORK_DONE_DESTROY;
 	}
 
-	if (wk->type == IEEE80211_WORK_AUTH) {
+	if (wk->type == MAC80211_WORK_AUTH) {
 		cfg80211_send_rx_auth(wk->sdata->dev, skb->data, skb->len);
 		return WORK_DONE_DESTROY;
 	}
@@ -2291,7 +2291,7 @@ ieee80211_probe_auth_done(struct ieee80211_work *wk,
 	ieee80211_rx_mgmt_probe_resp(wk->sdata, skb);
 	mutex_unlock(&wk->sdata->u.mgd.mtx);
 
-	wk->type = IEEE80211_WORK_AUTH;
+	wk->type = MAC80211_WORK_AUTH;
 	wk->probe_auth.tries = 0;
 	return WORK_DONE_REQUEUE;
 }
@@ -2351,9 +2351,9 @@ int ieee80211_mgd_auth(struct ieee80211_sub_if_data *sdata,
 
 	/* if we already have a probe, don't probe again */
 	if (req->bss->proberesp_ies)
-		wk->type = IEEE80211_WORK_AUTH;
+		wk->type = MAC80211_WORK_AUTH;
 	else
-		wk->type = IEEE80211_WORK_DIRECT_PROBE;
+		wk->type = MAC80211_WORK_DIRECT_PROBE;
 	wk->chan = req->bss->channel;
 	wk->chan_type = NL80211_CHAN_NO_HT;
 	wk->sdata = sdata;
@@ -2376,7 +2376,7 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,
 		return WORK_DONE_DESTROY;
 	}
 
-	if (wk->type == IEEE80211_WORK_ASSOC_BEACON_WAIT) {
+	if (wk->type == MAC80211_WORK_ASSOC_BEACON_WAIT) {
 		mutex_lock(&wk->sdata->u.mgd.mtx);
 		rx_status = (void *) skb->cb;
 		ieee802_11_parse_elems(skb->data + 24 + 12, skb->len - 24 - 12, &elems);
@@ -2384,7 +2384,7 @@ static enum work_done_result ieee80211_assoc_done(struct ieee80211_work *wk,
 				      &elems, true);
 		mutex_unlock(&wk->sdata->u.mgd.mtx);
 
-		wk->type = IEEE80211_WORK_ASSOC;
+		wk->type = MAC80211_WORK_ASSOC;
 		/* not really done yet */
 		return WORK_DONE_REQUEUE;
 	}
@@ -2510,9 +2510,9 @@ int ieee80211_mgd_assoc(struct ieee80211_sub_if_data *sdata,
 	wk->done = ieee80211_assoc_done;
 	if (!bss->dtim_period &&
 	    sdata->local->hw.flags & IEEE80211_HW_NEED_DTIM_PERIOD)
-		wk->type = IEEE80211_WORK_ASSOC_BEACON_WAIT;
+		wk->type = MAC80211_WORK_ASSOC_BEACON_WAIT;
 	else
-		wk->type = IEEE80211_WORK_ASSOC;
+		wk->type = MAC80211_WORK_ASSOC;
 
 	if (req->use_mfp) {
 		ifmgd->mfp = IEEE80211_MFP_REQUIRED;
@@ -2561,16 +2561,16 @@ int ieee80211_mgd_deauth(struct ieee80211_sub_if_data *sdata,
 			if (wk->sdata != sdata)
 				continue;
 
-			if (wk->type != IEEE80211_WORK_DIRECT_PROBE &&
-			    wk->type != IEEE80211_WORK_AUTH &&
-			    wk->type != IEEE80211_WORK_ASSOC &&
-			    wk->type != IEEE80211_WORK_ASSOC_BEACON_WAIT)
+			if (wk->type != MAC80211_WORK_DIRECT_PROBE &&
+			    wk->type != MAC80211_WORK_AUTH &&
+			    wk->type != MAC80211_WORK_ASSOC &&
+			    wk->type != MAC80211_WORK_ASSOC_BEACON_WAIT)
 				continue;
 
 			if (memcmp(req->bss->bssid, wk->filter_ta, ETH_ALEN))
 				continue;
 
-			not_auth_yet = wk->type == IEEE80211_WORK_DIRECT_PROBE;
+			not_auth_yet = wk->type == MAC80211_WORK_DIRECT_PROBE;
 			list_del_rcu(&wk->list);
 			free_work(wk);
 			break;
diff --git a/net/mac80211/status.c b/net/mac80211/status.c
index 26d2c40..108e6b1 100644
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
@@ -332,7 +332,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb)
 
 		rcu_read_lock();
 		list_for_each_entry_rcu(wk, &local->work_list, list) {
-			if (wk->type != IEEE80211_WORK_OFFCHANNEL_TX)
+			if (wk->type != MAC80211_WORK_OFFCHANNEL_TX)
 				continue;
 			if (wk->offchan_tx.frame != skb)
 				continue;
diff --git a/net/mac80211/work.c b/net/mac80211/work.c
index 8856c5e..3a14bb8 100644
--- a/net/mac80211/work.c
+++ b/net/mac80211/work.c
@@ -612,7 +612,7 @@ ieee80211_rx_mgmt_auth(struct ieee80211_work *wk,
 {
 	u16 auth_alg, auth_transaction, status_code;
 
-	if (wk->type != IEEE80211_WORK_AUTH)
+	if (wk->type != MAC80211_WORK_AUTH)
 		return WORK_ACT_MISMATCH;
 
 	if (len < 24 + 6)
@@ -664,7 +664,7 @@ ieee80211_rx_mgmt_assoc_resp(struct ieee80211_work *wk,
 	struct ieee802_11_elems elems;
 	u8 *pos;
 
-	if (wk->type != IEEE80211_WORK_ASSOC)
+	if (wk->type != MAC80211_WORK_ASSOC)
 		return WORK_ACT_MISMATCH;
 
 	/*
@@ -722,7 +722,7 @@ ieee80211_rx_mgmt_probe_resp(struct ieee80211_work *wk,
 
 	ASSERT_WORK_MTX(local);
 
-	if (wk->type != IEEE80211_WORK_DIRECT_PROBE)
+	if (wk->type != MAC80211_WORK_DIRECT_PROBE)
 		return WORK_ACT_MISMATCH;
 
 	if (len < 24 + 12)
@@ -745,7 +745,7 @@ ieee80211_rx_mgmt_beacon(struct ieee80211_work *wk,
 
 	ASSERT_WORK_MTX(local);
 
-	if (wk->type != IEEE80211_WORK_ASSOC_BEACON_WAIT)
+	if (wk->type != MAC80211_WORK_ASSOC_BEACON_WAIT)
 		return WORK_ACT_MISMATCH;
 
 	if (len < 24 + 12)
@@ -774,10 +774,10 @@ static void ieee80211_work_rx_queued_mgmt(struct mac80211_local *local,
 		const u8 *bssid = NULL;
 
 		switch (wk->type) {
-		case IEEE80211_WORK_DIRECT_PROBE:
-		case IEEE80211_WORK_AUTH:
-		case IEEE80211_WORK_ASSOC:
-		case IEEE80211_WORK_ASSOC_BEACON_WAIT:
+		case MAC80211_WORK_DIRECT_PROBE:
+		case MAC80211_WORK_AUTH:
+		case MAC80211_WORK_ASSOC:
+		case MAC80211_WORK_ASSOC_BEACON_WAIT:
 			bssid = wk->filter_ta;
 			break;
 		default:
@@ -1023,25 +1023,25 @@ static void ieee80211_work_work(struct work_struct *work)
 			/* nothing */
 			rma = WORK_ACT_NONE;
 			break;
-		case IEEE80211_WORK_ABORT:
+		case MAC80211_WORK_ABORT:
 			rma = WORK_ACT_TIMEOUT;
 			break;
-		case IEEE80211_WORK_DIRECT_PROBE:
+		case MAC80211_WORK_DIRECT_PROBE:
 			rma = ieee80211_direct_probe(wk);
 			break;
-		case IEEE80211_WORK_AUTH:
+		case MAC80211_WORK_AUTH:
 			rma = ieee80211_authenticate(wk);
 			break;
-		case IEEE80211_WORK_ASSOC:
+		case MAC80211_WORK_ASSOC:
 			rma = ieee80211_associate(wk);
 			break;
-		case IEEE80211_WORK_REMAIN_ON_CHANNEL:
+		case MAC80211_WORK_REMAIN_ON_CHANNEL:
 			rma = ieee80211_remain_on_channel_timeout(wk);
 			break;
-		case IEEE80211_WORK_OFFCHANNEL_TX:
+		case MAC80211_WORK_OFFCHANNEL_TX:
 			rma = ieee80211_offchannel_tx(wk);
 			break;
-		case IEEE80211_WORK_ASSOC_BEACON_WAIT:
+		case MAC80211_WORK_ASSOC_BEACON_WAIT:
 			rma = ieee80211_assoc_beacon_wait(wk);
 			break;
 		}
@@ -1163,7 +1163,7 @@ void ieee80211_work_purge(struct ieee80211_sub_if_data *sdata)
 		if (wk->sdata != sdata)
 			continue;
 		cleanup = true;
-		wk->type = IEEE80211_WORK_ABORT;
+		wk->type = MAC80211_WORK_ABORT;
 		wk->started = true;
 		wk->timeout = jiffies;
 	}
@@ -1244,7 +1244,7 @@ int ieee80211_wk_remain_on_channel(struct ieee80211_sub_if_data *sdata,
 	if (!wk)
 		return -ENOMEM;
 
-	wk->type = IEEE80211_WORK_REMAIN_ON_CHANNEL;
+	wk->type = MAC80211_WORK_REMAIN_ON_CHANNEL;
 	wk->chan = chan;
 	wk->chan_type = channel_type;
 	wk->sdata = sdata;


  parent reply	other threads:[~2011-05-29 20:06 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29 20:03 [RFC PATCH 00/27] mac80211: create mac80211_ prefix Kalle Valo
2011-05-29 20:04 ` [RFC PATCH 01/27] iwlegacy: fix stop/wake queue hacks Kalle Valo
2011-05-29 20:04 ` [RFC PATCH 02/27] iwlwifi: " Kalle Valo
2011-05-29 20:04 ` [RFC PATCH 03/27] zd1211rw: include mac80211.h from zd_chip.h Kalle Valo
2011-05-31  8:01   ` Walter Goldens
2011-05-31 13:03     ` Jussi Kivilinna
2011-05-31 17:46       ` Walter Goldens
2011-05-31 19:24         ` Jussi Kivilinna
2011-06-04  8:16           ` Walter Goldens
2011-05-29 20:04 ` [RFC PATCH 04/27] rtlwifi: include mac80211.h from core.h Kalle Valo
2011-05-30  4:30   ` Larry Finger
2011-05-29 20:04 ` [RFC PATCH 05/27] mac80211: switch mac80211.h to use mac80211 prefix Kalle Valo
2011-05-29 20:04 ` [RFC PATCH 06/27] mac80211: rename ieee80211_i.h to mac80211_i.h Kalle Valo
2011-05-29 20:04 ` [RFC PATCH 07/27] mac80211: rename ieee80211_local to mac80211_local Kalle Valo
2011-05-29 20:05 ` [RFC PATCH 08/27] mac80211: rename ieee80211_fragment_entry to mac80211_fragment_entry Kalle Valo
2011-05-29 20:05 ` [RFC PATCH 09/27] mac80211: rename ieee80211_bss to mac80211_bss Kalle Valo
2011-05-29 20:05 ` [RFC PATCH 10/27] mac80211: rename ieee80211_tx_data to mac80211_tx_data Kalle Valo
2011-05-29 20:05 ` [RFC PATCH 11/27] mac80211: rename ieee80211_packet_rx_flags to mac80211_packet_rx_flags Kalle Valo
2011-05-29 20:05 ` [RFC PATCH 12/27] mac80211: rename ieee80211_rx_flags to mac80211_i_rx_flags Kalle Valo
2011-05-29 20:05 ` [RFC PATCH 13/27] mac80211: rename ieee80211_rx_data to mac80211_rx_data Kalle Valo
2011-05-29 20:05 ` [RFC PATCH 14/27] mac80211: rename ieee80211_if_ap to mac80211_if_ap Kalle Valo
2011-05-29 20:05 ` [RFC PATCH 15/27] mac80211: change ieee80211_if_wds and _vlan to use mac80211 prefix Kalle Valo
2011-05-29 20:06 ` Kalle Valo [this message]
2011-05-29 20:06 ` [RFC PATCH 17/27] mac80211: rename ieee80211_work to mac80211_work Kalle Valo
2011-05-29 20:06 ` [RFC PATCH 18/27] mac80211: rename ieee80211_sta_flags to mac80211_sta_flags Kalle Valo
2011-05-29 20:06 ` [RFC PATCH 19/27] mac80211: rename ieee80211_if_managed to mac80211_if_managed Kalle Valo
2011-05-29 20:06 ` [RFC PATCH 20/27] mac80211: rename ieee80211_if_ibss to mac80211_if_ibss Kalle Valo
2011-05-29 20:06 ` [RFC PATCH 21/27] mac80211: rename ieee80211_if_mesh to mac80211_if_mesh Kalle Valo
2011-05-29 20:06 ` [RFC PATCH 22/27] mac80211: rename ieee80211_sub_if_data_flags to mac80211_sub_if_data_flags Kalle Valo
2011-05-29 20:06 ` [RFC PATCH 23/27] mac80211: rename ieee80211_sdata_state_bits to mac80211_sdata_state_bits Kalle Valo
2011-05-29 20:06 ` [RFC PATCH 24/27] mac80211: ieee80211_sub_if_data to mac80211_sub_if_data Kalle Valo
2011-05-29 20:07 ` [RFC PATCH 25/27] mac80211: use mac80211 prefix with rx and tx msg flags Kalle Valo
2011-05-29 20:07 ` [RFC PATCH 26/27] mac80211: change queue stop reasons to use mac80211 prefix Kalle Valo
2011-05-29 20:07 ` [RFC PATCH 27/27] mac80211: use mac80211_hw Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110529200600.16479.47044.stgit@localhost6.localdomain6 \
    --to=kvalo@adurom.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).