**************************************************************
This file provides a support interface for wl_api.
Definition in file wl_util.h.
#include "top_defs.h"
#include <stdint.h>
#include <string.h>
#include "wl_api.h"
Go to the source code of this file.
Defines | |
#define | FALSE 0 |
#define | NET_SET_BSSID(net, xbssid) |
#define | NET_SET_SSID(net, xssid, ssid_len) |
#define | TRUE 1 |
Functions | |
char * | enc_type2str (enum wl_enc_type enc_type) WEAK_DECL |
int | equal_bssid (const struct wl_mac_addr_t *bssid1, const struct wl_mac_addr_t *bssid2) WEAK_DECL |
int | equal_ssid (const struct wl_ssid_t *ssid1, const struct wl_ssid_t *ssid2) WEAK_DECL |
char * | mac2str (uint8_t mac[6]) WEAK_DECL |
#define FALSE 0 |
Definition at line 56 of file wl_util.h.
Referenced by gs_button_4(), gui_connect_cb(), gui_display_getstring(), gui_get_scroll_box_focused_item(), gui_getstring(), and timer_sched_timeout().
#define NET_SET_BSSID | ( | net, | |||
xbssid | ) |
#define NET_SET_SSID | ( | net, | |||
xssid, | |||||
ssid_len | ) |
#define TRUE 1 |
Definition at line 52 of file wl_util.h.
Referenced by console_init(), console_init_silent(), gs_button_0(), gs_button_1(), gs_button_2(), gs_button_3(), gs_button_4(), gui_get_scroll_box_focused_item(), gui_getstring(), gui_init(), gui_status_up_cb(), init_ping_info(), timer_cancel_timeout(), timer_init(), and timer_poll().
char* enc_type2str | ( | enum wl_enc_type | enc_type | ) |
Definition at line 60 of file wl_util.c.
Referenced by gui_scan_cb().
00061 { 00062 switch(enc_type) { 00063 case ENC_TYPE_WEP: 00064 return "WEP"; 00065 case ENC_TYPE_CCMP: 00066 return "CCMP"; 00067 case ENC_TYPE_TKIP: 00068 return "TKIP"; 00069 default: 00070 return ""; 00071 }; 00072 }
int equal_bssid | ( | const struct wl_mac_addr_t * | bssid1, | |
const struct wl_mac_addr_t * | bssid2 | |||
) |
Definition at line 43 of file wl_util.c.
Referenced by find_best_candidate(), and gui_connect_cb().
00044 { 00045 if (memcmp(bssid1, bssid2, sizeof *bssid1) == 0) { 00046 return 1; 00047 } 00048 return 0; 00049 }
int equal_ssid | ( | const struct wl_ssid_t * | ssid1, | |
const struct wl_ssid_t * | ssid2 | |||
) |
Definition at line 34 of file wl_util.c.
Referenced by find_best_candidate().
00035 { 00036 if (ssid1->len == ssid2->len && 00037 (memcmp(ssid1->ssid, ssid2->ssid, ssid1->len) == 0)) { 00038 return 1; 00039 } 00040 return 0; 00041 }
char* mac2str | ( | uint8_t | mac[6] | ) |