Home
last modified time | relevance | path

Searched refs:mac_addr (Results 1 – 25 of 40) sorted by relevance

12

/hal_espressif-3.6.0/examples/wifi/espnow/main/
Despnow_example_main.c62 static void example_espnow_send_cb(const uint8_t *mac_addr, esp_now_send_status_t status) in example_espnow_send_cb() argument
67 if (mac_addr == NULL) { in example_espnow_send_cb()
73 memcpy(send_cb->mac_addr, mac_addr, ESP_NOW_ETH_ALEN); in example_espnow_send_cb()
80 static void example_espnow_recv_cb(const uint8_t *mac_addr, const uint8_t *data, int len) in example_espnow_recv_cb() argument
85 if (mac_addr == NULL || data == NULL || len <= 0) { in example_espnow_recv_cb()
91 memcpy(recv_cb->mac_addr, mac_addr, ESP_NOW_ETH_ALEN); in example_espnow_recv_cb()
172 is_broadcast = IS_BROADCAST_ADDR(send_cb->mac_addr); in example_espnow_task()
174 … ESP_LOGD(TAG, "Send data to "MACSTR", status1: %d", MAC2STR(send_cb->mac_addr), send_cb->status); in example_espnow_task()
194 ESP_LOGI(TAG, "send data to "MACSTR"", MAC2STR(send_cb->mac_addr)); in example_espnow_task()
196 memcpy(send_param->dest_mac, send_cb->mac_addr, ESP_NOW_ETH_ALEN); in example_espnow_task()
[all …]
Despnow_example.h32 uint8_t mac_addr[ESP_NOW_ETH_ALEN]; member
37 uint8_t mac_addr[ESP_NOW_ETH_ALEN]; member
/hal_espressif-3.6.0/examples/ethernet/enc28j60/main/
Denc28j60_example_main.c28 uint8_t mac_addr[6] = {0}; in eth_event_handler() local
34 esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr); in eth_event_handler()
37 mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]); in eth_event_handler()
/hal_espressif-3.6.0/components/esp_eth/test/
Dtest_emac.c110 uint8_t mac_addr[6]; variable
111 memset(mac_addr, 0, sizeof(mac_addr));
112 TEST_ESP_OK(esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr));
114 mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]);
115 TEST_ASSERT(mac_addr[0] != 0);
/hal_espressif-3.6.0/examples/ethernet/basic/main/
Dethernet_example_main.c46 uint8_t mac_addr[6] = {0}; in eth_event_handler() local
52 esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr); in eth_event_handler()
55 mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]); in eth_event_handler()
/hal_espressif-3.6.0/components/wpa_supplicant/src/wps/
Dwps_attr_process.c193 const u8 *mac_addr) in wps_process_cred_mac_addr() argument
195 if (mac_addr == NULL) { in wps_process_cred_mac_addr()
201 wpa_printf(MSG_DEBUG, "WPS: MAC Address " MACSTR, MAC2STR(mac_addr)); in wps_process_cred_mac_addr()
202 os_memcpy(cred->mac_addr, mac_addr, ETH_ALEN); in wps_process_cred_mac_addr()
311 wps_process_cred_mac_addr(cred, attr->mac_addr) || in wps_process_cred()
337 wps_process_cred_mac_addr(cred, attr->mac_addr)) in wps_process_ap_settings()
Dwps.h60 u8 mac_addr[ETH_ALEN]; member
92 u8 mac_addr[ETH_ALEN]; member
268 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *psk,
309 void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
512 const u8 *mac_addr; member
528 const u8 *mac_addr; member
835 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid);
Dwps_registrar.c143 int (*new_psk_cb)(void *ctx, const u8 *mac_addr, const u8 *psk,
149 void (*reg_success_cb)(void *ctx, const u8 *mac_addr,
261 if (os_memcmp(dev->dev.mac_addr, addr, ETH_ALEN) == 0) in wps_device_get()
271 os_memcpy(dst->mac_addr, src->mac_addr, ETH_ALEN); in wps_device_clone_data()
292 d = wps_device_get(reg, dev->mac_addr); in wps_device_store()
1167 static int wps_cb_new_psk(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_new_psk() argument
1173 return reg->new_psk_cb(reg->cb_ctx, mac_addr, psk, psk_len); in wps_cb_new_psk()
1188 static void wps_cb_reg_success(struct wps_registrar *reg, const u8 *mac_addr, in wps_cb_reg_success() argument
1195 reg->reg_success_cb(reg->cb_ctx, mac_addr, uuid_e, dev_pw, dev_pw_len); in wps_cb_reg_success()
1534 MAC2STR(cred->mac_addr)); in wps_build_cred_mac_addr()
[all …]
Dwps_enrollee.c317 wpabuf_put_data(msg, wps->wps->dev.mac_addr, ETH_ALEN); in wps_build_cred_mac_addr()
675 if (os_memcmp(wps->cred.mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_cred_e()
679 ")", MAC2STR(wps->cred.mac_addr), in wps_process_cred_e()
680 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_cred_e()
797 if (os_memcmp(cred->mac_addr, wps->wps->dev.mac_addr, ETH_ALEN) != in wps_process_ap_settings_e()
801 ")", MAC2STR(cred->mac_addr), in wps_process_ap_settings_e()
802 MAC2STR(wps->wps->dev.mac_addr)); in wps_process_ap_settings_e()
Dwps_validate.c551 static int wps_validate_mac_addr(const u8 *mac_addr, int mandatory) in wps_validate_mac_addr() argument
553 if (mac_addr == NULL) { in wps_validate_mac_addr()
561 if (mac_addr[0] & 0x01) { in wps_validate_mac_addr()
563 "attribute value " MACSTR, MAC2STR(mac_addr)); in wps_validate_mac_addr()
1045 wps_validate_mac_addr(attr->mac_addr, 1) || in wps_validate_cred()
1394 wps_validate_mac_addr(attr->mac_addr, 1) || in wps_validate_m1()
2020 wps_validate_mac_addr(attr->mac_addr, !ap) || in wps_validate_m7_encr()
2130 wps_validate_mac_addr(attr->mac_addr, ap) || in wps_validate_m8_encr()
Dwps_attr_parse.h49 const u8 *mac_addr; /* ETH_ALEN (6) octets */ member
Dwps_common.c473 void uuid_gen_mac_addr(const u8 *mac_addr, u8 *uuid) in uuid_gen_mac_addr() argument
488 addr[1] = mac_addr; in uuid_gen_mac_addr()
/hal_espressif-3.6.0/examples/network/simple_sniffer/main/
Dsimple_sniffer_example_main.c99 uint8_t mac_addr[6] = {0}; in eth_event_handler() local
105 esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr); in eth_event_handler()
109 mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]); in eth_event_handler()
/hal_espressif-3.6.0/components/esp_eth/test_apps/main/
Desp_eth_test.c125 uint8_t mac_addr[6] = {}; variable
126 TEST_ASSERT_EQUAL(ESP_OK, mac->get_addr(mac, mac_addr));
127 TEST_ASSERT_BITS(0b00000011, 0b00, mac_addr[0]); // Check UL&IG, should be UI
128 mac_addr[5] ^= mac_addr[4];
129 TEST_ASSERT_EQUAL(ESP_OK, mac->set_addr(mac, mac_addr));
132 TEST_ASSERT_EQUAL(0, memcmp(mac_addr, new_mac_addr, 6));
/hal_espressif-3.6.0/docs/en/api-reference/network/
Desp_eth.rst310 uint8_t mac_addr[6] = {0};
316 esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr);
319mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]);
411 uint8_t mac_addr[6];
412 memset(mac_addr, 0, sizeof(mac_addr));
413 esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr);
415 mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]);
/hal_espressif-3.6.0/components/esp_wifi/include/
Desp_now.h97 typedef void (*esp_now_recv_cb_t)(const uint8_t *mac_addr, const uint8_t *data, int data_len);
104 typedef void (*esp_now_send_cb_t)(const uint8_t *mac_addr, esp_now_send_status_t status);
/hal_espressif-3.6.0/tools/unit-test-app/components/test_utils/
Dtest_utils.c103 bool unity_util_convert_mac_from_string(const char* mac_str, uint8_t *mac_addr) in unity_util_convert_mac_from_string() argument
114 mac_addr[loop] = tmp; in unity_util_convert_mac_from_string()
/hal_espressif-3.6.0/examples/ethernet/iperf/main/
Dcmd_ethernet.c51 uint8_t mac_addr[6]; in eth_cmd_control() local
52 esp_eth_ioctl(eth_handle, ETH_CMD_G_MAC_ADDR, mac_addr); in eth_cmd_control()
53 printf("HW ADDR: " MACSTR "\r\n", MAC2STR(mac_addr)); in eth_cmd_control()
/hal_espressif-3.6.0/components/hal/
Demac_hal.c325 void emac_hal_set_address(emac_hal_context_t *hal, uint8_t *mac_addr) in emac_hal_set_address() argument
328 if (!(mac_addr[0] & 0x01)) { in emac_hal_set_address()
329 emac_ll_set_addr(hal->mac_regs, mac_addr); in emac_hal_set_address()
/hal_espressif-3.6.0/components/esp_hw_support/
Dcomponent.mk13 mac_addr.o \
DCMakeLists.txt16 "mac_addr.c"
/hal_espressif-3.6.0/components/wpa_supplicant/src/rsn_supp/
Dwpa_ie.h26 const u8 *mac_addr; member
/hal_espressif-3.6.0/components/wpa_supplicant/src/ap/
Dwpa_auth_ie.h20 const u8 *mac_addr; member
/hal_espressif-3.6.0/tools/unit-test-app/components/test_utils/include/
Dtest_utils.h233 bool unity_util_convert_mac_from_string(const char* mac_str, uint8_t *mac_addr);
/hal_espressif-3.6.0/components/hal/include/hal/
Demac_hal.h213 void emac_hal_set_address(emac_hal_context_t *hal, uint8_t *mac_addr);

12