mac.c (8d65b08debc7e62b2c6032d7fe7389d895b92cbc) mac.c (2f242bf45370b8ea44f209b22c3c90984655a102)
1/*
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 566 unchanged lines hidden (view full) ---

575 rs->rs_firstaggr = (ads.ds_rxstatus8 & AR_RxFirstAggr) ? 1 : 0;
576 rs->rs_isaggr = (ads.ds_rxstatus8 & AR_RxAggr) ? 1 : 0;
577 rs->rs_moreaggr = (ads.ds_rxstatus8 & AR_RxMoreAggr) ? 1 : 0;
578 rs->rs_antenna = MS(ads.ds_rxstatus3, AR_RxAntenna);
579
580 /* directly mapped flags for ieee80211_rx_status */
581 rs->enc_flags |=
582 (ads.ds_rxstatus3 & AR_GI) ? RX_ENC_FLAG_SHORT_GI : 0;
1/*
2 * Copyright (c) 2008-2011 Atheros Communications Inc.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES

--- 566 unchanged lines hidden (view full) ---

575 rs->rs_firstaggr = (ads.ds_rxstatus8 & AR_RxFirstAggr) ? 1 : 0;
576 rs->rs_isaggr = (ads.ds_rxstatus8 & AR_RxAggr) ? 1 : 0;
577 rs->rs_moreaggr = (ads.ds_rxstatus8 & AR_RxMoreAggr) ? 1 : 0;
578 rs->rs_antenna = MS(ads.ds_rxstatus3, AR_RxAntenna);
579
580 /* directly mapped flags for ieee80211_rx_status */
581 rs->enc_flags |=
582 (ads.ds_rxstatus3 & AR_GI) ? RX_ENC_FLAG_SHORT_GI : 0;
583 rs->enc_flags |=
584 (ads.ds_rxstatus3 & AR_2040) ? RX_ENC_FLAG_40MHZ : 0;
583 rs->bw = (ads.ds_rxstatus3 & AR_2040) ? RATE_INFO_BW_40 :
584 RATE_INFO_BW_20;
585 if (AR_SREV_9280_20_OR_LATER(ah))
586 rs->enc_flags |=
587 (ads.ds_rxstatus3 & AR_STBC) ?
588 /* we can only Nss=1 STBC */
589 (1 << RX_ENC_FLAG_STBC_SHIFT) : 0;
590
591 if (ads.ds_rxstatus8 & AR_PreDelimCRCErr)
592 rs->rs_flags |= ATH9K_RX_DELIM_CRC_PRE;

--- 409 unchanged lines hidden ---
585 if (AR_SREV_9280_20_OR_LATER(ah))
586 rs->enc_flags |=
587 (ads.ds_rxstatus3 & AR_STBC) ?
588 /* we can only Nss=1 STBC */
589 (1 << RX_ENC_FLAG_STBC_SHIFT) : 0;
590
591 if (ads.ds_rxstatus8 & AR_PreDelimCRCErr)
592 rs->rs_flags |= ATH9K_RX_DELIM_CRC_PRE;

--- 409 unchanged lines hidden ---