#include <net/ethernet.h>
#include <math.h>
#include <stdio.h>
#include "iw_compat.h"
Go to the source code of this file.
Functions | |
void | iw_ether_ntop (const struct ether_addr *eth, char *buf) |
char * | iw_sawap_ntop (const struct sockaddr *sap, char *buf) |
void | iw_float2freq (double in, iwfreq *out) |
double | iw_freq2float (const iwfreq *in) |
int16_t | dbm2mw (int16_t in) |
int | iw_get_param_state (struct iw_param *par) |
This file contains functions for handling wireless ioctl() calls. It is mainly derived from iwlib.c from the wireless-tools package.
Definition in file iw_compat.c.
int16_t dbm2mw | ( | int16_t | in | ) |
Convert power values from dBm to mW.
Definition at line 98 of file iw_compat.c.
void iw_ether_ntop | ( | const struct ether_addr * | eth, | |
char * | buf | |||
) |
Display an Ethernet address (MAC) in readable format.
Definition at line 31 of file iw_compat.c.
void iw_float2freq | ( | double | in, | |
iwfreq * | out | |||
) |
Convert a floating point the our internal representation of frequencies. The kernel doesn't want to hear about floating point, so we use this custom format instead.
Definition at line 74 of file iw_compat.c.
double iw_freq2float | ( | const iwfreq * | in | ) |
Convert our internal representation of frequencies to a floating point.
Definition at line 91 of file iw_compat.c.
int iw_get_param_state | ( | struct iw_param * | par | ) |
Return parameter state to set has_param value in struct wireless_info. This function is not in the original iwlib.c.
par | iw_param to retrieve state |
Definition at line 111 of file iw_compat.c.
char* iw_sawap_ntop | ( | const struct sockaddr * | sap, | |
char * | buf | |||
) |
Display an wireless access point socket address in readable format. Note : 0x44 is an accident of history, that's what the Orinoco/PrismII chipset report, and the driver doesn't filter it.
Definition at line 45 of file iw_compat.c.