Skip to content

Commit

Permalink
cfg80211: make regulatory_update() static
Browse files Browse the repository at this point in the history
Now that we have wiphy_regulatory_register() we can
tuck away the core's regulatory_update() call there
and make it static.

Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
Luis R. Rodriguez authored and Johannes Berg committed Jul 17, 2012
1 parent bfead08 commit f8a1c77
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion net/wireless/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,6 @@ int wiphy_register(struct wiphy *wiphy)

/* set up regulatory info */
wiphy_regulatory_register(wiphy);
regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE);

list_add_rcu(&rdev->list, &cfg80211_rdev_list);
cfg80211_rdev_list_generation++;
Expand Down
6 changes: 4 additions & 2 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,8 +1232,8 @@ static void wiphy_update_regulatory(struct wiphy *wiphy,
wiphy->reg_notifier(wiphy, last_request);
}

void regulatory_update(struct wiphy *wiphy,
enum nl80211_reg_initiator setby)
static void regulatory_update(struct wiphy *wiphy,
enum nl80211_reg_initiator setby)
{
mutex_lock(&reg_mutex);
wiphy_update_regulatory(wiphy, setby);
Expand Down Expand Up @@ -2388,6 +2388,8 @@ void wiphy_regulatory_register(struct wiphy *wiphy)
reg_num_devs_support_basehint++;

mutex_unlock(&reg_mutex);

regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE);
}

/* Caller must hold cfg80211_mutex */
Expand Down
1 change: 0 additions & 1 deletion net/wireless/reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ void regulatory_exit(void);

int set_regdom(const struct ieee80211_regdomain *rd);

void regulatory_update(struct wiphy *wiphy, enum nl80211_reg_initiator setby);
bool reg_last_request_cell_base(void);

/**
Expand Down

0 comments on commit f8a1c77

Please sign in to comment.