Lines Matching refs:lr
283 struct regulatory_request *lr = get_last_request(); in reg_free_last_request() local
285 if (lr != &core_request_world && lr) in reg_free_last_request()
286 kfree_rcu(lr, rcu_head); in reg_free_last_request()
291 struct regulatory_request *lr; in reg_update_last_request() local
293 lr = get_last_request(); in reg_update_last_request()
294 if (lr == request) in reg_update_last_request()
336 struct regulatory_request *lr; in update_world_regdomain() local
338 lr = get_last_request(); in update_world_regdomain()
340 WARN_ON(!lr); in update_world_regdomain()
1122 struct regulatory_request *lr = get_last_request(); in reg_is_valid_request() local
1124 if (!lr || lr->processed) in reg_is_valid_request()
1127 return alpha2_equal(lr->alpha2, alpha2); in reg_is_valid_request()
1132 struct regulatory_request *lr = get_last_request(); in reg_get_regdomain() local
1138 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_get_regdomain()
1139 lr->initiator != NL80211_REGDOM_SET_BY_USER && in reg_get_regdomain()
1704 struct regulatory_request *lr = get_last_request(); in handle_channel() local
1707 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in handle_channel()
1727 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
1747 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
1833 struct regulatory_request *lr = get_last_request(); in reg_ignore_cell_hint() local
1838 if (reg_request_cell_base(lr) && in reg_ignore_cell_hint()
1874 struct regulatory_request *lr = get_last_request(); in ignore_reg_update() local
1879 if (!lr) { in ignore_reg_update()
1898 !is_world_regdom(lr->alpha2)) { in ignore_reg_update()
1904 if (reg_request_cell_base(lr)) in ignore_reg_update()
1914 struct regulatory_request *lr = get_last_request(); in reg_is_world_roaming() local
1919 if (lr && lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_is_world_roaming()
2221 struct regulatory_request *lr = get_last_request(); in wiphy_update_regulatory() local
2233 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
2237 lr->dfs_region = get_cfg80211_regdom()->dfs_region; in wiphy_update_regulatory()
2244 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
2360 struct regulatory_request *lr = get_last_request(); in reg_set_request_processed() local
2362 lr->processed = true; in reg_set_request_processed()
2398 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_user() local
2403 if (reg_request_cell_base(lr)) in __reg_process_hint_user()
2406 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_user()
2412 if (lr->initiator == NL80211_REGDOM_SET_BY_USER && in __reg_process_hint_user()
2413 lr->intersect) in __reg_process_hint_user()
2419 if ((lr->initiator == NL80211_REGDOM_SET_BY_CORE || in __reg_process_hint_user()
2420 lr->initiator == NL80211_REGDOM_SET_BY_DRIVER || in __reg_process_hint_user()
2421 lr->initiator == NL80211_REGDOM_SET_BY_USER) && in __reg_process_hint_user()
2422 regdom_changes(lr->alpha2)) in __reg_process_hint_user()
2464 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_driver() local
2466 if (lr->initiator == NL80211_REGDOM_SET_BY_CORE) { in __reg_process_hint_driver()
2477 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in __reg_process_hint_driver()
2547 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_country_ie() local
2549 if (reg_request_cell_base(lr)) { in __reg_process_hint_country_ie()
2562 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_country_ie()
2565 last_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in __reg_process_hint_country_ie()
2785 struct regulatory_request *reg_request, *lr; in reg_process_pending_hints() local
2787 lr = get_last_request(); in reg_process_pending_hints()
2790 if (lr && !lr->processed) { in reg_process_pending_hints()
2813 lr = get_last_request(); in reg_process_pending_hints()
2816 if (!list_empty(®_requests_list) && lr && lr->processed) in reg_process_pending_hints()
3033 struct regulatory_request *request = NULL, *lr; in regulatory_hint_country_ie() local
3055 lr = get_last_request(); in regulatory_hint_country_ie()
3057 if (unlikely(!lr)) in regulatory_hint_country_ie()
3065 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE && in regulatory_hint_country_ie()
3066 lr->wiphy_idx != WIPHY_IDX_INVALID) in regulatory_hint_country_ie()
3450 struct regulatory_request *lr = get_last_request(); in print_regdomain() local
3453 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) { in print_regdomain()
3455 rdev = cfg80211_rdev_by_wiphy_idx(lr->wiphy_idx); in print_regdomain()
3470 if (reg_request_cell_base(lr)) in print_regdomain()
3627 struct regulatory_request *lr; in set_regdom() local
3642 lr = get_last_request(); in set_regdom()
3645 switch (lr->initiator) { in set_regdom()
3651 r = reg_set_rd_user(rd, lr); in set_regdom()
3655 r = reg_set_rd_driver(rd, lr); in set_regdom()
3658 r = reg_set_rd_country_ie(rd, lr); in set_regdom()
3661 WARN(1, "invalid initiator %d\n", lr->initiator); in set_regdom()
3681 if (WARN_ON(!lr->intersect && rd != get_cfg80211_regdom())) in set_regdom()
3685 update_all_wiphy_regulatory(lr->initiator); in set_regdom()
3689 nl80211_send_reg_change_event(lr); in set_regdom()
3762 struct regulatory_request *lr = get_last_request(); in wiphy_regulatory_register() local
3774 if (lr->initiator == NL80211_REGDOM_SET_BY_USER) in wiphy_regulatory_register()
3775 reg_call_notifier(wiphy, lr); in wiphy_regulatory_register()
3781 wiphy_update_regulatory(wiphy, lr->initiator); in wiphy_regulatory_register()
3788 struct regulatory_request *lr; in wiphy_regulatory_deregister() local
3790 lr = get_last_request(); in wiphy_regulatory_deregister()
3798 if (lr) in wiphy_regulatory_deregister()
3799 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in wiphy_regulatory_deregister()
3804 lr->wiphy_idx = WIPHY_IDX_INVALID; in wiphy_regulatory_deregister()
3805 lr->country_ie_env = ENVIRON_ANY; in wiphy_regulatory_deregister()