1 From 1f1f727cb943b9abd8e279c6b9b45ae29b6a14f6 Mon Sep 17 00:00:00 2001
2 From: David-John Willis <John.Willis@Distant-earth.com>
3 Date: Thu, 11 Jun 2009 10:00:13 +0100
4 Subject: [PATCH 3/5] Oooops, now lets try something that compiles ;-)
7 sta_dk_4_0_4_32/pform/linux/src/iw_ioctl.c | 73 ++++++++++++++--------------
8 1 files changed, 36 insertions(+), 37 deletions(-)
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 28011e8..f925b21 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 @@ -124,7 +124,7 @@ static int iw_get_name(struct net_device *dev,
16 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
20 printk("%s Call\n", __FUNCTION__);
23 @@ -164,7 +164,7 @@ static int iw_ioctl_siwencode(struct net_device *dev,
29 printk("%s Call\n", __FUNCTION__);
31 i = erq->flags & IW_ENCODE_INDEX;
32 @@ -254,7 +254,7 @@ static int iw_ioctl_giwencode(struct net_device *dev,
38 printk("%s Call\n", __FUNCTION__);
40 i = erq->flags & IW_ENCODE_INDEX;
41 @@ -273,7 +273,7 @@ static int iw_ioctl_giwencode(struct net_device *dev,
42 UtilWepStatusGet(pAdapter, (UINT8 *)&cipher, &len);
47 printk("%s Call cipher=%d\n", __FUNCTION__, cipher);
50 @@ -333,7 +333,7 @@ static int iw_ioctl_siwrate(struct net_device *dev,
51 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
56 printk("%s Call\n", __FUNCTION__);
59 @@ -352,7 +352,7 @@ static int iw_ioctl_giwrate(struct net_device *dev,
60 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
65 printk("%s Call\n", __FUNCTION__);
67 if (UtilCurrentRatesGet(pAdapter, (UINT8 *)&val, &len))
68 @@ -389,7 +389,7 @@ static int iw_ioctl_giwaplist(struct net_device *dev,
69 OS_802_11_BSSID_LIST_EX *list;
74 printk("%s Call\n", __FUNCTION__);
76 printk("iw_ioctl_giwaplist\n");
77 @@ -433,7 +433,7 @@ static int iw_ioctl_siwrts(struct net_device *dev,
78 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
83 printk("%s Call\n", __FUNCTION__);
86 @@ -455,7 +455,7 @@ static int iw_ioctl_giwrts(struct net_device *dev,
87 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
92 printk("%s Call\n", __FUNCTION__);
94 if (UtilRtsThresholdGet(pAdapter, (UINT8 *)&val, &len))
95 @@ -476,7 +476,7 @@ static int iw_ioctl_siwfrag(struct net_device *dev,
96 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
101 printk("%s Call\n", __FUNCTION__);
104 @@ -499,7 +499,7 @@ static int iw_ioctl_giwfrag(struct net_device *dev,
105 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
110 printk("%s Call\n", __FUNCTION__);
112 if (UtilFragmentationThresholdGet(pAdapter, (UINT8 *)&val, &len))
113 @@ -520,7 +520,7 @@ static int iw_ioctl_siwap(struct net_device *dev,
115 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
119 printk("%s Call\n", __FUNCTION__);
121 return UtilSetBSSID(pAdapter, (UINT8 *)&ap_addr->sa_data, ETH_ALEN);
122 @@ -533,7 +533,7 @@ static int iw_ioctl_giwap(struct net_device *dev,
123 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
128 printk("%s Call\n", __FUNCTION__);
130 ap_addr->sa_family = ARPHRD_ETHER;
131 @@ -544,7 +544,7 @@ static int iw_ioctl_giwnickn(struct net_device *dev,
132 struct iw_request_info *info,
133 struct iw_point *data, char *nickname)
137 printk("%s Call\n", __FUNCTION__);
140 @@ -560,7 +560,7 @@ static int iw_ioctl_siwfreq(struct net_device *dev,
142 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
146 printk("%s Call\n", __FUNCTION__);
149 @@ -594,7 +594,7 @@ static int iw_ioctl_giwfreq(struct net_device *dev, struct iw_request_info *info
150 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
155 printk("%s Call\n", __FUNCTION__);
157 if (!pAdapter->CoreHalCtx) {
158 @@ -620,7 +620,7 @@ static int iw_ioctl_siwessid(struct net_device *dev,
159 OS_802_11_SSID essid;
160 OS_802_11_MAC_ADDRESS bssid = { 0xff,0xff,0xff,0xff,0xff,0xff };
164 printk("%s Call\n", __FUNCTION__);
167 @@ -645,7 +645,7 @@ static int iw_ioctl_giwessid(struct net_device *dev,
173 printk("%s Call\n", __FUNCTION__);
175 memset(&ssid, 0, sizeof(OS_802_11_SSID));
176 @@ -664,7 +664,7 @@ static int iw_ioctl_siwmode(struct net_device *dev,
177 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
182 printk("%s Call\n", __FUNCTION__);
184 if (*mode > IW_MODE_INFRA)
185 @@ -698,7 +698,7 @@ static int iw_ioctl_giwmode(struct net_device *dev,
186 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
191 printk("%s Call\n", __FUNCTION__);
193 UtilInfrastructureModeGet(pAdapter, (UINT8 *)&val, &len);
194 @@ -856,7 +856,7 @@ static int iw_ioctl_siwpower(struct net_device *dev,
195 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
196 UINT32 val=POWER_MODE_ACTIVE;
200 printk("%s Call\n", __FUNCTION__);
203 @@ -898,7 +898,7 @@ static int iw_ioctl_giwpower(struct net_device *dev,
204 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
205 UINT32 val=POWER_MODE_ACTIVE, len;
209 printk("%s Call\n", __FUNCTION__);
211 UtilPowerModeGet(pAdapter, (UINT8 *)&val, &len);
212 @@ -920,7 +920,7 @@ static int iw_ioctl_siwretry(struct net_device *dev,
214 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
218 printk("%s Call\n", __FUNCTION__);
221 @@ -949,7 +949,7 @@ static int iw_ioctl_giwretry(struct net_device *dev,
222 u16 shortretry, longretry;
227 printk("%s Call\n", __FUNCTION__);
229 if (UtilShortRetryGet(pAdapter, (UINT8 *)&shortretry, &len)!=0 ||
230 @@ -990,7 +990,7 @@ static int iw_ioctl_giwtxpow(struct net_device *dev,
236 printk("%s Call\n", __FUNCTION__);
239 @@ -1012,7 +1012,7 @@ static int iw_ioctl_siwscan(struct net_device *dev,
240 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
245 printk("%s Call\n", __FUNCTION__);
248 @@ -1046,7 +1046,7 @@ static inline int iw_scan_list(struct net_device *dev,
254 printk("%s Call\n", __FUNCTION__);
256 memset(list_buf, 0, 10000);
257 @@ -1182,7 +1182,6 @@ static inline int iw_scan_list(struct net_device *dev,
258 spin_unlock_bh(&lock);
261 - printk("current_ev=%x\n", current_ev);
262 bssid = (OS_802_11_BSSID_EX *) (((char *) bssid) + bssid->Length);
265 @@ -1198,7 +1197,7 @@ static int iw_ioctl_giwscan(struct net_device *dev,
271 printk("%s Call\n", __FUNCTION__);
274 @@ -1447,7 +1446,7 @@ static int iw_ioctl_siwauth(struct net_device *dev,
275 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
280 printk("%s Call\n", __FUNCTION__);
282 switch (data->flags & IW_AUTH_INDEX) {
283 @@ -1517,7 +1516,7 @@ static int iw_ioctl_giwauth(struct net_device *dev,
284 PTIWLN_ADAPTER_T pAdapter = &(((tiwlan_net_dev_t *)(dev->priv))->adapter);
289 printk("%s Call\n", __FUNCTION__);
291 switch (data->flags & IW_AUTH_INDEX) {
292 @@ -1557,7 +1556,7 @@ static int iw_ioctl_siwencodeext(struct net_device *dev,
293 struct iw_point *erq, char *extra)
298 printk("%s Call\n", __FUNCTION__);
301 @@ -1734,7 +1733,7 @@ static int iw_ioctl_giwencodeext(struct net_device *dev,
302 struct iw_request_info *info,
303 struct iw_point *erq, char *extra)
307 printk("%s Call\n", __FUNCTION__);
310 @@ -1812,7 +1811,7 @@ static int iw_ioctl_siwgenie(struct net_device *dev,
311 struct iw_request_info *info,
312 struct iw_point *data, char *extra)
316 printk("%s Call\n", __FUNCTION__);
319 @@ -1823,7 +1822,7 @@ static int iw_ioctl_giwgenie(struct net_device *dev,
320 struct iw_request_info *info,
321 struct iw_point *data, char *extra)
325 printk("%s Call\n", __FUNCTION__);
328 @@ -1835,7 +1834,7 @@ static int iw_ioctl_siwmlme(struct net_device *dev,
329 struct iw_request_info *info,
330 struct iw_point *data, char *extra)
334 printk("%s Call\n", __FUNCTION__);
337 @@ -1921,7 +1920,7 @@ static const struct iw_handler_def ti_iw_handler_def =
338 .standard = (iw_handler *) ti_handler,
339 // .private = (iw_handler *) ti_private_handler,
340 // .private_args = (struct iw_priv_args *) ti_priv,
341 - .get_wireless_stats = ti_get_wireless_stats,
342 +// .get_wireless_stats = ti_get_wireless_stats,
345 void tiwlan_iwhandler_init(struct net_device *dev)