prism54 Update to 2.6 status
Subsystems (3)
PATCH 1/1 prism54 Update to 2.6 status
2004-09-05 Margit Schubert-While <[email protected]>
* This rollup patch brings 2.4 into line with current
* 2.6 status.
* The code base is then IDENTICAL for both 2.4 and 2.6 with
* the exception of an extra compatibility header for 2.4.
* There is no point in doing a split out for this patch
* as all changes have already been individually posted
* against 2.6 and passed through Jeff.
* As of now, we can post one patch for both kernels.
* I have included Marcelo in the CC so that he is informed.
* Jeff, after this patch, the upcoming resend of patches
* apply equally to 2.4 and 2.6 unless explicitly stated.
Margit
drivers/net/wireless/prism54/isl_38xx.c +0 -2
@@ -18,8 +18,6 @@* */ -#define __KERNEL_SYSCALLS__ -#include <linux/version.h> #include <linux/module.h> #include <linux/types.h>
drivers/net/wireless/prism54/isl_ioctl.c +20 -13
@@ -436,7 +436,7 @@ {struct iw_range *range = (struct iw_range *) extra;islpci_private *priv =netdev_priv (ndev); -char *data; +u8 *data;int i, m, rvalue;struct obj_frequencies *freq;union oid_res_t r;
@@ -513,8 +513,7 @@ i =0 ;while ((i <IW_MAX_BITRATES ) && (*data !=0 )) {/* the result must be in bps. The card gives us 500Kbps */ - range->bitrate[i] = (__s32) (*data >>1 ); - range->bitrate[i] *=1000000 ; + range->bitrate[i] = *data *500000 ; i++; data++; }
@@ -820,9 +819,11 @@return mgt_set_request (priv,DOT11_OID_PROFILES ,0 , &profile); } -if ((ret = -mgt_get_request (priv,DOT11_OID_SUPPORTEDRATES ,0 ,NULL , &r))) + ret =mgt_get_request (priv,DOT11_OID_SUPPORTEDRATES ,0 ,NULL , &r); +if (ret) { +kfree (r.ptr);return ret; + } rate = (u32) (vwrq->value /500000 ); data = r.ptr;
@@ -840,6 +841,7 @@ }if (!data[i]) { +kfree (r.ptr);return -EINVAL ; }
@@ -888,8 +890,11 @@ vwrq->value = r.u *500000 ;/* request the device for the enabled rates */ -if ((rvalue =mgt_get_request (priv,DOT11_OID_RATES ,0 ,NULL , &r))) + rvalue =mgt_get_request (priv,DOT11_OID_RATES ,0 ,NULL , &r); +if (rvalue) { +kfree (r.ptr);return rvalue; + } data = r.ptr; vwrq->fixed = (data[0 ] !=0 ) && (data[1 ] ==0 );kfree (r.ptr);
@@ -1942,7 +1947,7 @@ {islpci_private *priv =netdev_priv (ndev);struct islpci_mgmtframe *response =NULL ; -int ret = -EIO , response_op =PIMFOR_OP_ERROR ; +int ret = -EIO ;printk ("%s: get_oid 0x%08X\n" , ndev->name, priv->priv_oid); data->length =0 ;
@@ -1952,9 +1957,7 @@islpci_mgt_transaction (priv->ndev,PIMFOR_OP_GET , priv->priv_oid, extra,256 , &response); - response_op = response->header->operation;printk ("%s: ret: %i\n" , ndev->name, ret); -printk ("%s: response_op: %i\n" , ndev->name, response_op);if (ret || !response || response->header->operation ==PIMFOR_OP_ERROR ) {if (response) {
@@ -1991,16 +1994,20 @@ priv->priv_oid, extra, data->length, &response);printk ("%s: ret: %i\n" , ndev->name, ret); +if (ret || !response + || response->header->operation ==PIMFOR_OP_ERROR ) { +if (response) { +islpci_mgt_release (response); + } +printk ("%s: EIO\n" , ndev->name); + ret = -EIO ; + }if (!ret) { response_op = response->header->operation;printk ("%s: response_op: %i\n" , ndev->name, response_op);islpci_mgt_release (response); } -if (ret || response_op ==PIMFOR_OP_ERROR ) { -printk ("%s: EIO\n" , ndev->name); - ret = -EIO ; - } }return (ret ? ret : -EINPROGRESS );
drivers/net/wireless/prism54/islpci_dev.c +26 -17
118 lines not on this page · raw message
drivers/net/wireless/prism54/islpci_hotplug.c +16 -170
250 lines not on this page · raw message
drivers/net/wireless/prism54/islpci_mgt.h +0 -15
@@ -38,21 +38,6 @@/* General driver definitions */ -#define PCIVENDOR_INTERSIL 0x1260UL -#define PCIVENDOR_3COM 0x10b7UL -#define PCIVENDOR_DLINK 0x1186UL -#define PCIVENDOR_I4 0x17cfUL -#define PCIVENDOR_IODATA 0x10fcUL -#define PCIVENDOR_NETGEAR 0x1385UL -#define PCIVENDOR_SMC 0x10b8UL -#define PCIVENDOR_ACCTON 0x1113UL -#define PCIVENDOR_ATI 0x1259UL -#define PCIVENDOR_TTL 0x16a5UL - -#define PCIDEVICE_ISL3877 0x3877UL -#define PCIDEVICE_ISL3886 0x3886UL -#define PCIDEVICE_ISL3890 0x3890UL -#define PCIDEVICE_3COM6001 0x6001UL#define PCIDEVICE_LATENCY_TIMER_MIN 0x40#define PCIDEVICE_LATENCY_TIMER_VAL 0x50
drivers/net/wireless/prism54/oid_mgt.c +5 -1
@@ -219,7 +219,7 @@OID_UNKNOWN (OID_INL_MEMORY ,0xFF020002 ),OID_U32_C (OID_INL_MODE ,0xFF020003 ),OID_UNKNOWN (OID_INL_COMPONENT_NR ,0xFF020004 ), -OID_UNKNOWN (OID_INL_VERSION ,0xFF020005 ), +OID_STRUCT (OID_INL_VERSION ,0xFF020005 , u8[8 ],OID_TYPE_RAW ),OID_UNKNOWN (OID_INL_INTERFACE_ID ,0xFF020006 ),OID_UNKNOWN (OID_INL_COMPONENT_ID ,0xFF020007 ), OID_U32_C(OID_INL_CONFIG, 0xFF020008),
@@ -481,6 +481,8 @@BUG_ON (OID_NUM_LAST <= n);BUG_ON (extra > isl_oid[n].range); + res->ptr =NULL ; +if (!priv->mib)/* memory has been freed */ return -1 ;
@@ -613,7 +615,9 @@DOT11_OID_DEFKEYID ,DOT11_OID_DOT1XENABLE , OID_INL_DOT11D_CONFORMANCE, + /* Do not initialize this - fw < 1.0.4.3 rejects it OID_INL_OUTPUTPOWER, + */ };/* update the MAC addr. */
drivers/net/wireless/prism54/prismcompat24.h +1 -1
@@ -52,7 +52,7 @@#define schedule_work schedule_task#if !defined(HAVE_NETDEV_PRIV ) -#define netdev_priv (x) x->priv +#define netdev_priv (x) (x)->priv#endif #if !defined(CONFIG_FW_LOADER ) && !defined(CONFIG_FW_LOADER_MODULE )
_______________________________________________
Prism54-devel mailing list
[email protected]
http://prism54.org/mailman/listinfo/prism54-devel