pandora-wifi: Update the TI WiLink4 based driver to the latest code and mark it as...
[openpandora.oe.git] / recipes / pandora-system / pandora-wifi / 0005-More-WEXT-cleanup.patch
1 From 1e9fdd78ae68e38ebfccdbdf40fede86f806e641 Mon Sep 17 00:00:00 2001
2 From: David-John Willis <John.Willis@Distant-earth.com>
3 Date: Fri, 28 Aug 2009 14:10:34 +0100
4 Subject: [PATCH 5/5] More WEXT cleanup.
5
6 ---
7  sta_dk_4_0_4_32/pform/linux/src/iw_ioctl.c |   18 +++++++++---------
8  1 files changed, 9 insertions(+), 9 deletions(-)
9
10 diff --git a/sta_dk_4_0_4_32/pform/linux/src/iw_ioctl.c b/sta_dk_4_0_4_32/pform/linux/src/iw_ioctl.c
11 index a38efc9..a17b2f6 100755
12 --- a/sta_dk_4_0_4_32/pform/linux/src/iw_ioctl.c
13 +++ b/sta_dk_4_0_4_32/pform/linux/src/iw_ioctl.c
14 @@ -27,7 +27,6 @@
15  #include <net/iw_handler.h>
16  #include <net/ieee80211.h>
17  
18 -#include "iw_ioctl.h"
19  #include "osAdapter.h"
20  #include "tiioctl.h"
21  #include "paramOut.h"
22 @@ -119,6 +118,11 @@ void init_scan_params(void)
23      iw_scanPolicy.bandScanPolicy[ 0 ].immediateScanMethod.method.basicMethodParams.probReqParams.txPowerDbm = 1;
24  }
25  
26 +static int iw_ioctl_commit(struct net_device *dev, struct iw_request_info *info, char *name, char *extra)
27 +{
28 +       return (OK);
29 +}
30 +
31  static int iw_get_name(struct net_device *dev,
32                            struct iw_request_info *info,
33                            char *name, char *extra)
34 @@ -1827,7 +1831,7 @@ static int iw_ioctl_siwmlme(struct net_device *dev,
35  
36  static const iw_handler ti_handler[] =
37  {
38 -       (iw_handler) NULL,                                              /* SIOCSIWCOMMIT */
39 +       (iw_handler) iw_ioctl_commit,                   /* SIOCSIWCOMMIT */
40         (iw_handler) iw_get_name,                               /* SIOCGIWNAME */
41         (iw_handler) NULL,                                              /* SIOCSIWNWID */
42         (iw_handler) NULL,                                              /* SIOCGIWNWID */
43 @@ -1843,18 +1847,13 @@ static const iw_handler ti_handler[] =
44         (iw_handler) NULL,                                              /* SIOCGIWPRIV */
45         (iw_handler) NULL,                                              /* SIOCSIWSTATS */
46         (iw_handler) NULL,                                              /* SIOCGIWSTATS */
47 -       (iw_handler) NULL,                                              /* SIOCSIWSPY */
48 -       (iw_handler) NULL,                                              /* SIOCGIWSPY */
49 -       iw_handler_set_thrspy,                                  /* SIOCSIWTHRSPY */
50 -       iw_handler_get_thrspy,                                  /* SIOCGIWTHRSPY */
51         iw_handler_set_spy,                                             /* SIOCSIWSPY */
52         iw_handler_get_spy,                                             /* SIOCGIWSPY */
53 -       (iw_handler) NULL,                                              /* -- hole -- */
54 -       (iw_handler) NULL,                                              /* -- hole -- */
55 +       iw_handler_set_thrspy,                                  /* SIOCSIWTHRSPY */
56 +       iw_handler_get_thrspy,                                  /* SIOCGIWTHRSPY */
57         (iw_handler) iw_ioctl_siwap,                    /* SIOCSIWAP */
58         (iw_handler) iw_ioctl_giwap,                    /* SIOCGIWAP */
59         (iw_handler) iw_ioctl_siwmlme,                  /* SIOCSIWMLME */
60 -       (iw_handler) NULL,                              /* -- hole -- */
61         (iw_handler) iw_ioctl_giwaplist,                /* SIOCGIWAPLIST - Deprecated */
62         (iw_handler) iw_ioctl_siwscan,                  /* SIOCSIWSCAN */
63         (iw_handler) iw_ioctl_giwscan,                  /* SIOCGIWSCAN */
64 @@ -1919,4 +1918,5 @@ static const struct iw_handler_def ti_iw_handler_def =
65  void tiwlan_iwhandler_init(struct net_device *dev)
66  {
67     dev->wireless_handlers = (struct iw_handler_def *) &ti_iw_handler_def;
68 +   printk("TIWLAN :: Wireless Extentions Active");
69  }
70 -- 
71 1.6.3.1
72