mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
update
This commit is contained in:
parent
f8449c5ae3
commit
01d402f038
16 changed files with 2552 additions and 2324 deletions
|
|
@ -69,7 +69,7 @@ extern struct netif xnetif[NET_IF_NUM];
|
|||
/******************************************************
|
||||
* Variables Definitions
|
||||
******************************************************/
|
||||
static internal_scan_handler_t scan_result_handler_ptr = {
|
||||
internal_scan_handler_t scan_result_handler_ptr = {
|
||||
0, 0, 0, RTW_FALSE, 0, 0, 0, 0, 0 };
|
||||
static internal_join_result_t* join_user_data;
|
||||
rtw_mode_t wifi_mode = RTW_MODE_NONE;
|
||||
|
|
@ -1260,8 +1260,7 @@ int wifi_start_ap_with_hidden_ssid(char *ssid, rtw_security_t security_type,
|
|||
}
|
||||
*/
|
||||
|
||||
void wifi_scan_each_report_hdl(char* buf, int buf_len, int flags,
|
||||
void* userdata) {
|
||||
void wifi_scan_each_report_hdl(char* buf, int buf_len, int flags, void* userdata) {
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
int insert_pos = 0;
|
||||
|
|
|
|||
|
|
@ -75,16 +75,16 @@ typedef struct {
|
|||
typedef struct internal_scan_handler{
|
||||
rtw_scan_result_t** pap_details;
|
||||
rtw_scan_result_t * ap_details;
|
||||
int scan_cnt;
|
||||
rtw_bool_t scan_complete;
|
||||
int scan_cnt;
|
||||
rtw_bool_t scan_complete;
|
||||
unsigned char max_ap_size;
|
||||
rtw_scan_result_handler_t gscan_result_handler;
|
||||
#if SCAN_USE_SEMAPHORE
|
||||
void *scan_semaphore;
|
||||
void * scan_semaphore;
|
||||
#else
|
||||
int scan_running;
|
||||
int scan_running;
|
||||
#endif
|
||||
void* user_data;
|
||||
void * user_data;
|
||||
unsigned int scan_start_time;
|
||||
} internal_scan_handler_t;
|
||||
|
||||
|
|
|
|||
|
|
@ -449,15 +449,17 @@ int wext_get_rssi(const char *ifname, int *rssi) {
|
|||
return ret;
|
||||
}
|
||||
|
||||
int wext_set_pscan_channel(const char *ifname, __u8 *ch, __u8 *pscan_config,
|
||||
__u8 length) {
|
||||
int wext_set_pscan_channel(const char *ifname,
|
||||
__u8 *ch,
|
||||
__u8 *pscan_config,
|
||||
__u8 length) {
|
||||
struct iwreq iwr;
|
||||
int ret = -1;
|
||||
__u8 *para;
|
||||
int i = 0;
|
||||
memset(&iwr, 0, sizeof(iwr));
|
||||
//Format of para:function_name num_channel chan1... pscan_config1 ...
|
||||
para = pvPortMalloc((length + length + 1) + 12);//size:num_chan + num_time + length + function_name
|
||||
para = pvPortMalloc((length + length + 1) + 12); //size:num_chan + num_time + length + function_name
|
||||
if (para != NULL) {
|
||||
//Cmd
|
||||
snprintf((char*) para, 12, "PartialScan");
|
||||
|
|
@ -480,6 +482,7 @@ int wext_set_pscan_channel(const char *ifname, __u8 *ch, __u8 *pscan_config,
|
|||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
int wext_set_channel(const char *ifname, __u8 ch) {
|
||||
struct iwreq iwr;
|
||||
memset(&iwr, 0, sizeof(iwr));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue