~ubuntu-branches/ubuntu/jaunty/linux-backports-modules-2.6.28/jaunty-proposed

« back to all changes in this revision

Viewing changes to updates/compat-wireless-2.6/net/wireless/core.c

  • Committer: Bazaar Package Importer
  • Author(s): Tim Gardner, Tim Gardner
  • Date: 2009-02-09 17:48:22 UTC
  • Revision ID: james.westby@ubuntu.com-20090209174822-6chmiumgtavrmzgv
Tags: 2.6.28-7.5
[Tim Gardner]

* Update to master-2009-02-09
* Convert 'git-log' to 'git log'

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
 
274
274
                sband->band = band;
275
275
 
276
 
                if (!sband->n_channels || !sband->n_bitrates) {
277
 
                        WARN_ON(1);
278
 
                        return -EINVAL;
279
 
                }
 
276
                if (WARN_ON(!sband->n_channels || !sband->n_bitrates))
 
277
                        return -EINVAL;
 
278
 
 
279
                /*
 
280
                 * Since we use a u32 for rate bitmaps in
 
281
                 * ieee80211_get_response_rate, we cannot
 
282
                 * have more than 32 legacy rates.
 
283
                 */
 
284
                if (WARN_ON(sband->n_bitrates > 32))
 
285
                        return -EINVAL;
280
286
 
281
287
                for (i = 0; i < sband->n_channels; i++) {
282
288
                        sband->channels[i].orig_flags =