2010-06-21 17:39:51 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*
|
|
|
|
* File: channel.h
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CHANNEL_H_
|
|
|
|
#define _CHANNEL_H_
|
|
|
|
|
|
|
|
#include "ttype.h"
|
|
|
|
#include "card.h"
|
|
|
|
|
|
|
|
typedef struct tagSChannelTblElement {
|
2013-03-18 17:44:41 +00:00
|
|
|
unsigned char byChannelNumber;
|
|
|
|
unsigned int uFrequency;
|
|
|
|
bool bValid;
|
|
|
|
unsigned char byMAP;
|
|
|
|
} SChannelTblElement, *PSChannelTblElement;
|
2010-06-21 17:39:51 +00:00
|
|
|
|
2010-08-01 15:15:50 +00:00
|
|
|
bool is_channel_valid(unsigned int CountryCode);
|
2010-06-21 17:39:51 +00:00
|
|
|
void init_channel_table(void *pDeviceHandler);
|
2010-06-24 18:02:27 +00:00
|
|
|
unsigned char get_channel_mapping(void *pDeviceHandler, unsigned char byChannelNumber, CARD_PHY_TYPE ePhyType);
|
2010-08-01 15:15:50 +00:00
|
|
|
bool channel_get_list(unsigned int uCountryCodeIdx, unsigned char *pbyChannelTable);
|
2010-06-24 18:02:27 +00:00
|
|
|
unsigned char get_channel_number(void *pDeviceHandler, unsigned char byChannelIndex);
|
2010-08-01 15:15:50 +00:00
|
|
|
bool set_channel(void *pDeviceHandler, unsigned int uConnectionChannel);
|
2010-06-21 17:39:51 +00:00
|
|
|
void set_country_info(void *pDeviceHandler, CARD_PHY_TYPE ePHYType, void *pIE);
|
2010-06-24 18:02:27 +00:00
|
|
|
unsigned char set_support_channels(void *pDeviceHandler, unsigned char *pbyIEs);
|
2010-06-21 17:39:51 +00:00
|
|
|
void set_country_IE(void *pDeviceHandler, void *pIE);
|
2010-08-01 15:15:50 +00:00
|
|
|
bool get_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
|
2013-03-18 17:44:41 +00:00
|
|
|
unsigned char *pbyChannelNumber, unsigned char *pbyMap);
|
2010-06-21 17:39:51 +00:00
|
|
|
void set_channel_map_info(void *pDeviceHandler, unsigned int uChannelIndex,
|
2013-03-18 17:44:41 +00:00
|
|
|
unsigned char byMap);
|
2010-06-21 17:39:51 +00:00
|
|
|
void clear_channel_map_info(void *pDeviceHandler);
|
2010-06-24 18:02:27 +00:00
|
|
|
unsigned char auto_channel_select(void *pDeviceHandler, CARD_PHY_TYPE ePHYType);
|
2010-06-21 17:39:51 +00:00
|
|
|
|
|
|
|
#endif /* _CHANNEL_H_ */
|