Browse Source

Moved rfc1042_header into driver_*.c that use it

No need to share such a small buffer and make hostapd.[ch] more complex
with it.
Jouni Malinen 16 years ago
parent
commit
d200828b41
4 changed files with 3 additions and 4 deletions
  1. 1 0
      hostapd/driver_hostap.c
  2. 2 0
      hostapd/driver_nl80211.c
  3. 0 2
      hostapd/hostapd.c
  4. 0 2
      hostapd/hostapd.h

+ 1 - 0
hostapd/driver_hostap.c

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

+ 2 - 0
hostapd/driver_nl80211.c

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

+ 0 - 2
hostapd/hostapd.c

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

+ 0 - 2
hostapd/hostapd.h

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