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

« back to all changes in this revision

Viewing changes to updates/cw-3.3/drivers/net/wireless/zd1211rw/zd_mac.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:
866
866
 
867
867
        ZD_ASSERT(frag_len <= 0xffff);
868
868
 
 
869
        /*
 
870
         * Firmware computes the duration itself (for all frames except PSPoll)
 
871
         * and needs the field set to 0 at input, otherwise firmware messes up
 
872
         * duration_id and sets bits 14 and 15 on.
 
873
         */
 
874
        if (!ieee80211_is_pspoll(hdr->frame_control))
 
875
                hdr->duration_id = 0;
 
876
 
869
877
        txrate = ieee80211_get_tx_rate(mac->hw, info);
870
878
 
871
879
        cs->modulation = txrate->hw_value;