Skip to content

Commit

Permalink
cfg80211: reorder code to obsolete forward declaration
Browse files Browse the repository at this point in the history
Reorder functions to remove the need for a forward declaration
introduced by the last commit.

Signed-off-by: Sven Neumann <s.neumann@raumfeld.com>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Luis R. Rodriguez <mcgrof@gmail.com>
Cc: Daniel Mack <daniel@zonque.org>
Cc: linux-wireless@vger.kernel.org
Acked-by:  Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sven Neumann authored and John W. Linville committed Sep 14, 2011
1 parent eac03e3 commit d7549cb
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ struct reg_beacon {
struct ieee80211_channel chan;
};

static void wiphy_update_regulatory(struct wiphy *wiphy,
enum nl80211_reg_initiator initiator);

static void reg_todo(struct work_struct *work);
static DECLARE_WORK(reg_work, reg_todo);

Expand Down Expand Up @@ -914,14 +911,6 @@ static bool ignore_reg_update(struct wiphy *wiphy,
return false;
}

static void update_all_wiphy_regulatory(enum nl80211_reg_initiator initiator)
{
struct cfg80211_registered_device *rdev;

list_for_each_entry(rdev, &cfg80211_rdev_list, list)
wiphy_update_regulatory(&rdev->wiphy, initiator);
}

static void handle_reg_beacon(struct wiphy *wiphy,
unsigned int chan_idx,
struct reg_beacon *reg_beacon)
Expand Down Expand Up @@ -1150,6 +1139,14 @@ void regulatory_update(struct wiphy *wiphy,
mutex_unlock(&reg_mutex);
}

static void update_all_wiphy_regulatory(enum nl80211_reg_initiator initiator)
{
struct cfg80211_registered_device *rdev;

list_for_each_entry(rdev, &cfg80211_rdev_list, list)
wiphy_update_regulatory(&rdev->wiphy, initiator);
}

static void handle_channel_custom(struct wiphy *wiphy,
enum ieee80211_band band,
unsigned int chan_idx,
Expand Down

0 comments on commit d7549cb

Please sign in to comment.