提交 3262af00 编写于 作者: H Himadri Pandya 提交者: Greg Kroah-Hartman

staging: rtl8192e: rename ChannelPlan[] to channel_array[] - style

Fix checkpatch.pl warning:
	CHECK: Avoid CamelCase: <ChannelPlan>
Signed-off-by: NHimadri Pandya <himadri18.07@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e4441911
......@@ -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;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册