aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-10-15 08:28:56 -0400
committerJohannes Berg <johannes.berg@intel.com>2015-10-16 03:15:45 -0400
commita515de660747eb01f3ef80e75bfc51ac63cfc546 (patch)
tree847b118e1cee28be5f54a25ed0be9da3cee0c9ba /net/wireless
parent81e925747e1c2ef2fa0316c2cd74410c65242a9e (diff)
cfg80211: reg: fix reg_ignore_cell_hint return type
The return type should be enum reg_request_treatment for both branches of the #ifdef. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index b870369fb62e..2e8d6f39ed56 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1353,7 +1353,8 @@ static bool reg_dev_ignore_cell_hint(struct wiphy *wiphy)
1353 return !(wiphy->features & NL80211_FEATURE_CELL_BASE_REG_HINTS); 1353 return !(wiphy->features & NL80211_FEATURE_CELL_BASE_REG_HINTS);
1354} 1354}
1355#else 1355#else
1356static int reg_ignore_cell_hint(struct regulatory_request *pending_request) 1356static enum reg_request_treatment
1357reg_ignore_cell_hint(struct regulatory_request *pending_request)
1357{ 1358{
1358 return REG_REQ_IGNORE; 1359 return REG_REQ_IGNORE;
1359} 1360}