diff options
author | Michael Straube <straube.linux@gmail.com> | 2022-01-02 14:11:31 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-03 14:31:07 +0100 |
commit | 7e8785d5e40bcf9fbb17cd8eedb94017882c4891 (patch) | |
tree | 91dff629eb6bd8864ea22775930bf3b3be3e646b /drivers/staging | |
parent | 65935347844eba55c2182edac668090ad5b184c9 (diff) |
staging: r8188eu: remove MAX_CHANNEL_NUM_2G
The constants MAX_CHANNEL_NUM_2G and MAX_CHANNEL_NUM have the same
value. Remove MAX_CHANNEL_NUM_2G and fix the place where it is used.
Acked-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220102131141.12310-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/r8188eu/include/rtw_mlme_ext.h | 2 | ||||
-rw-r--r-- | drivers/staging/r8188eu/include/rtw_rf.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/r8188eu/include/rtw_mlme_ext.h b/drivers/staging/r8188eu/include/rtw_mlme_ext.h index 5b307ad3afa5..afdbc5e28fca 100644 --- a/drivers/staging/r8188eu/include/rtw_mlme_ext.h +++ b/drivers/staging/r8188eu/include/rtw_mlme_ext.h @@ -163,7 +163,7 @@ struct rt_channel_plan { }; struct rt_channel_plan_2g { - unsigned char Channel[MAX_CHANNEL_NUM_2G]; + unsigned char Channel[MAX_CHANNEL_NUM]; unsigned char Len; }; diff --git a/drivers/staging/r8188eu/include/rtw_rf.h b/drivers/staging/r8188eu/include/rtw_rf.h index d0a408b903dc..2308a00b5dec 100644 --- a/drivers/staging/r8188eu/include/rtw_rf.h +++ b/drivers/staging/r8188eu/include/rtw_rf.h @@ -19,11 +19,6 @@ #define RTL8711_RF_MAX_SENS 6 #define RTL8711_RF_DEF_SENS 4 -/* We now define the following channels as the max channels in each - * channel plan. */ -/* 2G, total 14 chnls */ -/* {1,2,3,4,5,6,7,8,9,10,11,12,13,14} */ -#define MAX_CHANNEL_NUM_2G 14 #define MAX_CHANNEL_NUM 14 /* 2.4 GHz only */ #define NUM_REGULATORYS 1 |