/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | mesh_rsn.c | 149 struct mesh_rsn *rsn = ctx; in auth_for_each_sta() local 153 hapd = rsn->wpa_s->ifmsh->bss[0]; in auth_for_each_sta() 162 static int __mesh_rsn_auth_init(struct mesh_rsn *rsn, const u8 *addr, in __mesh_rsn_auth_init() argument 180 conf.wpa_pairwise = rsn->pairwise_cipher; in __mesh_rsn_auth_init() 181 conf.rsn_pairwise = rsn->pairwise_cipher; in __mesh_rsn_auth_init() 182 conf.wpa_group = rsn->group_cipher; in __mesh_rsn_auth_init() 189 conf.group_mgmt_cipher = rsn->mgmt_group_cipher; in __mesh_rsn_auth_init() 194 rsn->auth = wpa_init(addr, &conf, &cb, rsn); in __mesh_rsn_auth_init() 195 if (rsn->auth == NULL) { in __mesh_rsn_auth_init() 201 rsn->mgtk_len = wpa_cipher_key_len(conf.wpa_group); in __mesh_rsn_auth_init() [all …]
|
H A D | mesh_rsn.h | 34 void mesh_rsn_get_pmkid(struct mesh_rsn *rsn, struct sta_info *sta, u8 *pmkid); 37 int mesh_rsn_protect_frame(struct mesh_rsn *rsn, struct sta_info *sta,
|
H A D | sme.c | 643 const u8 *rsn; in sme_send_authentication() local 646 rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in sme_send_authentication() 647 if (!rsn) { in sme_send_authentication() 651 } else if (wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ied) == 0 && in sme_send_authentication() 656 } else if (wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ied) == 0 && in sme_send_authentication() 839 const u8 *rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in sme_send_authentication() local 841 if (rsn && wpa_parse_wpa_ie(rsn, 2 + rsn[1], &_ie) == 0 && in sme_send_authentication()
|
H A D | dpp_supplicant.c | 4497 const u8 *rsn; in wpas_dpp_check_connect() local 4503 rsn = wpa_bss_get_ie(bss, WLAN_EID_RSN); in wpas_dpp_check_connect() 4504 if (rsn && wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ied) == 0 && in wpas_dpp_check_connect()
|
/freebsd/sys/net80211/ |
H A D | ieee80211_hostap.c | 1248 struct ieee80211_rsnparms *rsn, const struct ieee80211_frame *wh) in ieee80211_parse_wpa() argument 1282 memset(rsn, 0, sizeof(*rsn)); in ieee80211_parse_wpa() 1285 error = wpa_cipher(frm, &rsn->rsn_mcastkeylen, &rsn->rsn_mcastcipher); in ieee80211_parse_wpa() 1309 error = wpa_cipher(frm, &rsn->rsn_ucastkeylen, &cipher); in ieee80211_parse_wpa() 1324 rsn->rsn_ucastcipher = IEEE80211_CIPHER_AES_CCM; in ieee80211_parse_wpa() 1326 rsn->rsn_ucastcipher = IEEE80211_CIPHER_TKIP; in ieee80211_parse_wpa() 1344 rsn->rsn_keymgmt = WPA_ASE_8021X_UNSPEC; in ieee80211_parse_wpa() 1346 rsn->rsn_keymgmt = WPA_ASE_8021X_PSK; in ieee80211_parse_wpa() 1349 rsn->rsn_caps = le16dec(frm); in ieee80211_parse_wpa() 1428 struct ieee80211_rsnparms *rsn, const struct ieee80211_frame *wh) in ieee80211_parse_rsn() argument [all …]
|
H A D | ieee80211_scan.h | 247 uint8_t *rsn; member
|
H A D | ieee80211_input.c | 634 scan->rsn = frm; in ieee80211_parse_beacon()
|
/freebsd/contrib/wpa/src/rsn_supp/ |
H A D | preauth.h | 22 const u8 *ssid, const u8 *rsn); 56 const u8 *ssid, const u8 *rsn) in rsn_preauth_scan_result() argument
|
H A D | preauth.c | 481 const u8 *ssid, const u8 *rsn) in rsn_preauth_scan_result() argument 493 if (wpa_parse_wpa_ie(rsn, 2 + rsn[1], &ie)) in rsn_preauth_scan_result()
|
H A D | wpa.c | 2061 struct wpa_ie_data rsn; in ft_validate_rsnie() local 2070 if (wpa_parse_wpa_ie_rsn(ie->rsn_ie, ie->rsn_ie_len, &rsn) < 0 || in ft_validate_rsnie() 2071 rsn.num_pmkid != 1 || rsn.pmkid == NULL) { in ft_validate_rsnie() 2077 if (os_memcmp_const(rsn.pmkid, sm->pmk_r1_name, WPA_PMK_NAME_LEN) != 0) in ft_validate_rsnie() 2083 rsn.pmkid, WPA_PMK_NAME_LEN); in ft_validate_rsnie() 4787 struct wpa_ie_data rsn; in wpa_sm_get_status() local 4788 if (wpa_parse_wpa_ie_rsn(sm->ap_rsn_ie, sm->ap_rsn_ie_len, &rsn) in wpa_sm_get_status() 4790 rsn.capabilities & (WPA_CAPABILITY_MFPR | in wpa_sm_get_status() 4794 (rsn.capabilities & in wpa_sm_get_status() 4810 struct wpa_ie_data rsn; in wpa_sm_pmf_enabled() local [all …]
|
H A D | wpa_ft.c | 1157 parse.rsn - 2, parse.rsn_len + 2, in wpa_ft_validate_reassoc_resp() 1196 parse.rsn - 2, parse.rsn_len + 2)) { in wpa_ft_validate_reassoc_resp() 1203 parse.rsn ? parse.rsn - 2 : NULL, in wpa_ft_validate_reassoc_resp() 1204 parse.rsn ? parse.rsn_len + 2 : 0); in wpa_ft_validate_reassoc_resp()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_eq.c | 237 u32 rsn; in mlx5_eq_int() local 266 rsn = be32_to_cpu(eqe->data.qp_srq.qp_srq_n) & 0xffffff; in mlx5_eq_int() 268 eqe_type_str(eqe->type), eqe->type, rsn); in mlx5_eq_int() 269 mlx5_rsc_event(dev, rsn, eqe->type); in mlx5_eq_int() 274 rsn = be32_to_cpu(eqe->data.qp_srq.qp_srq_n) & 0xffffff; in mlx5_eq_int() 276 eqe_type_str(eqe->type), eqe->type, rsn); in mlx5_eq_int() 277 mlx5_srq_event(dev, rsn, eqe->type); in mlx5_eq_int()
|
H A D | mlx5_qp.c | 36 u32 rsn) in mlx5_get_rsc() argument 43 common = radix_tree_lookup(&table->tree, rsn); in mlx5_get_rsc() 51 rsn); in mlx5_get_rsc() 63 void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type) in mlx5_rsc_event() argument 65 struct mlx5_core_rsc_common *common = mlx5_get_rsc(dev, rsn); in mlx5_rsc_event() 78 mlx5_core_warn(dev, "invalid resource type for 0x%x\n", rsn); in mlx5_rsc_event()
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | cq.c | 346 uint32_t rsn, int cqe_ver) 350 uint32_t rsn, int cqe_ver) in get_req_context() argument 352 if (!*cur_rsc || (rsn != (*cur_rsc)->rsn)) in get_req_context() 353 *cur_rsc = cqe_ver ? mlx5_find_uidx(mctx, rsn) : in get_req_context() 354 (struct mlx5_resource *)mlx5_find_qp(mctx, rsn); in get_req_context() 371 if (!*cur_rsc || (uidx != (*cur_rsc)->rsn)) { in get_resp_ctx_v1() 406 if (!*cur_rsc || (qpn != (*cur_rsc)->rsn)) { in get_qp_ctx() 1317 static int is_equal_rsn(struct mlx5_cqe64 *cqe64, uint32_t rsn) in is_equal_rsn() argument 1319 return rsn == (be32toh(cqe64->sop_drop_qpn) & 0xffffff); in is_equal_rsn() 1341 static inline int free_res_cqe(struct mlx5_cqe64 *cqe64, uint32_t rsn, in free_res_cqe() argument [all …]
|
H A D | verbs.c | 707 srq->rsc.rsn = resp.srqn; in mlx5_create_srq() 760 mlx5_clear_uidx(ctx, msrq->rsc.rsn); in mlx5_destroy_srq() 1402 qp->rsc.rsn = (ctx->cqe_version && !is_xrc_tgt(attr->qp_type)) ? in create_qp() 1520 __mlx5_cq_clean(to_mcq(ibqp->recv_cq), qp->rsc.rsn, in mlx5_destroy_qp() 1523 __mlx5_cq_clean(to_mcq(ibqp->send_cq), qp->rsc.rsn, NULL); in mlx5_destroy_qp() 1534 mlx5_clear_uidx(ctx, qp->rsc.rsn); in mlx5_destroy_qp() 1624 mlx5_cq_clean(to_mcq(qp->recv_cq), mqp->rsc.rsn, in mlx5_modify_qp() 1629 to_mqp(qp)->rsc.rsn, NULL); in mlx5_modify_qp() 1921 msrq->rsc.rsn = ctx->cqe_version ? cmd.uidx : resp.srqn; in mlx5_create_xrc_srq() 2131 rwq->rsc.rsn in mlx5_create_wq() [all...] |
H A D | mlx5.h | 191 uint32_t rsn; member
|
/freebsd/sys/fs/devfs/ |
H A D | devfs.h | 59 #define mkrid(rsn, rn) ((rn) | ((rsn) << 16)) argument
|
/freebsd/contrib/pf/authpf/ |
H A D | authpf.c | 751 char *rsn = NULL, *fn = NULL; in change_filter() 768 if (asprintf(&rsn, "%s/%s", anchorname, rulesetname) == -1) in change_filter() 785 pargv[5] = rsn; in change_filter() 832 free(rsn); in change_filter() 753 char *rsn = NULL, *fn = NULL; change_filter() local
|
/freebsd/sys/contrib/dev/rtw89/ |
H A D | wow.c | 19 const u8 *rsn, *ies = mgmt->u.assoc_req.variable; in rtw89_wow_parse_akm() local 26 rsn = cfg80211_find_ie(WLAN_EID_RSN, ies, skb->len); in rtw89_wow_parse_akm() 27 if (!rsn) in rtw89_wow_parse_akm() 31 rsn_ie = (struct rtw89_rsn_ie *)rsn; in rtw89_wow_parse_akm() 33 rsn_ie = (const struct rtw89_rsn_ie *)rsn; in rtw89_wow_parse_akm()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | ieee802_11.c | 1826 struct wpa_ie_data rsn; in handle_auth_fils() local 1922 &rsn) < 0) { in handle_auth_fils() 1958 if (rsn.pmkid && rsn.num_pmkid > 0) { in handle_auth_fils() 1963 rsn.pmkid, rsn.num_pmkid * PMKID_LEN); in handle_auth_fils() 1965 pmkid = rsn.pmkid; in handle_auth_fils() 1966 num = rsn.num_pmkid; in handle_auth_fils() 7975 const u8 *auth, *rsn = NULL, *rsnx = NULL; in hostapd_eid_mbssid_elem_len() local 7998 rsn = get_ie(auth, auth_len, WLAN_EID_RSN); in hostapd_eid_mbssid_elem_len() 7999 if (rsn) in hostapd_eid_mbssid_elem_len() 8000 nontx_profile_len += 2 + rsn[1]; in hostapd_eid_mbssid_elem_len() [all …]
|
H A D | drv_callbacks.c | 1983 const u8 *src, bool rsn, in hostapd_find_by_sta() argument 1997 (!rsn || sta->wpa_sm)) { in hostapd_find_by_sta() 2012 (!rsn || sta->wpa_sm)) { in hostapd_find_by_sta()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 1029 static int is_equal_rsn(struct mlx5_cqe64 *cqe64, u32 rsn) in is_equal_rsn() argument 1031 return rsn == (ntohl(cqe64->sop_drop_qpn) & 0xffffff); in is_equal_rsn() 1034 void __mlx5_ib_cq_clean(struct mlx5_ib_cq *cq, u32 rsn, struct mlx5_ib_srq *srq) in __mlx5_ib_cq_clean() argument 1061 if (is_equal_rsn(cqe64, rsn)) { in __mlx5_ib_cq_clean()
|
/freebsd/contrib/wpa/src/common/ |
H A D | wpa_common.h | 581 const u8 *rsn; member
|
H A D | wpa_common.c | 1250 parse->rsn = pos; in wpa_ft_parse_ies() 1252 ret = wpa_parse_wpa_ie_rsn(parse->rsn - 2, in wpa_ft_parse_ies() 1360 if (parse->rsn) in wpa_ft_parse_ies() 1367 if (parse->rsn) in wpa_ft_parse_ies()
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/ |
H A D | wlan_tree.def | 189 10 rsn
|