diff options
author | Hari Prasath Gujulan Elango <hgujulan@visteon.com> | 2015-06-01 12:43:01 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-08 20:38:56 (GMT) |
commit | ed701c4ab2b9719851a97e841907fec283d6a2bb (patch) | |
tree | 619089f0c6e8aa5d7542953c633e68e59441ffc5 /drivers/staging/rtl8188eu/include | |
parent | 6ed977428a7e46f860f3e7a2d878dc8dd023202b (diff) | |
download | linux-ed701c4ab2b9719851a97e841907fec283d6a2bb.tar.xz |
staging: rtl8188eu: use table to get channel plan from country code
Use a table to get a channel plan from a given country code.This was a
TODO mentioned as a comment in the driver.
Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/include')
-rw-r--r-- | drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h b/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h index 2bebf46..2bd11ac 100644 --- a/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h +++ b/drivers/staging/rtl8188eu/include/rtw_mlme_ext.h @@ -191,6 +191,14 @@ struct rt_channel_plan_map { unsigned char Index2G; }; +static const struct { + int channel_plan; + char *name; +} channel_table[] = { { RT_CHANNEL_DOMAIN_FCC, "US" }, + { RT_CHANNEL_DOMAIN_ETSI, "EU" }, + { RT_CHANNEL_DOMAIN_MKK, "JP" }, + { RT_CHANNEL_DOMAIN_CHINA, "CN"} }; + enum Associated_AP { atherosAP = 0, broadcomAP = 1, |