mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-25 23:26:03 +08:00
staging: rtl8192e: rename ChannelPlan[] to channel_array[] - style
Fix checkpatch.pl warning: CHECK: Avoid CamelCase: <ChannelPlan> Signed-off-by: Himadri Pandya <himadri18.07@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e4441911d9
commit
3262af0024
@ -19,7 +19,7 @@ struct channel_list {
|
||||
u8 Len;
|
||||
};
|
||||
|
||||
static struct channel_list ChannelPlan[] = {
|
||||
static struct channel_list channel_array[] = {
|
||||
{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 36, 40, 44, 48, 52, 56, 60, 64,
|
||||
149, 153, 157, 161, 165}, 24},
|
||||
{{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, 11},
|
||||
@ -62,14 +62,14 @@ void Dot11d_Channelmap(u8 channel_plan, struct rtllib_device *ieee)
|
||||
|
||||
ieee->bGlobalDomain = false;
|
||||
|
||||
if (ChannelPlan[channel_plan].Len != 0) {
|
||||
if (channel_array[channel_plan].Len != 0) {
|
||||
memset(GET_DOT11D_INFO(ieee)->channel_map, 0,
|
||||
sizeof(GET_DOT11D_INFO(ieee)->channel_map));
|
||||
for (i = 0; i < ChannelPlan[channel_plan].Len; i++) {
|
||||
if (ChannelPlan[channel_plan].channel[i] < min_chan ||
|
||||
ChannelPlan[channel_plan].channel[i] > max_chan)
|
||||
for (i = 0; i < channel_array[channel_plan].Len; i++) {
|
||||
if (channel_array[channel_plan].channel[i] < min_chan ||
|
||||
channel_array[channel_plan].channel[i] > max_chan)
|
||||
break;
|
||||
GET_DOT11D_INFO(ieee)->channel_map[ChannelPlan
|
||||
GET_DOT11D_INFO(ieee)->channel_map[channel_array
|
||||
[channel_plan].channel[i]] = 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user