On Mon, Aug 29, 2011 at 08:40:44PM +0200, Felix Fietkau wrote: > + > + if (!hchan) { > + fastcc = false; > + flush = true; > + hchan = ah->curchan; > + } > + > + if (fastcc && !ath9k_hw_check_alive(ah)) > + fastcc = false; > + > + if (!ath_prepare_reset(sc, retry_tx, flush)) > + fastcc = false; > + > + ath_dbg(common, ATH_DBG_CONFIG, > + "Reset to %u MHz, HT40: %d fastcc: %d\n", > + hchan->channel, !!(hchan->channelFlags & (CHANNEL_HT40MINUS | > + CHANNEL_HT40PLUS)), > + fastcc); > + > + r = ath9k_hw_reset(ah, hchan, caldata, fastcc); > + if (r) { > + ath_err(common, > + "Unable to reset channel, reset status %d\n", r); > + goto out; > + } > + > + if (!ath_complete_reset(sc, true)) > + r = -EIO; > + > +out: > spin_unlock_bh(&sc->sc_pcu_lock); > + return 0; > +} Return proper error code. -- Rajkumar -- 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