Patch : Orinoco v6
Subsystems (2)
Hi, This is my latest patch for the Orinoco driver. I would be
grateful if it would be applied to the latest kernel.
This time, the changes are quite minor. It only fixes the
support for Symbol/Intel/3Com cards, most of it contributed by Red-Hat, and doesn't impact Orinoco cards. Patch has been on my web pages for a few weeks and tested on all my cards. It applies to kernel 2.4.5.
Important : I'm transitioning the maintainance of the Orinoco
driver back to David Gibson, the original author of the driver. So, don't be surprised if the next patch for the driver comes from him.
For David : Next week I'm in Helsinki (conference), but should
be back after.
For Alan : this version has a fex bug fixes that *may* help
with your cards (no promises).
I would recommend : priv->has_ibss = 0; priv->has_wep = 0; priv->has_pm = 0; Then, you may try "iwpriv ethX card_reset", that may help the
card to get in a better mood.
That's it... Jean
--------------------------------------------------------------
drivers/net/wireless/hermes.c renamed from drivers/net/wireless-airo/hermes.c +11 -2
@@ -32,9 +32,10 @@ static const char *version = "hermes.c:#include "hermes.h" +/* These are maximum timeouts. Most often, card wil react much faster */ #define CMD_BUSY_TIMEOUT (100)/* In iterations of ~1us */ #define CMD_INIT_TIMEOUT (50000)/* in iterations of ~10us */ -#define CMD_COMPL_TIMEOUT (10000)/* in iterations of ~10us */ +#define CMD_COMPL_TIMEOUT (20000)/* in iterations of ~10us */ #define ALLOC_COMPL_TIMEOUT (1000)/* in iterations of ~10us */ #define BAP_BUSY_TIMEOUT (500)/* In iterations of ~1us */ #define BAP_ERROR_RETRY (10)/* How many times to retry a BAP seek when there is an error */
@@ -141,6 +142,12 @@ int hermes_reset(hermes_t *hw)/* No need to explicitly handle the timeout - hermes_issue_cmd() will probably return -EBUSY */ +/* According to the documentation, EVSTAT may contain +obsolete event occurrence information. We have to acknowledge +it by writing EVACK. */ + reg =hermes_read_regn (hw,EVSTAT ); +hermes_write_regn (hw,EVACK , reg); +/* We don't use hermes_docmd_wait here, because the reset wipes the magic constant in SWSUPPORT0 away, and it gets confused */ err =hermes_issue_cmd (hw,HERMES_CMD_INIT ,0 );
@@ -323,8 +330,10 @@ static int hermes_bap_seek(hermes_t *hw, reg =hermes_read_reg (hw, oreg); } -if (reg &HERMES_OFFSET_BUSY ) +if (reg &HERMES_OFFSET_BUSY ) { +DEBUG (0 ,"hermes_bap_seek: returning ETIMEDOUT...\n" );return -ETIMEDOUT ; + }/* For some reason, seeking the BAP seems to randomly fail somewhere (firmware bug?). We retry a few times before giving up. */
drivers/net/wireless/hermes.h renamed from drivers/net/wireless-airo/hermes.h +1 -1
@@ -166,7 +166,6 @@#define HERMES_RID_CNF_NICKNAME (0xfc0e)#define HERMES_RID_CNF_WEP_ON (0xfc20)#define HERMES_RID_CNF_MWO_ROBUST (0xfc25) -#define HERMES_RID_CNF_PRISM2_WEP_ON (0xfc28)#define HERMES_RID_CNF_MULTICAST_LIST (0xfc80)#define HERMES_RID_CNF_CREATEIBSS (0xfc81)#define HERMES_RID_CNF_FRAG_THRESH (0xfc82)
@@ -177,6 +176,7 @@#define HERMES_RID_CNF_TX_KEY (0xfcb1)#define HERMES_RID_CNF_TICKTIME (0xfce0) +#define HERMES_RID_CNF_PRISM2_WEP_ON (0xfc28)#define HERMES_RID_CNF_PRISM2_TX_KEY (0xfc23)#define HERMES_RID_CNF_PRISM2_KEY0 (0xfc24)#define HERMES_RID_CNF_PRISM2_KEY1 (0xfc25)
drivers/net/wireless/orinoco.c renamed from drivers/net/wireless-airo/orinoco.c +102 -38
325 lines not on this page · raw message
drivers/net/wireless/orinoco.h renamed from drivers/net/wireless-airo/orinoco.h +3 -1
@@ -44,6 +44,8 @@ typedef dldwd_key_t dldwd_keys_t[MAX_KEY typedef struct dldwd_priv { void* card; /* Pointer to card dependant structure */ + /* card dependant extra reset code (i.e. bus/interface specific */ + int (*card_reset_handler)(struct dldwd_priv *); spinlock_t lock; long state;
@@ -72,7 +74,7 @@ typedef struct dldwd_priv {int has_mwo;int has_pm;int has_preamble; -int broken_reset, broken_allocate; +int need_card_reset, broken_reset, broken_allocate;uint16_t channel_mask;/* Current configuration */
drivers/net/wireless/orinoco_cs.c renamed from drivers/net/wireless-airo/orinoco_cs.c +76 -48
175 lines not on this page · raw message