rename madwifi patch to madwifi-ng
[openwrt.git] / openwrt / package / wpa_supplicant / patches / 103-madwifi-ng.patch
1 diff -ruN wpa_supplicant-0.4.5-old/driver_madwifi.c wpa_supplicant-0.4.5-new/driver_madwifi.c
2 --- wpa_supplicant-0.4.5-old/driver_madwifi.c 2005-09-17 07:36:33.000000000 +0200
3 +++ wpa_supplicant-0.4.5-new/driver_madwifi.c 2005-10-23 14:08:45.000000000 +0200
4 @@ -27,11 +27,19 @@
5 #include "wpa_supplicant.h"
6 #include "wpa.h"
7
8 +#include <sys/types.h>
9 +#include <sys/socket.h>
10 +#include <linux/types.h>
11 +#include <linux/socket.h>
12 +#include <linux/if.h>
13 +#include <stdint.h>
14 +#include <linux/if_packet.h>
15 +#include <linux/netlink.h>
16 +#include <linux/rtnetlink.h>
17 +
18 #include <include/compat.h>
19 #include <net80211/ieee80211.h>
20 #ifdef WME_NUM_AC
21 -/* Assume this is built against BSD branch of madwifi driver. */
22 -#define MADWIFI_BSD
23 #include <net80211/_ieee80211.h>
24 #endif /* WME_NUM_AC */
25 #include <net80211/ieee80211_crypto.h>
26 @@ -78,19 +86,19 @@
27 "ioctl[IEEE80211_IOCTL_SETKEY]",
28 "ioctl[IEEE80211_IOCTL_GETKEY]",
29 "ioctl[IEEE80211_IOCTL_DELKEY]",
30 - NULL,
31 + "ioctl[IEEE80211_IOCTL_SETWMMPARAMS]",
32 "ioctl[IEEE80211_IOCTL_SETMLME]",
33 - NULL,
34 + "ioctl[IEEE80211_IOCTL_GETCHANINFO]",
35 "ioctl[IEEE80211_IOCTL_SETOPTIE]",
36 "ioctl[IEEE80211_IOCTL_GETOPTIE]",
37 "ioctl[IEEE80211_IOCTL_ADDMAC]",
38 NULL,
39 "ioctl[IEEE80211_IOCTL_DELMAC]",
40 - NULL,
41 - "ioctl[IEEE80211_IOCTL_CHANLIST]",
42 + "ioctl[IEEE80211_IOCTL_GETCHANLIST]",
43 + "ioctl[IEEE80211_IOCTL_SETCHANLIST]",
44 };
45 if (IEEE80211_IOCTL_SETPARAM <= op &&
46 - op <= IEEE80211_IOCTL_CHANLIST)
47 + op <= IEEE80211_IOCTL_SETCHANLIST)
48 perror(opnames[op - SIOCIWFIRSTPRIV]);
49 else
50 perror("ioctl[unknown???]");
This page took 0.048088 seconds and 5 git commands to generate.