aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-07-31 20:31:37 -0400
committerDavid S. Miller <davem@davemloft.net>2013-07-31 20:50:02 -0400
commit10dd9b7ce37e359066b9ab59592f81684360561a (patch)
treeb71542aa8b84927094d67db547250bebb9b99995 /include/net/cfg80211.h
parentc1d8f8041cd0357643d5d051d1425a17b75e9d2c (diff)
cfg80211.h/mac80211.h: Remove extern from function prototypes
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Reflow modified prototypes to 80 columns. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 7b0730aeb892..f49de283f50e 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -2841,7 +2841,7 @@ struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv);
2841 * 2841 *
2842 * Return: A non-negative wiphy index or a negative error code. 2842 * Return: A non-negative wiphy index or a negative error code.
2843 */ 2843 */
2844extern int wiphy_register(struct wiphy *wiphy); 2844int wiphy_register(struct wiphy *wiphy);
2845 2845
2846/** 2846/**
2847 * wiphy_unregister - deregister a wiphy from cfg80211 2847 * wiphy_unregister - deregister a wiphy from cfg80211
@@ -2852,14 +2852,14 @@ extern int wiphy_register(struct wiphy *wiphy);
2852 * pointer, but the call may sleep to wait for an outstanding 2852 * pointer, but the call may sleep to wait for an outstanding
2853 * request that is being handled. 2853 * request that is being handled.
2854 */ 2854 */
2855extern void wiphy_unregister(struct wiphy *wiphy); 2855void wiphy_unregister(struct wiphy *wiphy);
2856 2856
2857/** 2857/**
2858 * wiphy_free - free wiphy 2858 * wiphy_free - free wiphy
2859 * 2859 *
2860 * @wiphy: The wiphy to free 2860 * @wiphy: The wiphy to free
2861 */ 2861 */
2862extern void wiphy_free(struct wiphy *wiphy); 2862void wiphy_free(struct wiphy *wiphy);
2863 2863
2864/* internal structs */ 2864/* internal structs */
2865struct cfg80211_conn; 2865struct cfg80211_conn;
@@ -3014,14 +3014,14 @@ static inline void *wdev_priv(struct wireless_dev *wdev)
3014 * @band: band, necessary due to channel number overlap 3014 * @band: band, necessary due to channel number overlap
3015 * Return: The corresponding frequency (in MHz), or 0 if the conversion failed. 3015 * Return: The corresponding frequency (in MHz), or 0 if the conversion failed.
3016 */ 3016 */
3017extern int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band); 3017int ieee80211_channel_to_frequency(int chan, enum ieee80211_band band);
3018 3018
3019/** 3019/**
3020 * ieee80211_frequency_to_channel - convert frequency to channel number 3020 * ieee80211_frequency_to_channel - convert frequency to channel number
3021 * @freq: center frequency 3021 * @freq: center frequency
3022 * Return: The corresponding channel, or 0 if the conversion failed. 3022 * Return: The corresponding channel, or 0 if the conversion failed.
3023 */ 3023 */
3024extern int ieee80211_frequency_to_channel(int freq); 3024int ieee80211_frequency_to_channel(int freq);
3025 3025
3026/* 3026/*
3027 * Name indirection necessary because the ieee80211 code also has 3027 * Name indirection necessary because the ieee80211 code also has
@@ -3030,8 +3030,8 @@ extern int ieee80211_frequency_to_channel(int freq);
3030 * to include both header files you'll (rightfully!) get a symbol 3030 * to include both header files you'll (rightfully!) get a symbol
3031 * clash. 3031 * clash.
3032 */ 3032 */
3033extern struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy, 3033struct ieee80211_channel *__ieee80211_get_channel(struct wiphy *wiphy,
3034 int freq); 3034 int freq);
3035/** 3035/**
3036 * ieee80211_get_channel - get channel struct from wiphy for specified frequency 3036 * ieee80211_get_channel - get channel struct from wiphy for specified frequency
3037 * @wiphy: the struct wiphy to get the channel for 3037 * @wiphy: the struct wiphy to get the channel for
@@ -3141,13 +3141,14 @@ struct ieee80211_radiotap_iterator {
3141 int _reset_on_ext; 3141 int _reset_on_ext;
3142}; 3142};
3143 3143
3144extern int ieee80211_radiotap_iterator_init( 3144int
3145 struct ieee80211_radiotap_iterator *iterator, 3145ieee80211_radiotap_iterator_init(struct ieee80211_radiotap_iterator *iterator,
3146 struct ieee80211_radiotap_header *radiotap_header, 3146 struct ieee80211_radiotap_header *radiotap_header,
3147 int max_length, const struct ieee80211_radiotap_vendor_namespaces *vns); 3147 int max_length,
3148 const struct ieee80211_radiotap_vendor_namespaces *vns);
3148 3149
3149extern int ieee80211_radiotap_iterator_next( 3150int
3150 struct ieee80211_radiotap_iterator *iterator); 3151ieee80211_radiotap_iterator_next(struct ieee80211_radiotap_iterator *iterator);
3151 3152
3152 3153
3153extern const unsigned char rfc1042_header[6]; 3154extern const unsigned char rfc1042_header[6];
@@ -3307,7 +3308,7 @@ const u8 *cfg80211_find_vendor_ie(unsigned int oui, u8 oui_type,
3307 * 3308 *
3308 * Return: 0 on success. -ENOMEM. 3309 * Return: 0 on success. -ENOMEM.
3309 */ 3310 */
3310extern int regulatory_hint(struct wiphy *wiphy, const char *alpha2); 3311int regulatory_hint(struct wiphy *wiphy, const char *alpha2);
3311 3312
3312/** 3313/**
3313 * wiphy_apply_custom_regulatory - apply a custom driver regulatory domain 3314 * wiphy_apply_custom_regulatory - apply a custom driver regulatory domain
@@ -3321,9 +3322,8 @@ extern int regulatory_hint(struct wiphy *wiphy, const char *alpha2);
3321 * default channel settings will be disregarded. If no rule is found for a 3322 * default channel settings will be disregarded. If no rule is found for a
3322 * channel on the regulatory domain the channel will be disabled. 3323 * channel on the regulatory domain the channel will be disabled.
3323 */ 3324 */
3324extern void wiphy_apply_custom_regulatory( 3325void wiphy_apply_custom_regulatory(struct wiphy *wiphy,
3325 struct wiphy *wiphy, 3326 const struct ieee80211_regdomain *regd);
3326 const struct ieee80211_regdomain *regd);
3327 3327
3328/** 3328/**
3329 * freq_reg_info - get regulatory information for the given frequency 3329 * freq_reg_info - get regulatory information for the given frequency