Skip to content

Commit a515de6

Browse files
committed
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>
1 parent 81e9257 commit a515de6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

net/wireless/reg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,8 @@ static bool reg_dev_ignore_cell_hint(struct wiphy *wiphy)
13531353
return !(wiphy->features & NL80211_FEATURE_CELL_BASE_REG_HINTS);
13541354
}
13551355
#else
1356-
static int reg_ignore_cell_hint(struct regulatory_request *pending_request)
1356+
static enum reg_request_treatment
1357+
reg_ignore_cell_hint(struct regulatory_request *pending_request)
13571358
{
13581359
return REG_REQ_IGNORE;
13591360
}

0 commit comments

Comments
 (0)