Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
channel.h File Reference
#include "ttype.h"
#include "card.h"

Go to the source code of this file.

Data Structures

struct  tagSChannelTblElement
 

Typedefs

typedef struct
tagSChannelTblElement 
SChannelTblElement
 
typedef struct
tagSChannelTblElement
PSChannelTblElement
 

Functions

bool is_channel_valid (unsigned int CountryCode)
 
void init_channel_table (void *pDeviceHandler)
 
unsigned char get_channel_mapping (void *pDeviceHandler, unsigned char byChannelNumber, CARD_PHY_TYPE ePhyType)
 
bool channel_get_list (unsigned int uCountryCodeIdx, unsigned char *pbyChannelTable)
 
unsigned char get_channel_number (void *pDeviceHandler, unsigned char byChannelIndex)
 
bool set_channel (void *pDeviceHandler, unsigned int uConnectionChannel)
 
void set_country_info (void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE)
 
unsigned char set_support_channels (void *pDeviceHandler, unsigned char *pbyIEs)
 
void set_country_IE (void *pDeviceHandler, void *pIE)
 
bool get_channel_map_info (void *pDeviceHandler, unsigned int uChannelIndex, unsigned char *pbyChannelNumber, unsigned char *pbyMap)
 
void set_channel_map_info (void *pDeviceHandler, unsigned int uChannelIndex, unsigned char byMap)
 
void clear_channel_map_info (void *pDeviceHandler)
 
unsigned char auto_channel_select (void *pDeviceHandler, CARD_PHY_TYPE ePHYType)
 

Typedef Documentation

Function Documentation

unsigned char auto_channel_select ( void pDeviceHandler,
CARD_PHY_TYPE  ePHYType 
)

Definition at line 779 of file channel.c.

bool channel_get_list ( unsigned int  uCountryCodeIdx,
unsigned char pbyChannelTable 
)

channel_get_list() - Get Available Channel List for a given country : The country code defined in country.h

Output: pbyChannelTable: (QWORD *) correspondent bit mask of available channels 0x0000000000000001 means channel 1 is supported 0x0000000000000003 means channel 1,2 are supported 0x000000000000000F means channel 1,2,..15 are supported

Definition at line 410 of file channel.c.

void clear_channel_map_info ( void pDeviceHandler)

Definition at line 770 of file channel.c.

bool get_channel_map_info ( void pDeviceHandler,
unsigned int  uChannelIndex,
unsigned char pbyChannelNumber,
unsigned char pbyMap 
)

Definition at line 748 of file channel.c.

unsigned char get_channel_mapping ( void pDeviceHandler,
unsigned char  byChannelNumber,
CARD_PHY_TYPE  ePhyType 
)

Definition at line 498 of file channel.c.

unsigned char get_channel_number ( void pDeviceHandler,
unsigned char  byChannelIndex 
)

Definition at line 513 of file channel.c.

void init_channel_table ( void pDeviceHandler)

Definition at line 420 of file channel.c.

bool is_channel_valid ( unsigned int  ChannelIndex)

is_channel_valid() - Is Country Channel Valid : defined as VT3253 MAC channel: 1 = 2.4G channel 1 2 = 2.4G channel 2 ... 14 = 2.4G channel 14 15 = 4.9G channel 183 16 = 4.9G channel 184 ..... Output: true if the specified 5GHz band is allowed to be used, false otherwise. 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22)

5G => Ch 7, 8, 9, 11, 12, 16, 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 (Value 23 ~ 56)

Definition at line 376 of file channel.c.

bool set_channel ( void pDeviceHandler,
unsigned int  uConnectionChannel 
)

set_channel() - Set NIC media channel

: The adapter to be set : Channel to be set

Return Value: true if succeeded; false if failed.

Definition at line 528 of file channel.c.

void set_channel_map_info ( void pDeviceHandler,
unsigned int  uChannelIndex,
unsigned char  byMap 
)

Definition at line 760 of file channel.c.

void set_country_IE ( void pDeviceHandler,
void pIE 
)

Definition at line 727 of file channel.c.

void set_country_info ( void pDeviceHandler,
CARD_PHY_TYPE  ePHYType,
void pIE 
)

set_country_info() - Set Channel Info of Country

Return Value: none.

Definition at line 605 of file channel.c.

unsigned char set_support_channels ( void pDeviceHandler,
unsigned char pbyIEs 
)

set_support_channels() - Set Support Channels IE defined in 802.11h

: device structure point

Return Value: none.

Definition at line 655 of file channel.c.