Moved rfc1042_header into driver_*.c that use it
authorJouni Malinen <jouni.malinen@atheros.com>
Fri, 9 Jan 2009 13:06:48 +0000 (15:06 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 9 Jan 2009 13:06:48 +0000 (15:06 +0200)
No need to share such a small buffer and make hostapd.[ch] more complex
with it.

hostapd/driver_hostap.c
hostapd/driver_nl80211.c
hostapd/hostapd.c
hostapd/hostapd.h

index 6586372..045909c 100644 (file)
@@ -42,6 +42,7 @@
 #include "hostap_common.h"
 #include "hw_features.h"
 
+static const u8 rfc1042_header[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 };
 
 struct hostap_driver_data {
        struct hostapd_data *hapd;
index 3ed7652..eb9dd2f 100644 (file)
@@ -46,6 +46,8 @@
 #define nl_handle_destroy nl_socket_free
 #endif /* CONFIG_LIBNL20 */
 
+static const u8 rfc1042_header[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 };
+
 enum ieee80211_msg_type {
        ieee80211_msg_normal = 0,
        ieee80211_msg_tx_callback_ack = 1,
index f5fe132..35b8edd 100644 (file)
@@ -59,8 +59,6 @@ struct hapd_interfaces {
        struct hostapd_iface **iface;
 };
 
-unsigned char rfc1042_header[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 };
-
 
 extern int wpa_debug_level;
 extern int wpa_debug_show_keys;
index e368aae..33c3e73 100644 (file)
@@ -22,8 +22,6 @@
 #include "hostapd_defs.h"
 #include "config.h"
 
-extern unsigned char rfc1042_header[6];
-
 struct wpa_driver_ops;
 struct wpa_ctrl_dst;
 struct radius_server_data;