Make hostapd_drivers const.

This commit is contained in:
matt 2008-02-20 18:17:53 +00:00
parent 28dacb0e3a
commit cd1870ce29
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,