ath: space cleanup

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Luis R. Rodriguez 2009-03-30 22:30:34 -04:00 committed by John W. Linville
parent 203c4805e9
commit 6b2b2ffbef

View file

@ -173,9 +173,9 @@ static bool ath_is_radar_freq(u16 center_freq)
* received a beacon on a channel we can enable active scan and * received a beacon on a channel we can enable active scan and
* adhoc (or beaconing). * adhoc (or beaconing).
*/ */
static void ath_reg_apply_beaconing_flags( static void
struct wiphy *wiphy, ath_reg_apply_beaconing_flags(struct wiphy *wiphy,
enum nl80211_reg_initiator initiator) enum nl80211_reg_initiator initiator)
{ {
enum ieee80211_band band; enum ieee80211_band band;
struct ieee80211_supported_band *sband; struct ieee80211_supported_band *sband;
@ -232,9 +232,9 @@ static void ath_reg_apply_beaconing_flags(
} }
/* Allows active scan scan on Ch 12 and 13 */ /* Allows active scan scan on Ch 12 and 13 */
static void ath_reg_apply_active_scan_flags( static void
struct wiphy *wiphy, ath_reg_apply_active_scan_flags(struct wiphy *wiphy,
enum nl80211_reg_initiator initiator) enum nl80211_reg_initiator initiator)
{ {
struct ieee80211_supported_band *sband; struct ieee80211_supported_band *sband;
struct ieee80211_channel *ch; struct ieee80211_channel *ch;
@ -316,8 +316,8 @@ static void ath_reg_apply_radar_flags(struct wiphy *wiphy)
} }
static void ath_reg_apply_world_flags(struct wiphy *wiphy, static void ath_reg_apply_world_flags(struct wiphy *wiphy,
enum nl80211_reg_initiator initiator, enum nl80211_reg_initiator initiator,
struct ath_regulatory *reg) struct ath_regulatory *reg)
{ {
switch (reg->regpair->regDmnEnum) { switch (reg->regpair->regDmnEnum) {
case 0x60: case 0x60:
@ -335,7 +335,8 @@ static void ath_reg_apply_world_flags(struct wiphy *wiphy,
} }
int ath_reg_notifier_apply(struct wiphy *wiphy, int ath_reg_notifier_apply(struct wiphy *wiphy,
struct regulatory_request *request, struct ath_regulatory *reg) struct regulatory_request *request,
struct ath_regulatory *reg)
{ {
/* We always apply this */ /* We always apply this */
ath_reg_apply_radar_flags(wiphy); ath_reg_apply_radar_flags(wiphy);
@ -433,8 +434,10 @@ ath_get_regpair(int regdmn)
return NULL; return NULL;
} }
static int ath_regd_init_wiphy(struct ath_regulatory *reg, struct wiphy *wiphy, static int
int (*reg_notifier)(struct wiphy *wiphy, ath_regd_init_wiphy(struct ath_regulatory *reg,
struct wiphy *wiphy,
int (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request)) struct regulatory_request *request))
{ {
const struct ieee80211_regdomain *regd; const struct ieee80211_regdomain *regd;
@ -464,9 +467,11 @@ static int ath_regd_init_wiphy(struct ath_regulatory *reg, struct wiphy *wiphy,
return 0; return 0;
} }
int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy, int
int (*reg_notifier)(struct wiphy *wiphy, ath_regd_init(struct ath_regulatory *reg,
struct regulatory_request *request)) struct wiphy *wiphy,
int (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request))
{ {
struct country_code_to_enum_rd *country = NULL; struct country_code_to_enum_rd *country = NULL;
u16 regdmn; u16 regdmn;