Make hostapd_drivers const.
This commit is contained in:
parent
28dacb0e3a
commit
cd1870ce29
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#define MAX_STA_COUNT 2007
|
#define MAX_STA_COUNT 2007
|
||||||
|
|
||||||
extern struct wpa_driver_ops *hostapd_drivers[];
|
extern const struct wpa_driver_ops * const hostapd_drivers[];
|
||||||
|
|
||||||
|
|
||||||
static int hostapd_config_read_vlan_file(struct hostapd_bss_config *bss,
|
static int hostapd_config_read_vlan_file(struct hostapd_bss_config *bss,
|
||||||
|
|
|
@ -28,7 +28,7 @@ extern struct wpa_driver_ops wpa_driver_prism54_ops; /* driver_prism54.c */
|
||||||
extern struct wpa_driver_ops wpa_driver_madwifi_ops; /* driver_madwifi.c */
|
extern struct wpa_driver_ops wpa_driver_madwifi_ops; /* driver_madwifi.c */
|
||||||
#endif /* CONFIG_DRIVER_MADWIFI */
|
#endif /* CONFIG_DRIVER_MADWIFI */
|
||||||
#ifdef CONFIG_DRIVER_BSD
|
#ifdef CONFIG_DRIVER_BSD
|
||||||
extern struct wpa_driver_ops wpa_driver_bsd_ops; /* driver_bsd.c */
|
extern const struct wpa_driver_ops wpa_driver_bsd_ops; /* driver_bsd.c */
|
||||||
#endif /* CONFIG_DRIVER_BSD */
|
#endif /* CONFIG_DRIVER_BSD */
|
||||||
#ifdef CONFIG_DRIVER_WIRED
|
#ifdef CONFIG_DRIVER_WIRED
|
||||||
extern struct wpa_driver_ops wpa_driver_wired_ops; /* driver_wired.c */
|
extern struct wpa_driver_ops wpa_driver_wired_ops; /* driver_wired.c */
|
||||||
|
@ -38,7 +38,7 @@ extern struct wpa_driver_ops wpa_driver_test_ops; /* driver_test.c */
|
||||||
#endif /* CONFIG_DRIVER_TEST */
|
#endif /* CONFIG_DRIVER_TEST */
|
||||||
|
|
||||||
|
|
||||||
struct wpa_driver_ops *hostapd_drivers[] =
|
const struct wpa_driver_ops * const hostapd_drivers[] =
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_DRIVER_HOSTAP
|
#ifdef CONFIG_DRIVER_HOSTAP
|
||||||
&wpa_driver_hostap_ops,
|
&wpa_driver_hostap_ops,
|
||||||
|
|
Loading…
Reference in New Issue