aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/vt6655/IEEE11h.c
diff options
context:
space:
mode:
authorCharles Clément <caratorn@gmail.com>2010-06-21 13:39:51 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-06-22 18:39:58 -0400
commit79566eb2df013f0ed20e548f4be0f8afbe78f9a3 (patch)
treede21b0c37eded01d1dd8f2bda4ad2e6a74c32be7 /drivers/staging/vt6655/IEEE11h.c
parent2a1a17498bcaea1580a4fa051286bc97d4c5e730 (diff)
Staging: vt6655: move channel mapping code from card.c to channel.c
Move functions managing the channel mapping to a new channel.c file, as done in the staging VT6656 driver. The function names contained in card.c were prefixed with CARD followed by the first letter of the return code, remove this and use more coherent function names. The following functions moved and were renamed: ChannelValid -> is_channel_valid CARDbSetChannel -> set_channel CARDvInitChannelTable -> init_channel_table CARDbyGetChannelMapping -> get_channel_mapping CARDvSetCountryInfo -> set_country_info CARDbySetSupportChannels -> set_support_channels CARDbChannelGetList -> channel_get_list CARDvSetCountryIE -> set_country_IE CARDbGetChannelMapInfo -> get_channel_map_info CARDvSetChannelMapInfo -> set_channel_map_info CARDvClearChannelMapInfo -> clear_channel_map_info CARDbyAutoChannelSelect -> auto_channel_select CARDbyGetChannelNumber -> get_channel_number Signed-off-by: Charles Clément <caratorn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/vt6655/IEEE11h.c')
-rw-r--r--drivers/staging/vt6655/IEEE11h.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/IEEE11h.c b/drivers/staging/vt6655/IEEE11h.c
index 7576289c490..e6ca81b4a8e 100644
--- a/drivers/staging/vt6655/IEEE11h.c
+++ b/drivers/staging/vt6655/IEEE11h.c
@@ -38,6 +38,7 @@
38#include "device.h" 38#include "device.h"
39#include "wmgr.h" 39#include "wmgr.h"
40#include "rxtx.h" 40#include "rxtx.h"
41#include "channel.h"
41 42
42/*--------------------- Static Definitions -------------------------*/ 43/*--------------------- Static Definitions -------------------------*/
43static int msglevel =MSG_LEVEL_INFO; 44static int msglevel =MSG_LEVEL_INFO;
@@ -245,7 +246,7 @@ IEEE11hbMgrRxAction (
245 // valid element id 246 // valid element id
246 CARDbChannelSwitch( pMgmt->pAdapter, 247 CARDbChannelSwitch( pMgmt->pAdapter,
247 pChannelSwitch->byMode, 248 pChannelSwitch->byMode,
248 CARDbyGetChannelMapping(pMgmt->pAdapter, pChannelSwitch->byChannel, pMgmt->eCurrentPHYMode), 249 get_channel_mapping(pMgmt->pAdapter, pChannelSwitch->byChannel, pMgmt->eCurrentPHYMode),
249 pChannelSwitch->byCount 250 pChannelSwitch->byCount
250 ); 251 );
251 } 252 }