~ubuntu-branches/ubuntu/precise/linux-backports-modules-3.2.0/precise

« back to all changes in this revision

Viewing changes to updates/cw-3.3/drivers/net/wireless/ath/ath9k/rc.c

  • Committer: Package Import Robot
  • Author(s): Leann Ogasawara
  • Date: 2012-03-16 08:54:19 UTC
  • Revision ID: package-import@ubuntu.com-20120316085419-2su2uxghzxg95ggi
Tags: 3.2.0-19.2
* Update to compat-wireless-3.3-rc6-1-n
* Bump ABI for Precise 3.2.0-19.30 

Show diffs side-by-side

added added

removed removed

Lines of Context:
694
694
                return rate;
695
695
 
696
696
        /* This should not happen */
697
 
        WARN_ON(1);
 
697
        WARN_ON_ONCE(1);
698
698
 
699
699
        rate = ath_rc_priv->valid_rate_index[0];
700
700
 
1346
1346
        fc = hdr->frame_control;
1347
1347
        for (i = 0; i < sc->hw->max_rates; i++) {
1348
1348
                struct ieee80211_tx_rate *rate = &tx_info->status.rates[i];
1349
 
                if (!rate->count)
 
1349
                if (rate->idx < 0 || !rate->count)
1350
1350
                        break;
1351
1351
 
1352
1352
                final_ts_idx = i;