Skip to content

Commit d7549cb

Browse files
Sven Neumannlinvjw
authored andcommitted
cfg80211: reorder code to obsolete forward declaration
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>
1 parent eac03e3 commit d7549cb

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

‎net/wireless/reg.c‎

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ struct reg_beacon {
101101
struct ieee80211_channel chan;
102102
};
103103

104-
static void wiphy_update_regulatory(struct wiphy *wiphy,
105-
enum nl80211_reg_initiator initiator);
106-
107104
static void reg_todo(struct work_struct *work);
108105
static DECLARE_WORK(reg_work, reg_todo);
109106

@@ -914,14 +911,6 @@ static bool ignore_reg_update(struct wiphy *wiphy,
914911
return false;
915912
}
916913

917-
static void update_all_wiphy_regulatory(enum nl80211_reg_initiator initiator)
918-
{
919-
struct cfg80211_registered_device *rdev;
920-
921-
list_for_each_entry(rdev, &cfg80211_rdev_list, list)
922-
wiphy_update_regulatory(&rdev->wiphy, initiator);
923-
}
924-
925914
static void handle_reg_beacon(struct wiphy *wiphy,
926915
unsigned int chan_idx,
927916
struct reg_beacon *reg_beacon)
@@ -1150,6 +1139,14 @@ void regulatory_update(struct wiphy *wiphy,
11501139
mutex_unlock(&reg_mutex);
11511140
}
11521141

1142+
static void update_all_wiphy_regulatory(enum nl80211_reg_initiator initiator)
1143+
{
1144+
struct cfg80211_registered_device *rdev;
1145+
1146+
list_for_each_entry(rdev, &cfg80211_rdev_list, list)
1147+
wiphy_update_regulatory(&rdev->wiphy, initiator);
1148+
}
1149+
11531150
static void handle_channel_custom(struct wiphy *wiphy,
11541151
enum ieee80211_band band,
11551152
unsigned int chan_idx,

0 commit comments

Comments
 (0)