Browse Source

Move HOSTAPD_MTU definition into driver_hostap.c

This moves the MTU definition into driver_hostap.c since it was really
meant to be specific to this driver. Since this was the last remaining
definition in hostapd_defs.h, remove that header file as unnecessary.
Jouni Malinen 15 years ago
parent
commit
fd7a5dd15f
3 changed files with 5 additions and 25 deletions
  1. 0 1
      hostapd/hostapd.h
  2. 0 24
      hostapd/hostapd_defs.h
  3. 5 0
      src/drivers/driver_hostap.c

+ 0 - 1
hostapd/hostapd.h

@@ -18,7 +18,6 @@
 #define HOSTAPD_H
 #define HOSTAPD_H
 
 
 #include "common.h"
 #include "common.h"
-#include "hostapd_defs.h"
 
 
 #define MAX_VLAN_ID 4094
 #define MAX_VLAN_ID 4094
 
 

+ 0 - 24
hostapd/hostapd_defs.h

@@ -1,24 +0,0 @@
-/*
- * hostapd / Initialization and configuration
- * Host AP kernel driver
- * Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Alternatively, this software may be distributed under the terms of BSD
- * license.
- *
- * See README and COPYING for more details.
- */
-
-#ifndef HOSTAPD_DEFS_H
-#define HOSTAPD_DEFS_H
-
-/* MTU to be set for the wlan#ap device; this is mainly needed for IEEE 802.1X
- * frames that might be longer than normal default MTU and they are not
- * fragmented */
-#define HOSTAPD_MTU 2290
-
-#endif /* HOSTAPD_DEFS_H */

+ 5 - 0
src/drivers/driver_hostap.c

@@ -35,6 +35,11 @@
 #include "../../hostapd/sta_flags.h"
 #include "../../hostapd/sta_flags.h"
 
 
 
 
+/* MTU to be set for the wlan#ap device; this is mainly needed for IEEE 802.1X
+ * frames that might be longer than normal default MTU and they are not
+ * fragmented */
+#define HOSTAPD_MTU 2290
+
 static const u8 rfc1042_header[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 };
 static const u8 rfc1042_header[6] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 };
 
 
 struct hostap_driver_data {
 struct hostap_driver_data {