Lines Matching refs:data
191 uint32_t *data; in whd_wifi_init_ap() local
240 … data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)4, IOVAR_STR_APSTA); in whd_wifi_init_ap()
241 CHECK_IOCTL_BUFFER(data); in whd_wifi_init_ap()
242 *data = 0; in whd_wifi_init_ap()
272 data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)4, IOVAR_STR_BSS); in whd_wifi_init_ap()
273 CHECK_IOCTL_BUFFER(data); in whd_wifi_init_ap()
277 *data = htod32( (uint32_t)CHIP_AP_INTERFACE ); in whd_wifi_init_ap()
281 *data = htod32( (uint32_t)bss_index ); in whd_wifi_init_ap()
359 data = (uint32_t *)whd_cdc_get_ioctl_buffer(whd_driver, &buffer, (uint16_t)4); in whd_wifi_init_ap()
360 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
361 *data = 1; /* Turn on AP */ in whd_wifi_init_ap()
387 …data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)40, "bsscfg:" IOVAR_STR… in whd_wifi_init_ap()
388 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
391 data[0] = htod32( (uint32_t)CHIP_AP_INTERFACE ); /* Set the bsscfg index */ in whd_wifi_init_ap()
395 data[0] = htod32(bss_index); /* Set the bsscfg index */ in whd_wifi_init_ap()
397 data[1] = htod32(ssid->length); /* Set the ssid length */ in whd_wifi_init_ap()
398 memcpy(&data[2], (uint8_t *)ssid->value, ssid->length); in whd_wifi_init_ap()
409 data = (uint32_t *)whd_cdc_get_ioctl_buffer(whd_driver, &buffer, (uint16_t)4); in whd_wifi_init_ap()
410 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
411 *data = htod32(channel); in whd_wifi_init_ap()
415 …data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)8, "bsscfg:" IOVAR_STR_… in whd_wifi_init_ap()
416 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
419 data[0] = htod32( (uint32_t)CHIP_AP_INTERFACE ); in whd_wifi_init_ap()
423 data[0] = htod32(bss_index); in whd_wifi_init_ap()
427 data[1] = htod32( (uint32_t)( (auth_type & (~WPS_ENABLED) ) | SES_OW_ENABLED ) ); in whd_wifi_init_ap()
431 data[1] = htod32( (uint32_t)auth_type & 0xFF ); in whd_wifi_init_ap()
452 data = in whd_wifi_init_ap()
454 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
455 data[0] = htod32( (uint32_t)CHIP_AP_INTERFACE ); in whd_wifi_init_ap()
456 data[1] = htod32( (uint32_t)(auth_type == WHD_SECURITY_WPA_TKIP_PSK) ? in whd_wifi_init_ap()
479 data = in whd_wifi_init_ap()
481 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_init_ap()
484 data[0] = htod32( (uint32_t)CHIP_AP_INTERFACE ); in whd_wifi_init_ap()
488 data[0] = htod32(bss_index); in whd_wifi_init_ap()
492 data[1] = in whd_wifi_init_ap()
499 data[1] = in whd_wifi_init_ap()
540 …data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)4, IOVAR_STR_SAE_PWE_LO… in whd_wifi_init_ap()
541 CHECK_IOCTL_BUFFER(data); in whd_wifi_init_ap()
542 *data = htod32( (uint32_t)PWE_LOOP_COUNT ); in whd_wifi_init_ap()
550 …data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)4, IOVAR_STR_2G_MULTICA… in whd_wifi_init_ap()
551 CHECK_IOCTL_BUFFER(data); in whd_wifi_init_ap()
552 *data = htod32( (uint32_t)RATE_SETTING_11_MBPS ); in whd_wifi_init_ap()
569 uint32_t *data; in whd_wifi_start_ap() local
589 data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)8, IOVAR_STR_BSS); in whd_wifi_start_ap()
590 CHECK_IOCTL_BUFFER_WITH_SEMAPHORE(data, &ap->whd_wifi_sleep_flag); in whd_wifi_start_ap()
591 data[0] = htod32(ifp->bsscfgidx); in whd_wifi_start_ap()
592 data[1] = htod32( (uint32_t)BSS_UP ); in whd_wifi_start_ap()
606 uint32_t *data; in whd_wifi_stop_ap() local
633 data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)4, IOVAR_STR_BSS); in whd_wifi_stop_ap()
634 CHECK_IOCTL_BUFFER(data); in whd_wifi_stop_ap()
635 *data = ifp->bsscfgidx; in whd_wifi_stop_ap()
647 *data = dtoh32(*(uint32_t *)whd_buffer_get_current_piece_data_pointer(whd_driver, response) ); in whd_wifi_stop_ap()
648 CHECK_PACKET_NULL(data, WHD_NO_REGISTER_FUNCTION_POINTER); in whd_wifi_stop_ap()
649 if (data[0] != (uint32_t)BSS_UP) in whd_wifi_stop_ap()
661 data = (uint32_t *)whd_cdc_get_iovar_buffer(whd_driver, &buffer, (uint16_t)8, IOVAR_STR_BSS); in whd_wifi_stop_ap()
662 CHECK_IOCTL_BUFFER(data); in whd_wifi_stop_ap()
663 data[0] = htod32(ifp->bsscfgidx); in whd_wifi_stop_ap()
664 data[1] = htod32( (uint32_t)BSS_DOWN ); in whd_wifi_stop_ap()
678 data = (uint32_t *)whd_cdc_get_ioctl_buffer(whd_driver, &buffer, (uint16_t)4); in whd_wifi_stop_ap()
679 CHECK_IOCTL_BUFFER(data); in whd_wifi_stop_ap()
680 *data = 0; in whd_wifi_stop_ap()