diff options
author | Himadri Pandya <himadri18.07@gmail.com> | 2019-01-12 22:21:48 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-15 16:11:50 +0100 |
commit | 3262af0024797b1945d94ff677e517769832d462 (patch) | |
tree | 6d0a5dd54adc45ff1a79bc195ce08d70ab16f2e9 /drivers/staging/rtl8192e | |
parent | e4441911d9694a177be30eb77adf54d511ae192f (diff) | |
download | linux-stable-3262af0024797b1945d94ff677e517769832d462.tar.gz linux-stable-3262af0024797b1945d94ff677e517769832d462.tar.bz2 linux-stable-3262af0024797b1945d94ff677e517769832d462.zip |
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>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r-- | drivers/staging/rtl8192e/dot11d.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c index 687deac19796..9116d16857c2 100644 --- a/drivers/staging/rtl8192e/dot11d.c +++ b/drivers/staging/rtl8192e/dot11d.c @@ -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; } } |