Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 21 of 21) sorted by relevance

/hostap-latest/tests/hwsim/
Dtest_p2p_messages.py26 def ie_p2p(attrs): argument
27 return struct.pack("<BBBBBB", WLAN_EID_VENDOR_SPECIFIC, 4 + len(attrs),
28 0x50, 0x6f, 0x9a, 9) + attrs
30 def ie_wsc(attrs): argument
31 return struct.pack("<BBBBBB", WLAN_EID_VENDOR_SPECIFIC, 4 + len(attrs),
32 0x00, 0x50, 0xf2, 4) + attrs
154 attrs = p2p_attr_listen_channel(chan=chan)
155 msg['payload'] = ie_ssid("DIRECT-") + ie_supp_rates() + ie_p2p(attrs)
237 attrs = p2p_attr_config_timeout()
238 attrs += p2p_attr_invitation_flags()
[all …]
Dtest_cfg80211.py38 attrs = build_nl80211_attr_u32('IFINDEX', ifindex)
39 attrs += build_nl80211_attr_u16('REASON_CODE', 1)
40 attrs += build_nl80211_attr_mac('MAC', apdev[0]['bssid'])
41 nl80211_command(dev[0], 'DISASSOCIATE', attrs)
48 attrs = build_nl80211_attr_u32('IFINDEX', ifindex)
50 attrs += build_nl80211_attr_u32('WIPHY_FREQ', freq)
52 attrs += build_nl80211_attr_u32('DURATION', duration)
54 attrs += build_nl80211_attr_flag('OFFCHANNEL_TX_OK')
55 attrs += build_nl80211_attr('FRAME', frame)
56 return parse_nl80211_attrs(nl80211_command(dev, 'FRAME', attrs))
[all …]
Dtest_ap_wps.py6461 attrs = {}
6469 attrs[attr] = data[0:length]
6471 msg['wsc_attrs'] = attrs
6473 if ATTR_MSG_TYPE in attrs:
6474 msg['wsc_msg_type'], = struct.unpack('B', attrs[ATTR_MSG_TYPE])
6663 attrs = build_wsc_attr(ATTR_VERSION, '\x10')
6664 attrs += build_attr_msg_type(WPS_M1)
6665 attrs += build_wsc_attr(ATTR_UUID_E, uuid_e)
6666 attrs += build_wsc_attr(ATTR_MAC_ADDR, mac_addr)
6667 attrs += build_wsc_attr(ATTR_ENROLLEE_NONCE, e_nonce)
[all …]
Dhwsim.py30 attrs = []
32 attrs.append(netlink.U32Attr(HWSIM_ATTR_CHANNELS, n_channels))
34 attrs.append(netlink.FlagAttr(HWSIM_ATTR_USE_CHANCTX))
36 attrs.append(netlink.FlagAttr(HWSIM_ATTR_SUPPORT_P2P_DEVICE))
38 attrs.append(netlink.FlagAttr(HWSIM_ATTR_MLO_SUPPORT))
43 attrs=attrs)
47 attrs = [netlink.U32Attr(HWSIM_ATTR_RADIO_ID, radio_id)]
51 attrs=attrs)
Dnetlink.py77 def __init__(self, attr_type, attrs): argument
78 self.attrs = attrs
83 for attr in self.attrs:
183 attrs = {}
186 attrs[attr_type] = Attr(attr_type, data[4:attr_len])
189 return attrs
222 def __init__(self, family, cmd, attrs=[], flags=0): argument
223 Message.__init__(self, family, flags=flags, payload=[GenlHdr(cmd)] + attrs)
230 m = GenlMessage(GENL_ID_CTRL, CTRL_CMD_GETFAMILY, flags=NLM_F_REQUEST, attrs=[a])
234 attrs = parse_attributes(m.payload[4:])
[all …]
Dnl80211.py346 attrs = {}
355 attrs[attr] = msg[0:alen]
357 return attrs
Dtest_p2p_grpform.py1099 attrs = p2p_attr_capability(dev_capab=0x25, group_capab=0x08)
1100 attrs += p2p_attr_go_intent(go_intent=7, tie_breaker=1)
1101 attrs += p2p_attr_config_timeout()
1102 attrs += p2p_attr_listen_channel(chan=(int(peer['listen_freq']) - 2407) // 5)
1103 attrs += p2p_attr_intended_interface_addr(lower.p2p_dev_addr())
1104 attrs += p2p_attr_channel_list()
1105 attrs += p2p_attr_device_info(addr_low, config_methods=0x80, name="Device A")
1106 attrs += p2p_attr_operating_channel()
1108 msg['payload'] += ie_p2p(attrs) + ie_wsc(wsc_attrs)
Dtest_radius.py821 attrs = b''
824 attrs += req._PktEncodeAttribute(code, data)
827 flen = 4 + 16 + len(attrs)
830 hmac_obj.update(attrs)
1107 attrs = reply._PktEncodeAttributes()
1110 flen = 4 + 16 + len(attrs)
1113 hmac_obj.update(attrs)
1525 attrs = req._PktEncodeAttributes()
1528 flen = 4 + 16 + len(attrs)
1531 hmac_obj.update(attrs)
Dtest_eap_proto.py91 attrs = reply._PktEncodeAttributes()
94 flen = 4 + 16 + len(attrs)
97 hmac_obj.update(attrs)
/hostap-latest/src/radius/
Dradius_das.c59 struct radius_das_attrs attrs; in radius_das_disconnect() local
76 os_memset(&attrs, 0, sizeof(attrs)); in radius_das_disconnect()
86 attrs.nas_ip_addr = buf; in radius_das_disconnect()
98 attrs.nas_ipv6_addr = buf; in radius_das_disconnect()
104 attrs.nas_identifier = buf; in radius_das_disconnect()
105 attrs.nas_identifier_len = len; in radius_das_disconnect()
120 attrs.sta_addr = sta_addr; in radius_das_disconnect()
125 attrs.user_name = buf; in radius_das_disconnect()
126 attrs.user_name_len = len; in radius_das_disconnect()
131 attrs.acct_session_id = buf; in radius_das_disconnect()
[all …]
Dradius.c1880 u8 radius_msg_find_unlisted_attr(struct radius_msg *msg, u8 *attrs) in radius_msg_find_unlisted_attr() argument
1888 for (j = 0; attrs[j]; j++) { in radius_msg_find_unlisted_attr()
1889 if (attr->type == attrs[j]) in radius_msg_find_unlisted_attr()
1893 if (attrs[j] == 0) in radius_msg_find_unlisted_attr()
Dradius.h371 u8 radius_msg_find_unlisted_attr(struct radius_msg *msg, u8 *attrs);
/hostap-latest/hs20/client/
Dest.c226 STACK_OF(AttrOrOID) *attrs;
240 ASN1_SEQUENCE_OF(CsrAttrs, attrs, AttrOrOID)
337 if (!csrattrs || ! csrattrs->attrs) in add_csrattrs()
341 num = sk_AttrOrOID_num(csrattrs->attrs); in add_csrattrs()
343 num = SKM_sk_num(AttrOrOID, csrattrs->attrs); in add_csrattrs()
347 AttrOrOID *ao = sk_AttrOrOID_value(csrattrs->attrs, i); in add_csrattrs()
349 AttrOrOID *ao = SKM_sk_value(AttrOrOID, csrattrs->attrs, i); in add_csrattrs()
605 unsigned char *attrs; in est_build_csr() local
615 attrs = hostap_base64_decode(resp, resp_len, &attrs_len); in est_build_csr()
618 if (attrs == NULL) { in est_build_csr()
[all …]
/hostap-latest/hs20/server/ca/
Dest-csrattrs.cnf1 asn1 = SEQUENCE:attrs
3 [attrs]
Dest-csrattrs.sh4 base64 est-csrattrs.der > est-attrs.b64
/hostap-latest/wpa_supplicant/
Deapol_test.c156 struct extra_radius_attr *attrs) in add_extra_attrs() argument
159 for (p = attrs; p; p = p->next) { in add_extra_attrs()
168 find_extra_attr(struct extra_radius_attr *attrs, u8 type) in find_extra_attr() argument
171 for (p = attrs; p; p = p->next) { in find_extra_attr()
Devents.c5298 struct frequency_attrs *attrs) in wpas_beacon_hint() argument
5300 if (!attrs->freq) in wpas_beacon_hint()
5304 title, attrs->freq, attrs->max_tx_power, in wpas_beacon_hint()
5305 attrs->disabled ? " disabled=1" : "", in wpas_beacon_hint()
5306 attrs->no_ir ? " no_ir=1" : "", in wpas_beacon_hint()
5307 attrs->radar ? " radar=1" : ""); in wpas_beacon_hint()
/hostap-latest/src/wps/
Dwps_enrollee.c803 struct wpabuf *attrs, int wps2) in wps_process_ap_settings_e() argument
893 cred.cred_attr = wpabuf_head(attrs); in wps_process_ap_settings_e()
894 cred.cred_attr_len = wpabuf_len(attrs); in wps_process_ap_settings_e()
/hostap-latest/src/drivers/
Ddriver_nl80211_event.c3432 struct frequency_attrs *attrs) in nl80211_parse_freq_attrs() argument
3460 attrs->freq = freq; in nl80211_parse_freq_attrs()
3461 attrs->max_tx_power = max_tx_power; in nl80211_parse_freq_attrs()
3463 attrs->disabled = true; in nl80211_parse_freq_attrs()
3465 attrs->no_ir = true; in nl80211_parse_freq_attrs()
3467 attrs->radar = true; in nl80211_parse_freq_attrs()
Ddriver_nl80211.c312 struct nlattr *attrs; in ack_handler_cookie() local
318 attrs = (struct nlattr *) in ack_handler_cookie()
329 nla_parse(tb, NLMSGERR_ATTR_MAX, attrs, attr_len, NULL); in ack_handler_cookie()
357 struct nlattr *attrs; in error_handler() local
377 attrs = (void *) ((unsigned char *) nlh + ack_len); in error_handler()
380 nla_parse(tb, NLMSGERR_ATTR_MAX, attrs, len, NULL); in error_handler()
/hostap-latest/src/common/
Ddpp.c3284 static u8 * dpp_get_csr_attrs(const u8 *attrs, size_t attrs_len, size_t *len) in dpp_get_csr_attrs() argument
3289 b64 = dpp_get_attr(attrs, attrs_len, DPP_ATTR_CSR_ATTR_REQ, &b64_len); in dpp_get_csr_attrs()