Commit 1daa37c7 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Johannes Berg

cfg80211: remove second argument from reg_process_hint()

The iniator is already available to us, so use it.
Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 222ea581
...@@ -1526,8 +1526,7 @@ __regulatory_hint(struct wiphy *wiphy, ...@@ -1526,8 +1526,7 @@ __regulatory_hint(struct wiphy *wiphy,
} }
/* This processes *all* regulatory hints */ /* This processes *all* regulatory hints */
static void reg_process_hint(struct regulatory_request *reg_request, static void reg_process_hint(struct regulatory_request *reg_request)
enum nl80211_reg_initiator reg_initiator)
{ {
struct wiphy *wiphy = NULL; struct wiphy *wiphy = NULL;
...@@ -1537,7 +1536,7 @@ static void reg_process_hint(struct regulatory_request *reg_request, ...@@ -1537,7 +1536,7 @@ static void reg_process_hint(struct regulatory_request *reg_request,
if (reg_request->wiphy_idx != WIPHY_IDX_INVALID) if (reg_request->wiphy_idx != WIPHY_IDX_INVALID)
wiphy = wiphy_idx_to_wiphy(reg_request->wiphy_idx); wiphy = wiphy_idx_to_wiphy(reg_request->wiphy_idx);
if (reg_initiator == NL80211_REGDOM_SET_BY_DRIVER && !wiphy) { if (reg_request->initiator == NL80211_REGDOM_SET_BY_DRIVER && !wiphy) {
kfree(reg_request); kfree(reg_request);
return; return;
} }
...@@ -1546,10 +1545,10 @@ static void reg_process_hint(struct regulatory_request *reg_request, ...@@ -1546,10 +1545,10 @@ static void reg_process_hint(struct regulatory_request *reg_request,
case REG_REQ_ALREADY_SET: case REG_REQ_ALREADY_SET:
/* This is required so that the orig_* parameters are saved */ /* This is required so that the orig_* parameters are saved */
if (wiphy && wiphy->flags & WIPHY_FLAG_STRICT_REGULATORY) if (wiphy && wiphy->flags & WIPHY_FLAG_STRICT_REGULATORY)
wiphy_update_regulatory(wiphy, reg_initiator); wiphy_update_regulatory(wiphy, reg_request->initiator);
break; break;
default: default:
if (reg_initiator == NL80211_REGDOM_SET_BY_USER) if (reg_request->initiator == NL80211_REGDOM_SET_BY_USER)
schedule_delayed_work(&reg_timeout, schedule_delayed_work(&reg_timeout,
msecs_to_jiffies(3142)); msecs_to_jiffies(3142));
break; break;
...@@ -1587,7 +1586,7 @@ static void reg_process_pending_hints(void) ...@@ -1587,7 +1586,7 @@ static void reg_process_pending_hints(void)
spin_unlock(&reg_requests_lock); spin_unlock(&reg_requests_lock);
reg_process_hint(reg_request, reg_request->initiator); reg_process_hint(reg_request);
} }
/* Processes beacon hints -- this has nothing to do with country IEs */ /* Processes beacon hints -- this has nothing to do with country IEs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment