/freebsd/contrib/ofed/libibmad/ |
H A D | register.c | 78 int mad_class_agent(int mgmt) in mad_class_agent() argument 80 if (mgmt < 1 || mgmt >= MAX_CLASS) in mad_class_agent() 82 return ibmp->class_agents[mgmt]; in mad_class_agent() 85 int mad_register_port_client(int port_id, int mgmt, uint8_t rmpp_version) in mad_register_port_client() argument 89 if ((vers = mgmt_class_vers(mgmt)) <= 0) { in mad_register_port_client() 90 DEBUG("Unknown class %d mgmt_class", mgmt); in mad_register_port_client() 94 agent = umad_register(port_id, mgmt, vers, rmpp_version, 0); in mad_register_port_client() 96 DEBUG("Can't register agent for class %d", mgmt); in mad_register_port_client() 101 int mad_register_client(int mgmt, uint8_t rmpp_version) in mad_register_client() argument 103 return mad_register_client_via(mgmt, rmpp_version, ibmp); in mad_register_client() [all …]
|
H A D | rpc.c | 383 int mgmt = *mgmt_classes++; in madrpc_init() local 385 if (mgmt == IB_SA_CLASS) in madrpc_init() 387 if (mad_register_client_via(mgmt, rmpp_version, ibmp) < 0) in madrpc_init() 388 IBPANIC("client_register for mgmt class %d failed", in madrpc_init() 389 mgmt); in madrpc_init() 434 int mgmt = *mgmt_classes++; in mad_rpc_open_port() local 436 if (mgmt == IB_SA_CLASS) in mad_rpc_open_port() 438 if (mgmt < 0 || mgmt >= MAX_CLASS || in mad_rpc_open_port() 439 mad_register_client_via(mgmt, rmpp_version, p) < 0) { in mad_rpc_open_port() 440 IBWARN("client_register for mgmt %d failed", mgmt); in mad_rpc_open_port()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | wnm_ap.c | 66 struct ieee80211_mgmt *mgmt; in ieee802_11_send_wnmsleep_resp() local 151 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len + in ieee802_11_send_wnmsleep_resp() 155 if (mgmt == NULL) { in ieee802_11_send_wnmsleep_resp() 164 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 165 os_memcpy(mgmt->sa, own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 166 os_memcpy(mgmt->bssid, own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_resp() 167 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_wnmsleep_resp() 169 mgmt->u.action.category = WLAN_ACTION_WNM; in ieee802_11_send_wnmsleep_resp() 170 mgmt->u.action.u.wnm_sleep_resp.action = WNM_SLEEP_MODE_RESP; in ieee802_11_send_wnmsleep_resp() 171 mgmt->u.action.u.wnm_sleep_resp.dialogtoken = dialog_token; in ieee802_11_send_wnmsleep_resp() [all …]
|
H A D | ieee802_11.c | 85 const struct ieee80211_mgmt *mgmt, size_t len, 328 * TODO: Also consider driver support for TPC to set Spectrum Mgmt bit in hostapd_own_capab_info() 1307 const struct ieee80211_mgmt *mgmt, size_t len, in handle_auth_sae() argument 1324 pos = mgmt->u.auth.variable; in handle_auth_sae() 1325 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1382 pos = mgmt->u.auth.variable; in handle_auth_sae() 1383 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1457 pos = mgmt->u.auth.variable; in handle_auth_sae() 1458 end = ((const u8 *) mgmt) + len; in handle_auth_sae() 1475 resp = sae_parse_commit(sta->sae, mgmt->u.auth.variable, in handle_auth_sae() [all …]
|
H A D | wmm.c | 288 const struct ieee80211_mgmt *mgmt, in wmm_addts_req() argument 291 const u8 *end = ((const u8 *) mgmt) + len; in wmm_addts_req() 302 mgmt->u.action.u.wmm_action.dialog_token, in wmm_addts_req() 303 MAC2STR(mgmt->sa)); in wmm_addts_req() 309 wmm_send_action(hapd, mgmt->sa, &tspec_resp, WMM_ACTION_CODE_ADDTS_RESP, in wmm_addts_req() 310 mgmt->u.action.u.wmm_action.dialog_token, res); in wmm_addts_req() 315 const struct ieee80211_mgmt *mgmt, size_t len) in hostapd_wmm_action() argument 319 const u8 *pos = ((const u8 *) mgmt) + IEEE80211_HDRLEN + 4; in hostapd_wmm_action() 321 struct sta_info *sta = ap_get_sta(hapd, mgmt->sa); in hostapd_wmm_action() 327 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in hostapd_wmm_action() [all …]
|
H A D | ctrl_iface_ap.c | 570 struct ieee80211_mgmt *mgmt; in p2p_manager_disconnect() local 574 mgmt = os_zalloc(sizeof(*mgmt) + 100); in p2p_manager_disconnect() 575 if (mgmt == NULL) in p2p_manager_disconnect() 578 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, stype); in p2p_manager_disconnect() 582 fc2str(le_to_host16(mgmt->frame_control))); in p2p_manager_disconnect() 584 os_memcpy(mgmt->da, addr, ETH_ALEN); in p2p_manager_disconnect() 585 os_memcpy(mgmt->sa, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 586 os_memcpy(mgmt->bssid, hapd->own_addr, ETH_ALEN); in p2p_manager_disconnect() 588 mgmt->u.deauth.reason_code = in p2p_manager_disconnect() 590 pos = mgmt->u.deauth.variable; in p2p_manager_disconnect() [all …]
|
H A D | rrm.c | 98 const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *) buf; in hostapd_handle_radio_msmt_report() local 103 token = mgmt->u.action.u.rrm.dialog_token; in hostapd_handle_radio_msmt_report() 104 pos = mgmt->u.action.u.rrm.variable; in hostapd_handle_radio_msmt_report() 124 hostapd_handle_beacon_report(hapd, mgmt->sa, token, in hostapd_handle_radio_msmt_report() 281 const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *) buf; in hostapd_handle_nei_report_req() local 296 token = mgmt->u.action.u.rrm.dialog_token; in hostapd_handle_nei_report_req() 297 pos = mgmt->u.action.u.rrm.variable; in hostapd_handle_nei_report_req() 332 hostapd_send_nei_report_resp(hapd, mgmt->sa, token, &ssid, lci, civic, in hostapd_handle_nei_report_req() 352 const struct ieee80211_mgmt *mgmt = (const struct ieee80211_mgmt *) buf; in hostapd_handle_link_mesr_report() local 358 pos = mgmt->u.action.u.rrm.variable; in hostapd_handle_link_mesr_report() [all …]
|
H A D | ieee802_11_shared.c | 68 struct ieee80211_mgmt *mgmt; in ieee802_11_send_sa_query_req() local 114 mgmt = os_zalloc(sizeof(*mgmt) + oci_ie_len); in ieee802_11_send_sa_query_req() 115 if (!mgmt) { in ieee802_11_send_sa_query_req() 127 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_sa_query_req() 129 os_memcpy(mgmt->da, addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 130 os_memcpy(mgmt->sa, own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 131 os_memcpy(mgmt->bssid, own_addr, ETH_ALEN); in ieee802_11_send_sa_query_req() 132 mgmt->u.action.category = WLAN_ACTION_SA_QUERY; in ieee802_11_send_sa_query_req() 133 mgmt->u.action.u.sa_query_req.action = WLAN_SA_QUERY_REQUEST; in ieee802_11_send_sa_query_req() 134 os_memcpy(mgmt->u.action.u.sa_query_req.trans_id, trans_id, in ieee802_11_send_sa_query_req() [all …]
|
H A D | ieee802_11_ht.c | 208 const struct ieee80211_mgmt *mgmt, size_t len) in hostapd_2040_coex_action() argument 215 const u8 *start = (const u8 *) mgmt; in hostapd_2040_coex_action() 221 MACSTR, MAC2STR(mgmt->sa)); in hostapd_2040_coex_action() 223 hostapd_logger(hapd, mgmt->sa, HOSTAPD_MODULE_IEEE80211, in hostapd_2040_coex_action() 225 mgmt->u.action.u.public_action.action); in hostapd_2040_coex_action() 269 sta = ap_get_sta(hapd, mgmt->sa); in hostapd_2040_coex_action() 276 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action() 286 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action() 317 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action() 333 hostapd_logger(hapd, mgmt->sa, in hostapd_2040_coex_action()
|
H A D | beacon.c | 957 const struct ieee80211_mgmt *mgmt, in hostapd_fill_probe_resp_ml_params() argument 1342 const struct ieee80211_mgmt *mgmt, size_t len, in handle_probe_req() argument 1367 ie = ((const u8 *) mgmt) + IEEE80211_HDRLEN; in handle_probe_req() 1369 sta_track_add(hapd->iface, mgmt->sa, ssi_signal); in handle_probe_req() 1372 ret = hostapd_allowed_address(hapd, mgmt->sa, (const u8 *) mgmt, len, in handle_probe_req() 1377 " due to ACL reject ", MAC2STR(mgmt->sa)); in handle_probe_req() 1383 mgmt->sa, mgmt->da, mgmt->bssid, in handle_probe_req() 1392 MAC2STR(mgmt->sa)); in handle_probe_req() 1399 MAC2STR(mgmt->sa)); in handle_probe_req() 1454 "broadcast SSID ignored", MAC2STR(mgmt->sa)); in handle_probe_req() [all …]
|
H A D | ieee802_11_eht.c | 836 sae_commit_skip_fixed_fields(const struct ieee80211_mgmt *mgmt, size_t len, in sae_commit_skip_fixed_fields() argument 884 if (pos - mgmt->u.auth.variable > (int) len) { in sae_commit_skip_fixed_fields() 891 pos, (int) len - (pos - mgmt->u.auth.variable)); in sae_commit_skip_fixed_fields() 899 const struct ieee80211_mgmt *mgmt, size_t len, in sae_confirm_skip_fixed_fields() argument 914 sta = ap_get_sta(hapd, mgmt->sa); in sae_confirm_skip_fixed_fields() 934 if (pos - mgmt->u.auth.variable > (int) len) { in sae_confirm_skip_fixed_fields() 947 const struct ieee80211_mgmt *mgmt, in auth_skip_fixed_fields() argument 950 u16 auth_alg = le_to_host16(mgmt->u.auth.auth_alg); in auth_skip_fixed_fields() 952 u16 auth_transaction = le_to_host16(mgmt->u.auth.auth_transaction); in auth_skip_fixed_fields() 953 u16 status_code = le_to_host16(mgmt->u.auth.status_code); in auth_skip_fixed_fields() [all …]
|
H A D | drv_callbacks.c | 1644 struct ieee80211_mgmt *mgmt; in hostapd_action_rx() local 1655 mgmt = (struct ieee80211_mgmt *) drv_mgmt->frame; in hostapd_action_rx() 1656 fc = le_to_host16(mgmt->frame_control); in hostapd_action_rx() 1660 action = (u8 *) &mgmt->u.action.u; in hostapd_action_rx() 1663 mgmt->u.action.category, *action, in hostapd_action_rx() 1664 MAC2STR(mgmt->sa), MAC2STR(mgmt->da), (int) plen); in hostapd_action_rx() 1666 sta = ap_get_sta(hapd, mgmt->sa); in hostapd_action_rx() 1672 if (mgmt->u.action.category == WLAN_ACTION_FT) { in hostapd_action_rx() 1673 wpa_ft_action_rx(sta->wpa_sm, (u8 *) &mgmt->u.action, plen); in hostapd_action_rx() 1677 if (mgmt->u.action.category == WLAN_ACTION_SA_QUERY) { in hostapd_action_rx() [all …]
|
/freebsd/contrib/wpa/src/fst/ |
H A D | fst_session.c | 357 const struct ieee80211_mgmt *mgmt, in fst_session_handle_setup_request() argument 376 (((const u8 *) mgmt) + IEEE80211_HDRLEN + 1); in fst_session_handle_setup_request() 393 fst_iface_update_mb_ie(iface, mgmt->sa, (const u8 *) (req + 1), in fst_session_handle_setup_request() 397 MAC2STR(mgmt->sa)); in fst_session_handle_setup_request() 400 new_iface = fst_group_get_peer_other_connection(iface, mgmt->sa, in fst_session_handle_setup_request() 413 s = fst_find_session_in_progress(mgmt->sa, g); in fst_session_handle_setup_request() 432 os_memcmp(mgmt->da, mgmt->sa, ETH_ALEN) > 0) { in fst_session_handle_setup_request() 436 MAC2STR(mgmt->da)); in fst_session_handle_setup_request() 483 fst_session_set_peer_addr(s, mgmt->sa, true); in fst_session_handle_setup_request() 500 const struct ieee80211_mgmt *mgmt, in fst_session_handle_setup_response() argument [all …]
|
H A D | fst.c | 166 void fst_rx_action(struct fst_iface *iface, const struct ieee80211_mgmt *mgmt, in fst_rx_action() argument 169 if (fst_iface_is_connected(iface, mgmt->sa, false)) in fst_rx_action() 170 fst_session_on_action_rx(iface, mgmt, len); in fst_rx_action() 174 MACSTR, MAC2STR(mgmt->sa)); in fst_rx_action()
|
/freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
H A D | txq.h | 22 * @IWL_MVM_DQA_MIN_MGMT_QUEUE: first TXQ in pool for MGMT and non-QOS frames. 23 * Each MGMT queue is mapped to a single STA 24 * MGMT frames are frames that return true on ieee80211_is_mgmt() 25 * @IWL_MVM_DQA_MAX_MGMT_QUEUE: last TXQ in pool for MGMT frames 30 * the MGMT TXQ pool is exhausted, mgmt frames can be sent on DATA queues
|
/freebsd/sys/contrib/ncsw/inc/flib/ |
H A D | fsl_fman_dtsec_mii_acc.h | 78 uint32_t miimcfg; /* MII Mgmt:configuration */ 79 uint32_t miimcom; /* MII Mgmt:command */ 80 uint32_t miimadd; /* MII Mgmt:address */ 81 uint32_t miimcon; /* MII Mgmt:control 3 */ 82 uint32_t miimstat; /* MII Mgmt:status */ 83 uint32_t miimind; /* MII Mgmt:indicators */
|
/freebsd/contrib/wpa/src/drivers/ |
H A D | driver_nl80211_event.c | 200 const struct ieee80211_mgmt *mgmt; in mlme_event_auth() local 215 mgmt = (const struct ieee80211_mgmt *) frame; in mlme_event_auth() 216 if (len < 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 222 os_memcpy(drv->auth_bssid, mgmt->sa, ETH_ALEN); in mlme_event_auth() 225 os_memcpy(event.auth.peer, mgmt->sa, ETH_ALEN); in mlme_event_auth() 226 event.auth.auth_type = le_to_host16(mgmt->u.auth.auth_alg); in mlme_event_auth() 228 le_to_host16(mgmt->u.auth.auth_transaction); in mlme_event_auth() 229 event.auth.status_code = le_to_host16(mgmt->u.auth.status_code); in mlme_event_auth() 230 if (len > 24 + sizeof(mgmt->u.auth)) { in mlme_event_auth() 231 event.auth.ies = mgmt->u.auth.variable; in mlme_event_auth() [all …]
|
H A D | driver_hostap.c | 1038 struct ieee80211_mgmt mgmt; in hostap_sta_deauth() local 1050 memset(&mgmt, 0, sizeof(mgmt)); in hostap_sta_deauth() 1051 mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in hostap_sta_deauth() 1053 memcpy(mgmt.da, addr, ETH_ALEN); in hostap_sta_deauth() 1054 memcpy(mgmt.sa, own_addr, ETH_ALEN); in hostap_sta_deauth() 1055 memcpy(mgmt.bssid, own_addr, ETH_ALEN); in hostap_sta_deauth() 1056 mgmt.u.deauth.reason_code = host_to_le16(reason); in hostap_sta_deauth() 1057 return hostap_send_mlme(drv, (u8 *) &mgmt, IEEE80211_HDRLEN + in hostap_sta_deauth() 1058 sizeof(mgmt.u.deauth), 0, 0, NULL, 0, 0, 0, -1); in hostap_sta_deauth() 1086 struct ieee80211_mgmt mgmt; in hostap_sta_disassoc() local [all …]
|
H A D | driver_atheros.c | 859 const struct ieee80211_mgmt *mgmt; in atheros_raw_receive() local 868 mgmt = (const struct ieee80211_mgmt *) buf; in atheros_raw_receive() 870 fc = le_to_host16(mgmt->frame_control); in atheros_raw_receive() 885 event.rx_probe_req.sa = mgmt->sa; in atheros_raw_receive() 886 event.rx_probe_req.da = mgmt->da; in atheros_raw_receive() 887 event.rx_probe_req.bssid = mgmt->bssid; in atheros_raw_receive() 895 (ether_addr_equal(drv->own_addr, mgmt->bssid) || in atheros_raw_receive() 896 is_broadcast_ether_addr(mgmt->bssid))) { in atheros_raw_receive() 904 if (!ether_addr_equal(drv->own_addr, mgmt->bssid)) { in atheros_raw_receive() 912 if (len < IEEE80211_HDRLEN + sizeof(mgmt->u.assoc_req)) in atheros_raw_receive() [all …]
|
/freebsd/contrib/wpa/src/pasn/ |
H A D | pasn_initiator.c | 1025 const struct ieee80211_mgmt *mgmt, in is_pasn_auth_frame() argument 1030 if (!mgmt || len < offsetof(struct ieee80211_mgmt, u.auth.variable)) in is_pasn_auth_frame() 1034 fc = le_to_host16(mgmt->frame_control); in is_pasn_auth_frame() 1040 if (!ether_addr_equal(mgmt->bssid, pasn->bssid)) in is_pasn_auth_frame() 1043 if (rx && (!ether_addr_equal(mgmt->da, pasn->own_addr) || in is_pasn_auth_frame() 1044 !ether_addr_equal(mgmt->sa, pasn->peer_addr))) in is_pasn_auth_frame() 1047 if (!rx && (!ether_addr_equal(mgmt->sa, pasn->own_addr) || in is_pasn_auth_frame() 1048 !ether_addr_equal(mgmt->da, pasn->peer_addr))) in is_pasn_auth_frame() 1052 if (mgmt->u.auth.auth_alg != host_to_le16(WLAN_AUTH_PASN)) in is_pasn_auth_frame() 1065 const struct ieee80211_mgmt *mgmt = in wpa_pasn_auth_rx() local [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pci/ |
H A D | rockchip-pcie-ep.txt | 20 - "mgmt" 21 - "mgmt-sticky" 56 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
|
H A D | rockchip-pcie-host.txt | 31 - "mgmt" 32 - "mgmt-sticky" 107 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | time-sync.c | 17 struct ieee80211_mgmt *mgmt = (void *)skb->data; in iwl_mvm_is_skb_match() local 21 skb_dialog_token = mgmt->u.action.u.wnm_timing_msr.dialog_token; in iwl_mvm_is_skb_match() 23 skb_dialog_token = mgmt->u.action.u.ftm.dialog_token; in iwl_mvm_is_skb_match() 25 if ((ether_addr_equal(mgmt->sa, addr) || in iwl_mvm_is_skb_match() 26 ether_addr_equal(mgmt->da, addr)) && in iwl_mvm_is_skb_match()
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | wnm_sta.c | 59 struct ieee80211_mgmt *mgmt; in ieee802_11_send_wnmsleep_req() local 153 mgmt = os_zalloc(sizeof(*mgmt) + wnmsleep_ie_len + wnmtfs_ie_len + in ieee802_11_send_wnmsleep_req() 155 if (mgmt == NULL) { in ieee802_11_send_wnmsleep_req() 163 os_memcpy(mgmt->da, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 164 os_memcpy(mgmt->sa, wpa_s->own_addr, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 165 os_memcpy(mgmt->bssid, wpa_s->bssid, ETH_ALEN); in ieee802_11_send_wnmsleep_req() 166 mgmt->frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, in ieee802_11_send_wnmsleep_req() 168 mgmt->u.action.category = WLAN_ACTION_WNM; in ieee802_11_send_wnmsleep_req() 169 mgmt->u.action.u.wnm_sleep_req.action = WNM_SLEEP_MODE_REQ; in ieee802_11_send_wnmsleep_req() 170 mgmt->u.action.u.wnm_sleep_req.dialogtoken = 1; in ieee802_11_send_wnmsleep_req() [all …]
|
/freebsd/sys/dev/ocs_fc/ |
H A D | ocs_mgmt.c | 38 * @defgroup mgmt Management Functions 204 * @ingroup mgmt 267 * @ingroup mgmt 352 * @ingroup mgmt 353 * @brief Set the value of a mgmt item. 428 * @ingroup mgmt 1348 * @brief HW link config enum to mgmt string value mapping. 1352 * control) to the mgmt string that is passed in by the mgmt application 1370 * @brief Get the HW linkcfg enum from the mgmt config string. 1372 * @param mgmt_str mgmt string value. [all …]
|