diff options
author | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2013-11-05 12:18:02 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-11-25 14:49:46 -0500 |
commit | 1daa37c7ba01bd788148d6a9dc5d6fb491a20931 (patch) | |
tree | 0f14434859f06496249f6ed8972ff515849a628e /net/wireless | |
parent | 222ea5819901ed174db4df2e26aa5e982f857845 (diff) |
cfg80211: remove second argument from reg_process_hint()
The iniator is already available to us, so use it.
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/reg.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 04b6fe4b7653..dccdfe36a310 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1526,8 +1526,7 @@ new_request: | |||
1526 | } | 1526 | } |
1527 | 1527 | ||
1528 | /* This processes *all* regulatory hints */ | 1528 | /* This processes *all* regulatory hints */ |
1529 | static void reg_process_hint(struct regulatory_request *reg_request, | 1529 | static void reg_process_hint(struct regulatory_request *reg_request) |
1530 | enum nl80211_reg_initiator reg_initiator) | ||
1531 | { | 1530 | { |
1532 | struct wiphy *wiphy = NULL; | 1531 | struct wiphy *wiphy = NULL; |
1533 | 1532 | ||
@@ -1537,7 +1536,7 @@ static void reg_process_hint(struct regulatory_request *reg_request, | |||
1537 | if (reg_request->wiphy_idx != WIPHY_IDX_INVALID) | 1536 | if (reg_request->wiphy_idx != WIPHY_IDX_INVALID) |
1538 | wiphy = wiphy_idx_to_wiphy(reg_request->wiphy_idx); | 1537 | wiphy = wiphy_idx_to_wiphy(reg_request->wiphy_idx); |
1539 | 1538 | ||
1540 | if (reg_initiator == NL80211_REGDOM_SET_BY_DRIVER && !wiphy) { | 1539 | if (reg_request->initiator == NL80211_REGDOM_SET_BY_DRIVER && !wiphy) { |
1541 | kfree(reg_request); | 1540 | kfree(reg_request); |
1542 | return; | 1541 | return; |
1543 | } | 1542 | } |
@@ -1546,10 +1545,10 @@ static void reg_process_hint(struct regulatory_request *reg_request, | |||
1546 | case REG_REQ_ALREADY_SET: | 1545 | case REG_REQ_ALREADY_SET: |
1547 | /* This is required so that the orig_* parameters are saved */ | 1546 | /* This is required so that the orig_* parameters are saved */ |
1548 | if (wiphy && wiphy->flags & WIPHY_FLAG_STRICT_REGULATORY) | 1547 | if (wiphy && wiphy->flags & WIPHY_FLAG_STRICT_REGULATORY) |
1549 | wiphy_update_regulatory(wiphy, reg_initiator); | 1548 | wiphy_update_regulatory(wiphy, reg_request->initiator); |
1550 | break; | 1549 | break; |
1551 | default: | 1550 | default: |
1552 | if (reg_initiator == NL80211_REGDOM_SET_BY_USER) | 1551 | if (reg_request->initiator == NL80211_REGDOM_SET_BY_USER) |
1553 | schedule_delayed_work(®_timeout, | 1552 | schedule_delayed_work(®_timeout, |
1554 | msecs_to_jiffies(3142)); | 1553 | msecs_to_jiffies(3142)); |
1555 | break; | 1554 | break; |
@@ -1587,7 +1586,7 @@ static void reg_process_pending_hints(void) | |||
1587 | 1586 | ||
1588 | spin_unlock(®_requests_lock); | 1587 | spin_unlock(®_requests_lock); |
1589 | 1588 | ||
1590 | reg_process_hint(reg_request, reg_request->initiator); | 1589 | reg_process_hint(reg_request); |
1591 | } | 1590 | } |
1592 | 1591 | ||
1593 | /* Processes beacon hints -- this has nothing to do with country IEs */ | 1592 | /* Processes beacon hints -- this has nothing to do with country IEs */ |