On Fri, 2008-05-23 at 10:09 +0800, Zhu Yi wrote: > From: Ron Rindjunsky <ron.rindjunsky@xxxxxxxxx> > > This patch implements 5000 HW tx response path > > Signed-off-by: Ron Rindjunsky <ron.rindjunsky@xxxxxxxxx> > --- > drivers/net/wireless/iwlwifi/iwl-5000.c | 235 +++++++++++++++++++++++++++++++ > net/mac80211/mlme.c | 10 +- > 2 files changed, 240 insertions(+), 5 deletions(-) > > diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c > index 685a84e..5d6a28c 100644 > --- a/drivers/net/wireless/iwlwifi/iwl-5000.c > +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c > @@ -972,6 +972,240 @@ static void iwl5000_txq_set_sched(struct iwl_priv *priv, u32 mask) > iwl_write_prph(priv, IWL50_SCD_TXFACT, mask); > } > > + > +static inline u32 iwl5000_get_scd_ssn(struct iwl5000_tx_resp *tx_resp) > +{ > + __le32 *scd_ssn = (__le32 *)((u32 *)&tx_resp->status + > + tx_resp->frame_count); > + return le32_to_cpu(*scd_ssn) & MAX_SN; How about: return le32_to_cpup((__le32 *)&tx_resp->status + tx_resp->frame_count); Cheers, Harvey -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html