Lines Matching refs:lr

285 	struct regulatory_request *lr = get_last_request();  in reg_free_last_request()  local
287 if (lr != &core_request_world && lr) in reg_free_last_request()
288 kfree_rcu(lr, rcu_head); in reg_free_last_request()
293 struct regulatory_request *lr; in reg_update_last_request() local
295 lr = get_last_request(); in reg_update_last_request()
296 if (lr == request) in reg_update_last_request()
338 struct regulatory_request *lr; in update_world_regdomain() local
340 lr = get_last_request(); in update_world_regdomain()
342 WARN_ON(!lr); in update_world_regdomain()
622 struct regulatory_request *lr = get_last_request(); in reg_is_valid_request() local
624 if (!lr || lr->processed) in reg_is_valid_request()
627 return alpha2_equal(lr->alpha2, alpha2); in reg_is_valid_request()
632 struct regulatory_request *lr = get_last_request(); in reg_get_regdomain() local
638 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_get_regdomain()
639 lr->initiator != NL80211_REGDOM_SET_BY_USER && in reg_get_regdomain()
1183 struct regulatory_request *lr = get_last_request(); in handle_channel() local
1187 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in handle_channel()
1207 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
1252 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in handle_channel()
1338 struct regulatory_request *lr = get_last_request(); in reg_ignore_cell_hint() local
1343 if (reg_request_cell_base(lr) && in reg_ignore_cell_hint()
1379 struct regulatory_request *lr = get_last_request(); in ignore_reg_update() local
1384 if (!lr) { in ignore_reg_update()
1406 !is_world_regdom(lr->alpha2)) { in ignore_reg_update()
1414 if (reg_request_cell_base(lr)) in ignore_reg_update()
1424 struct regulatory_request *lr = get_last_request(); in reg_is_world_roaming() local
1429 if (lr && lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && in reg_is_world_roaming()
1717 struct regulatory_request *lr = get_last_request(); in wiphy_update_regulatory() local
1727 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
1731 lr->dfs_region = get_cfg80211_regdom()->dfs_region; in wiphy_update_regulatory()
1738 reg_call_notifier(wiphy, lr); in wiphy_update_regulatory()
1883 struct regulatory_request *lr = get_last_request(); in reg_set_request_processed() local
1885 lr->processed = true; in reg_set_request_processed()
1921 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_user() local
1926 if (reg_request_cell_base(lr)) in __reg_process_hint_user()
1929 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_user()
1935 if (lr->initiator == NL80211_REGDOM_SET_BY_USER && in __reg_process_hint_user()
1936 lr->intersect) in __reg_process_hint_user()
1942 if ((lr->initiator == NL80211_REGDOM_SET_BY_CORE || in __reg_process_hint_user()
1943 lr->initiator == NL80211_REGDOM_SET_BY_DRIVER || in __reg_process_hint_user()
1944 lr->initiator == NL80211_REGDOM_SET_BY_USER) && in __reg_process_hint_user()
1945 regdom_changes(lr->alpha2)) in __reg_process_hint_user()
1987 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_driver() local
1989 if (lr->initiator == NL80211_REGDOM_SET_BY_CORE) { in __reg_process_hint_driver()
2000 if (lr->initiator == NL80211_REGDOM_SET_BY_DRIVER && in __reg_process_hint_driver()
2070 struct regulatory_request *lr = get_last_request(); in __reg_process_hint_country_ie() local
2072 if (reg_request_cell_base(lr)) { in __reg_process_hint_country_ie()
2085 if (lr->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE) in __reg_process_hint_country_ie()
2088 last_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in __reg_process_hint_country_ie()
2231 struct regulatory_request *reg_request, *lr; in reg_process_pending_hints() local
2233 lr = get_last_request(); in reg_process_pending_hints()
2236 if (lr && !lr->processed) { in reg_process_pending_hints()
2237 reg_process_hint(lr); in reg_process_pending_hints()
2262 lr = get_last_request(); in reg_process_pending_hints()
2265 if (!list_empty(&reg_requests_list) && lr && lr->processed) in reg_process_pending_hints()
2481 struct regulatory_request *request = NULL, *lr; in regulatory_hint_country_ie() local
2503 lr = get_last_request(); in regulatory_hint_country_ie()
2505 if (unlikely(!lr)) in regulatory_hint_country_ie()
2513 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE && in regulatory_hint_country_ie()
2514 lr->wiphy_idx != WIPHY_IDX_INVALID) in regulatory_hint_country_ie()
2827 struct regulatory_request *lr = get_last_request(); in print_regdomain() local
2830 if (lr->initiator == NL80211_REGDOM_SET_BY_COUNTRY_IE) { in print_regdomain()
2832 rdev = cfg80211_rdev_by_wiphy_idx(lr->wiphy_idx); in print_regdomain()
2847 if (reg_request_cell_base(lr)) in print_regdomain()
3001 struct regulatory_request *lr; in set_regdom() local
3013 lr = get_last_request(); in set_regdom()
3016 switch (lr->initiator) { in set_regdom()
3021 r = reg_set_rd_user(rd, lr); in set_regdom()
3025 r = reg_set_rd_driver(rd, lr); in set_regdom()
3028 r = reg_set_rd_country_ie(rd, lr); in set_regdom()
3031 WARN(1, "invalid initiator %d\n", lr->initiator); in set_regdom()
3051 if (WARN_ON(!lr->intersect && rd != get_cfg80211_regdom())) in set_regdom()
3055 update_all_wiphy_regulatory(lr->initiator); in set_regdom()
3059 nl80211_send_reg_change_event(lr); in set_regdom()
3132 struct regulatory_request *lr; in wiphy_regulatory_register() local
3142 lr = get_last_request(); in wiphy_regulatory_register()
3143 wiphy_update_regulatory(wiphy, lr->initiator); in wiphy_regulatory_register()
3149 struct regulatory_request *lr; in wiphy_regulatory_deregister() local
3151 lr = get_last_request(); in wiphy_regulatory_deregister()
3159 if (lr) in wiphy_regulatory_deregister()
3160 request_wiphy = wiphy_idx_to_wiphy(lr->wiphy_idx); in wiphy_regulatory_deregister()
3165 lr->wiphy_idx = WIPHY_IDX_INVALID; in wiphy_regulatory_deregister()
3166 lr->country_ie_env = ENVIRON_ANY; in wiphy_regulatory_deregister()