Atmel Software Framework

util.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <wl_api.h>
#include "lwip/ip.h"
#include <util/console.h>

Macros

#define NET_SET_BSSID(net, xbssid)
 
#define NET_SET_SSID(net, xssid, ssid_len)
 

Functions

uint8_t ascii_to_key (char *outp, const char *inp)
 
char * enc_type2str (enum wl_enc_type enc_type)
 
int equal_bssid (const struct wl_mac_addr_t *bssid1, const struct wl_mac_addr_t *bssid2)
 
int equal_ssid (const struct wl_ssid_t *ssid1, const struct wl_ssid_t *ssid2)
 
const char * ip2str (struct ip_addr addr)
 
int join_argv (char *dst, size_t dst_len, int argc, char *argv[])
 
const char * mac2str (uint8_t mac[6])
 
void print_network (struct wl_network_t *wl_network)
 
void print_network_list (void)
 
void printbuf (const char *prefix, const void *data, size_t len)
 
const char * ssid2str (struct wl_ssid_t *ssid)
 
struct ip_addr str2ip (const char *str)
 

#define NET_SET_BSSID (   net,
  xbssid 
)
Value:
do { \
DE_MEMCPY(&(net)->bssid, &(xbssid), sizeof (xbssid)); \
} while (0)
#define NET_SET_SSID (   net,
  xssid,
  ssid_len 
)
Value:
do { \
DE_MEMCPY((net)->ssid.ssid, (xssid), (ssid_len)); \
(net)->ssid.len = (ssid_len); \
} while (0)

uint8_t ascii_to_key ( char *  outp,
const char *  inp 
)

References buf, NULL, and printk().

Referenced by cmd_setkey().

char* enc_type2str ( enum wl_enc_type  enc_type)
int equal_bssid ( const struct wl_mac_addr_t *  bssid1,
const struct wl_mac_addr_t *  bssid2 
)

Referenced by find_best_candidate().

int equal_ssid ( const struct wl_ssid_t *  ssid1,
const struct wl_ssid_t *  ssid2 
)

Referenced by find_best_candidate(), and select_net().

const char* ip2str ( struct ip_addr  addr)
int join_argv ( char *  dst,
size_t  dst_len,
int  argc,
char *  argv[] 
)

References i, and printk().

Referenced by cmd_connect().

const char* mac2str ( uint8_t  mac[6])
void print_network ( struct wl_network_t *  wl_network)

References mac2str(), printk(), and ssid2str().

Referenced by cmd_status(), and print_network_list().

void print_network_list ( void  )

References i, print_network(), and printk().

Referenced by cmd_scan().

void printbuf ( const char *  prefix,
const void *  data,
size_t  len 
)

References data, i, j, printk(), and s.

const char* ssid2str ( struct wl_ssid_t *  ssid)
struct ip_addr str2ip ( const char *  str)

References a(), b, c, out, and str.

Referenced by cmd_set_ip(), cmd_ttcp(), and init_ping_info().