Added a preliminary nl80211/cfg80211 driver interface for wpa_supplicant

driver_nl80211.c is based on driver_wext.c and it is still using Linux
wireless extensions for many functions. Over time, the new driver interface
code should be modified to use nl80211/cfg80211 for everything.
This commit is contained in:
Jouni Malinen 2008-06-06 16:55:42 +03:00
parent 3f3339dfe7
commit 3f5285e852
3 changed files with 2110 additions and 0 deletions

2098
src/drivers/driver_nl80211.c Normal file

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,9 @@
#ifdef CONFIG_DRIVER_WEXT #ifdef CONFIG_DRIVER_WEXT
extern struct wpa_driver_ops wpa_driver_wext_ops; /* driver_wext.c */ extern struct wpa_driver_ops wpa_driver_wext_ops; /* driver_wext.c */
#endif /* CONFIG_DRIVER_WEXT */ #endif /* CONFIG_DRIVER_WEXT */
#ifdef CONFIG_DRIVER_NL80211
extern struct wpa_driver_ops wpa_driver_nl80211_ops; /* driver_nl80211.c */
#endif /* CONFIG_DRIVER_NL80211 */
#ifdef CONFIG_DRIVER_HOSTAP #ifdef CONFIG_DRIVER_HOSTAP
extern struct wpa_driver_ops wpa_driver_hostap_ops; /* driver_hostap.c */ extern struct wpa_driver_ops wpa_driver_hostap_ops; /* driver_hostap.c */
#endif /* CONFIG_DRIVER_HOSTAP */ #endif /* CONFIG_DRIVER_HOSTAP */
@ -74,6 +77,9 @@ struct wpa_driver_ops *wpa_supplicant_drivers[] =
#ifdef CONFIG_DRIVER_WEXT #ifdef CONFIG_DRIVER_WEXT
&wpa_driver_wext_ops, &wpa_driver_wext_ops,
#endif /* CONFIG_DRIVER_WEXT */ #endif /* CONFIG_DRIVER_WEXT */
#ifdef CONFIG_DRIVER_NL80211
&wpa_driver_nl80211_ops,
#endif /* CONFIG_DRIVER_NL80211 */
#ifdef CONFIG_DRIVER_HOSTAP #ifdef CONFIG_DRIVER_HOSTAP
&wpa_driver_hostap_ops, &wpa_driver_hostap_ops,
#endif /* CONFIG_DRIVER_HOSTAP */ #endif /* CONFIG_DRIVER_HOSTAP */

View file

@ -127,6 +127,12 @@ CFLAGS += -DCONFIG_DRIVER_WEXT
CONFIG_WIRELESS_EXTENSION=y CONFIG_WIRELESS_EXTENSION=y
endif endif
ifdef CONFIG_DRIVER_NL80211
CFLAGS += -DCONFIG_DRIVER_NL80211
OBJS_d += ../src/drivers/driver_nl80211.o
LIBS += -lnl
endif
ifdef CONFIG_DRIVER_PRISM54 ifdef CONFIG_DRIVER_PRISM54
CFLAGS += -DCONFIG_DRIVER_PRISM54 CFLAGS += -DCONFIG_DRIVER_PRISM54
OBJS_d += ../src/drivers/driver_prism54.o OBJS_d += ../src/drivers/driver_prism54.o