Commit f333a7a2 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville

cfg80211: move reg_work and reg_todo above

These will be used earlier in the next few patches.
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Tested-by: default avatarMark Mentovai <mark@moxienet.com>
Tested-by: default avatarBruno Randolf <br1@einfach.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 31e99729
...@@ -96,6 +96,9 @@ struct reg_beacon { ...@@ -96,6 +96,9 @@ struct reg_beacon {
struct ieee80211_channel chan; struct ieee80211_channel chan;
}; };
static void reg_todo(struct work_struct *work);
static DECLARE_WORK(reg_work, reg_todo);
/* We keep a static world regulatory domain in case of the absence of CRDA */ /* We keep a static world regulatory domain in case of the absence of CRDA */
static const struct ieee80211_regdomain world_regdom = { static const struct ieee80211_regdomain world_regdom = {
.n_reg_rules = 5, .n_reg_rules = 5,
...@@ -1494,8 +1497,6 @@ static void reg_todo(struct work_struct *work) ...@@ -1494,8 +1497,6 @@ static void reg_todo(struct work_struct *work)
reg_process_pending_beacon_hints(); reg_process_pending_beacon_hints();
} }
static DECLARE_WORK(reg_work, reg_todo);
static void queue_regulatory_request(struct regulatory_request *request) static void queue_regulatory_request(struct regulatory_request *request)
{ {
if (isalpha(request->alpha2[0])) if (isalpha(request->alpha2[0]))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment