-Index: madwifi-dfs-r3053/net80211/ieee80211_scan_ap.c
-===================================================================
---- madwifi-dfs-r3053.orig/net80211/ieee80211_scan_ap.c 2007-12-13 05:25:10.554226918 +0100
-+++ madwifi-dfs-r3053/net80211/ieee80211_scan_ap.c 2007-12-13 05:25:12.858358223 +0100
-@@ -46,12 +46,16 @@
- #include <linux/netdevice.h>
- #include <linux/init.h>
- #include <linux/delay.h>
--#include <linux/sort.h>
--
- #include "if_media.h"
-
- #include <net80211/ieee80211_var.h>
-
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
-+#include "sort.c"
-+#else
-+#include <linux/sort.h>
-+#endif
-+
- #define AP_PURGE_SCANS 2 /* age for purging entries (scans) */
- #define RSSI_LPF_LEN 10
- #define RSSI_EP_MULTIPLIER (1<<7) /* pow2 to optimize out * and / */
-Index: madwifi-dfs-r3053/net80211/sort.c
-===================================================================
---- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ madwifi-dfs-r3053/net80211/sort.c 2007-12-13 05:25:12.862358452 +0100