Lines Matching refs:lr
281 struct regulatory_request *lr = get_last_request(); in reg_free_last_request() local
283 if (lr != &core_request_world && lr) in reg_free_last_request()
284 kfree_rcu(lr, rcu_head); in reg_free_last_request()
289 struct regulatory_request *lr; in reg_update_last_request() local
291 lr = get_last_request(); in reg_update_last_request()
292 if (lr == request) in reg_update_last_request()
334 struct regulatory_request *lr; in update_world_regdomain() local
336 lr = get_last_request(); in update_world_regdomain()
338 WARN_ON(!lr); in update_world_regdomain()
1106 struct regulatory_request *lr = get_last_request(); in reg_is_valid_request() local
1108 if (!lr || lr->processed) in reg_is_valid_request()
1111 return alpha2_equal(lr->alpha2, alpha2); in reg_is_valid_request()
1116 struct regulatory_request *lr = get_last_request(); in reg_get_regdomain() local
1122 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_get_regdomain()
1123 lr->initiator != NL80211_REGDOM_SET_BY_USER && in reg_get_regdomain()
1652 struct regulatory_request *lr = get_last_request(); in handle_channel() local
1655 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in handle_channel()
1675 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
1695 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
1781 struct regulatory_request *lr = get_last_request(); in reg_ignore_cell_hint() local
1786 if (reg_request_cell_base(lr) && in reg_ignore_cell_hint()
1822 struct regulatory_request *lr = get_last_request(); in ignore_reg_update() local
1827 if (!lr) { in ignore_reg_update()
1846 !is_world_regdom(lr->alpha2)) { in ignore_reg_update()
1852 if (reg_request_cell_base(lr)) in ignore_reg_update()
1862 struct regulatory_request *lr = get_last_request(); in reg_is_world_roaming() local
1867 if (lr && lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_is_world_roaming()
2169 struct regulatory_request *lr = get_last_request(); in wiphy_update_regulatory() local
2181 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
2185 lr->dfs_region = get_cfg80211_regdom()->dfs_region; in wiphy_update_regulatory()
2192 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
2308 struct regulatory_request *lr = get_last_request(); in reg_set_request_processed() local
2310 lr->processed = true; in reg_set_request_processed()
2346 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_user() local
2351 if (reg_request_cell_base(lr)) in __reg_process_hint_user()
2354 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_user()
2360 if (lr->initiator == NL80211_REGDOM_SET_BY_USER && in __reg_process_hint_user()
2361 lr->intersect) in __reg_process_hint_user()
2367 if ((lr->initiator == NL80211_REGDOM_SET_BY_CORE || in __reg_process_hint_user()
2368 lr->initiator == NL80211_REGDOM_SET_BY_DRIVER || in __reg_process_hint_user()
2369 lr->initiator == NL80211_REGDOM_SET_BY_USER) && in __reg_process_hint_user()
2370 regdom_changes(lr->alpha2)) in __reg_process_hint_user()
2412 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_driver() local
2414 if (lr->initiator == NL80211_REGDOM_SET_BY_CORE) { in __reg_process_hint_driver()
2425 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in __reg_process_hint_driver()
2495 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_country_ie() local
2497 if (reg_request_cell_base(lr)) { in __reg_process_hint_country_ie()
2510 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_country_ie()
2513 last_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in __reg_process_hint_country_ie()
2735 struct regulatory_request *reg_request, *lr; in reg_process_pending_hints() local
2737 lr = get_last_request(); in reg_process_pending_hints()
2740 if (lr && !lr->processed) { in reg_process_pending_hints()
2741 reg_process_hint(lr); in reg_process_pending_hints()
2763 lr = get_last_request(); in reg_process_pending_hints()
2766 if (!list_empty(®_requests_list) && lr && lr->processed) in reg_process_pending_hints()
2983 struct regulatory_request *request = NULL, *lr; in regulatory_hint_country_ie() local
3005 lr = get_last_request(); in regulatory_hint_country_ie()
3007 if (unlikely(!lr)) in regulatory_hint_country_ie()
3015 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE && in regulatory_hint_country_ie()
3016 lr->wiphy_idx != WIPHY_IDX_INVALID) in regulatory_hint_country_ie()
3328 struct regulatory_request *lr = get_last_request(); in print_regdomain() local
3331 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) { in print_regdomain()
3333 rdev = cfg80211_rdev_by_wiphy_idx(lr->wiphy_idx); in print_regdomain()
3348 if (reg_request_cell_base(lr)) in print_regdomain()
3505 struct regulatory_request *lr; in set_regdom() local
3517 lr = get_last_request(); in set_regdom()
3520 switch (lr->initiator) { in set_regdom()
3525 r = reg_set_rd_user(rd, lr); in set_regdom()
3529 r = reg_set_rd_driver(rd, lr); in set_regdom()
3532 r = reg_set_rd_country_ie(rd, lr); in set_regdom()
3535 WARN(1, "invalid initiator %d\n", lr->initiator); in set_regdom()
3555 if (WARN_ON(!lr->intersect && rd != get_cfg80211_regdom())) in set_regdom()
3559 update_all_wiphy_regulatory(lr->initiator); in set_regdom()
3563 nl80211_send_reg_change_event(lr); in set_regdom()
3636 struct regulatory_request *lr = get_last_request(); in wiphy_regulatory_register() local
3648 if (lr->initiator == NL80211_REGDOM_SET_BY_USER && in wiphy_regulatory_register()
3649 lr->user_reg_hint_type == NL80211_USER_REG_HINT_CELL_BASE) in wiphy_regulatory_register()
3650 reg_call_notifier(wiphy, lr); in wiphy_regulatory_register()
3656 wiphy_update_regulatory(wiphy, lr->initiator); in wiphy_regulatory_register()
3663 struct regulatory_request *lr; in wiphy_regulatory_deregister() local
3665 lr = get_last_request(); in wiphy_regulatory_deregister()
3673 if (lr) in wiphy_regulatory_deregister()
3674 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in wiphy_regulatory_deregister()
3679 lr->wiphy_idx = WIPHY_IDX_INVALID; in wiphy_regulatory_deregister()
3680 lr->country_ie_env = ENVIRON_ANY; in wiphy_regulatory_deregister()