Lines Matching refs:lr

288 	struct regulatory_request *lr = get_last_request();  in reg_free_last_request()  local
290 if (lr != &core_request_world && lr) in reg_free_last_request()
291 kfree_rcu(lr, rcu_head); in reg_free_last_request()
296 struct regulatory_request *lr; in reg_update_last_request() local
298 lr = get_last_request(); in reg_update_last_request()
299 if (lr == request) in reg_update_last_request()
341 struct regulatory_request *lr; in update_world_regdomain() local
343 lr = get_last_request(); in update_world_regdomain()
345 WARN_ON(!lr); in update_world_regdomain()
573 struct regulatory_request *lr = get_last_request(); in reg_is_valid_request() local
575 if (!lr || lr->processed) in reg_is_valid_request()
578 return alpha2_equal(lr->alpha2, alpha2); in reg_is_valid_request()
583 struct regulatory_request *lr = get_last_request(); in reg_get_regdomain() local
589 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_get_regdomain()
590 lr->initiator != NL80211_REGDOM_SET_BY_USER && in reg_get_regdomain()
1129 struct regulatory_request *lr = get_last_request(); in handle_channel() local
1133 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in handle_channel()
1153 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
1186 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
1272 struct regulatory_request *lr = get_last_request(); in reg_ignore_cell_hint() local
1277 if (reg_request_cell_base(lr) && in reg_ignore_cell_hint()
1312 struct regulatory_request *lr = get_last_request(); in ignore_reg_update() local
1317 if (!lr) { in ignore_reg_update()
1339 !is_world_regdom(lr->alpha2)) { in ignore_reg_update()
1347 if (reg_request_cell_base(lr)) in ignore_reg_update()
1357 struct regulatory_request *lr = get_last_request(); in reg_is_world_roaming() local
1362 if (lr && lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_is_world_roaming()
1650 struct regulatory_request *lr = get_last_request(); in wiphy_update_regulatory() local
1660 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
1664 lr->dfs_region = get_cfg80211_regdom()->dfs_region; in wiphy_update_regulatory()
1671 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
1798 struct regulatory_request *lr = get_last_request(); in reg_set_request_processed() local
1800 lr->processed = true; in reg_set_request_processed()
1837 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_user() local
1842 if (reg_request_cell_base(lr)) in __reg_process_hint_user()
1845 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_user()
1851 if (lr->initiator == NL80211_REGDOM_SET_BY_USER && in __reg_process_hint_user()
1852 lr->intersect) in __reg_process_hint_user()
1858 if ((lr->initiator == NL80211_REGDOM_SET_BY_CORE || in __reg_process_hint_user()
1859 lr->initiator == NL80211_REGDOM_SET_BY_DRIVER || in __reg_process_hint_user()
1860 lr->initiator == NL80211_REGDOM_SET_BY_USER) && in __reg_process_hint_user()
1861 regdom_changes(lr->alpha2)) in __reg_process_hint_user()
1905 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_driver() local
1907 if (lr->initiator == NL80211_REGDOM_SET_BY_CORE) { in __reg_process_hint_driver()
1918 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in __reg_process_hint_driver()
1988 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_country_ie() local
1990 if (reg_request_cell_base(lr)) { in __reg_process_hint_country_ie()
2003 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_country_ie()
2006 last_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in __reg_process_hint_country_ie()
2142 struct regulatory_request *reg_request, *lr; in reg_process_pending_hints() local
2144 lr = get_last_request(); in reg_process_pending_hints()
2147 if (lr && !lr->processed) { in reg_process_pending_hints()
2148 reg_process_hint(lr); in reg_process_pending_hints()
2173 lr = get_last_request(); in reg_process_pending_hints()
2176 if (!list_empty(&reg_requests_list) && lr && lr->processed) in reg_process_pending_hints()
2392 struct regulatory_request *request = NULL, *lr; in regulatory_hint_country_ie() local
2414 lr = get_last_request(); in regulatory_hint_country_ie()
2416 if (unlikely(!lr)) in regulatory_hint_country_ie()
2424 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE && in regulatory_hint_country_ie()
2425 lr->wiphy_idx != WIPHY_IDX_INVALID) in regulatory_hint_country_ie()
2738 struct regulatory_request *lr = get_last_request(); in print_regdomain() local
2741 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) { in print_regdomain()
2743 rdev = cfg80211_rdev_by_wiphy_idx(lr->wiphy_idx); in print_regdomain()
2758 if (reg_request_cell_base(lr)) in print_regdomain()
2918 struct regulatory_request *lr; in set_regdom() local
2930 lr = get_last_request(); in set_regdom()
2933 switch (lr->initiator) { in set_regdom()
2938 r = reg_set_rd_user(rd, lr); in set_regdom()
2942 r = reg_set_rd_driver(rd, lr); in set_regdom()
2945 r = reg_set_rd_country_ie(rd, lr); in set_regdom()
2948 WARN(1, "invalid initiator %d\n", lr->initiator); in set_regdom()
2967 if (WARN_ON(!lr->intersect && rd != get_cfg80211_regdom())) in set_regdom()
2971 update_all_wiphy_regulatory(lr->initiator); in set_regdom()
2975 nl80211_send_reg_change_event(lr); in set_regdom()
3048 struct regulatory_request *lr; in wiphy_regulatory_register() local
3058 lr = get_last_request(); in wiphy_regulatory_register()
3059 wiphy_update_regulatory(wiphy, lr->initiator); in wiphy_regulatory_register()
3065 struct regulatory_request *lr; in wiphy_regulatory_deregister() local
3067 lr = get_last_request(); in wiphy_regulatory_deregister()
3075 if (lr) in wiphy_regulatory_deregister()
3076 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in wiphy_regulatory_deregister()
3081 lr->wiphy_idx = WIPHY_IDX_INVALID; in wiphy_regulatory_deregister()
3082 lr->country_ie_env = ENVIRON_ANY; in wiphy_regulatory_deregister()