Do not use virtual driver_ops for wpa_supplicant AP mode

Initialize struct hostapd_data driver context with the same driver
information that was initialized earlier during wpa_supplicant start.
This allows the AP mode operations to be completed directly with the
same calls in AP code without having to maintain a separate translation
layer between the AP and station mode driver context.
This commit is contained in:
Jouni Malinen 2009-12-25 19:47:08 +02:00
parent 8c5fe31fe8
commit a911a6e61f
2 changed files with 7 additions and 294 deletions

View file

@ -77,9 +77,6 @@ extern struct wpa_driver_ops wpa_driver_atheros_ops; /* driver_atheros.c */
#ifdef CONFIG_DRIVER_NONE
extern struct wpa_driver_ops wpa_driver_none_ops; /* driver_none.c */
#endif /* CONFIG_DRIVER_NONE */
#ifdef CONFIG_AP
extern struct wpa_driver_ops ap_driver_ops; /* wpa_supplicant/ap.c */
#endif /* CONFIG_AP */
struct wpa_driver_ops *wpa_drivers[] =
@ -144,8 +141,5 @@ struct wpa_driver_ops *wpa_drivers[] =
#ifdef CONFIG_DRIVER_NONE
&wpa_driver_none_ops,
#endif /* CONFIG_DRIVER_NONE */
#ifdef CONFIG_AP
&ap_driver_ops,
#endif /* CONFIG_AP */
NULL
};