Lines Matching refs:lr
303 struct regulatory_request *lr = get_last_request(); in reg_free_last_request() local
305 if (lr != &core_request_world && lr) in reg_free_last_request()
306 kfree_rcu(lr, rcu_head); in reg_free_last_request()
311 struct regulatory_request *lr; in reg_update_last_request() local
313 lr = get_last_request(); in reg_update_last_request()
314 if (lr == request) in reg_update_last_request()
356 struct regulatory_request *lr; in update_world_regdomain() local
358 lr = get_last_request(); in update_world_regdomain()
360 WARN_ON(!lr); in update_world_regdomain()
1162 struct regulatory_request *lr = get_last_request(); in reg_is_valid_request() local
1164 if (!lr || lr->processed) in reg_is_valid_request()
1167 return alpha2_equal(lr->alpha2, alpha2); in reg_is_valid_request()
1172 struct regulatory_request *lr = get_last_request(); in reg_get_regdomain() local
1178 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_get_regdomain()
1179 lr->initiator != NL80211_REGDOM_SET_BY_USER && in reg_get_regdomain()
1784 struct regulatory_request *lr, in handle_channel_single_rule() argument
1797 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel_single_rule()
1857 struct regulatory_request *lr, in handle_channel_adjacent_rules() argument
1876 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel_adjacent_rules()
1972 struct regulatory_request *lr = get_last_request(); in handle_channel() local
1973 struct wiphy *request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in handle_channel()
2012 flags, lr, request_wiphy, in handle_channel()
2032 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
2047 handle_channel_single_rule(wiphy, initiator, chan, flags, lr, in handle_channel()
2081 struct regulatory_request *lr = get_last_request(); in reg_ignore_cell_hint() local
2086 if (reg_request_cell_base(lr) && in reg_ignore_cell_hint()
2122 struct regulatory_request *lr = get_last_request(); in ignore_reg_update() local
2127 if (!lr) { in ignore_reg_update()
2146 !is_world_regdom(lr->alpha2)) { in ignore_reg_update()
2152 if (reg_request_cell_base(lr)) in ignore_reg_update()
2162 struct regulatory_request *lr = get_last_request(); in reg_is_world_roaming() local
2167 if (lr && lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_is_world_roaming()
2474 struct regulatory_request *lr = get_last_request(); in wiphy_update_regulatory() local
2486 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
2490 lr->dfs_region = get_cfg80211_regdom()->dfs_region; in wiphy_update_regulatory()
2497 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
2634 struct regulatory_request *lr = get_last_request(); in reg_set_request_processed() local
2636 lr->processed = true; in reg_set_request_processed()
2672 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_user() local
2677 if (reg_request_cell_base(lr)) in __reg_process_hint_user()
2680 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_user()
2686 if (lr->initiator == NL80211_REGDOM_SET_BY_USER && in __reg_process_hint_user()
2687 lr->intersect) in __reg_process_hint_user()
2693 if ((lr->initiator == NL80211_REGDOM_SET_BY_CORE || in __reg_process_hint_user()
2694 lr->initiator == NL80211_REGDOM_SET_BY_DRIVER || in __reg_process_hint_user()
2695 lr->initiator == NL80211_REGDOM_SET_BY_USER) && in __reg_process_hint_user()
2696 regdom_changes(lr->alpha2)) in __reg_process_hint_user()
2738 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_driver() local
2740 if (lr->initiator == NL80211_REGDOM_SET_BY_CORE) { in __reg_process_hint_driver()
2751 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in __reg_process_hint_driver()
2825 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_country_ie() local
2827 if (reg_request_cell_base(lr)) { in __reg_process_hint_country_ie()
2840 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_country_ie()
2843 last_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in __reg_process_hint_country_ie()
3064 struct regulatory_request *reg_request, *lr; in reg_process_pending_hints() local
3066 lr = get_last_request(); in reg_process_pending_hints()
3069 if (lr && !lr->processed) { in reg_process_pending_hints()
3092 lr = get_last_request(); in reg_process_pending_hints()
3095 if (!list_empty(®_requests_list) && lr && lr->processed) in reg_process_pending_hints()
3326 struct regulatory_request *request = NULL, *lr; in regulatory_hint_country_ie() local
3348 lr = get_last_request(); in regulatory_hint_country_ie()
3350 if (unlikely(!lr)) in regulatory_hint_country_ie()
3358 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE && in regulatory_hint_country_ie()
3359 lr->wiphy_idx != WIPHY_IDX_INVALID) in regulatory_hint_country_ie()
3744 struct regulatory_request *lr = get_last_request(); in print_regdomain() local
3747 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) { in print_regdomain()
3749 rdev = cfg80211_rdev_by_wiphy_idx(lr->wiphy_idx); in print_regdomain()
3764 if (reg_request_cell_base(lr)) in print_regdomain()
3928 struct regulatory_request *lr; in set_regdom() local
3943 lr = get_last_request(); in set_regdom()
3946 switch (lr->initiator) { in set_regdom()
3952 r = reg_set_rd_user(rd, lr); in set_regdom()
3956 r = reg_set_rd_driver(rd, lr); in set_regdom()
3959 r = reg_set_rd_country_ie(rd, lr); in set_regdom()
3962 WARN(1, "invalid initiator %d\n", lr->initiator); in set_regdom()
3982 if (WARN_ON(!lr->intersect && rd != get_cfg80211_regdom())) in set_regdom()
3986 update_all_wiphy_regulatory(lr->initiator); in set_regdom()
3990 nl80211_send_reg_change_event(lr); in set_regdom()
4066 struct regulatory_request *lr = get_last_request(); in wiphy_regulatory_register() local
4078 if (lr->initiator == NL80211_REGDOM_SET_BY_USER) in wiphy_regulatory_register()
4079 reg_call_notifier(wiphy, lr); in wiphy_regulatory_register()
4085 wiphy_update_regulatory(wiphy, lr->initiator); in wiphy_regulatory_register()
4093 struct regulatory_request *lr; in wiphy_regulatory_deregister() local
4095 lr = get_last_request(); in wiphy_regulatory_deregister()
4103 if (lr) in wiphy_regulatory_deregister()
4104 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in wiphy_regulatory_deregister()
4109 lr->wiphy_idx = WIPHY_IDX_INVALID; in wiphy_regulatory_deregister()
4110 lr->country_ie_env = ENVIRON_ANY; in wiphy_regulatory_deregister()