hw.c (e11ec900cfbea3d8f6a188674ee6fcb65f2a73d6) hw.c (f29f5c0882bdd58c42b8176ee0b578f92589fda2)
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

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

1780 struct ath9k_hw_capabilities *pCap = &ah->caps;
1781 struct ath_common *common = ath9k_hw_common(ah);
1782
1783 ENABLE_REGWRITE_BUFFER(ah);
1784
1785 REG_WRITE(ah, AR_NEXT_TBTT_TIMER, TU_TO_USEC(bs->bs_nexttbtt));
1786
1787 REG_WRITE(ah, AR_BEACON_PERIOD,
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

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

1780 struct ath9k_hw_capabilities *pCap = &ah->caps;
1781 struct ath_common *common = ath9k_hw_common(ah);
1782
1783 ENABLE_REGWRITE_BUFFER(ah);
1784
1785 REG_WRITE(ah, AR_NEXT_TBTT_TIMER, TU_TO_USEC(bs->bs_nexttbtt));
1786
1787 REG_WRITE(ah, AR_BEACON_PERIOD,
1788 TU_TO_USEC(bs->bs_intval & ATH9K_BEACON_PERIOD));
1788 TU_TO_USEC(bs->bs_intval));
1789 REG_WRITE(ah, AR_DMA_BEACON_PERIOD,
1789 REG_WRITE(ah, AR_DMA_BEACON_PERIOD,
1790 TU_TO_USEC(bs->bs_intval & ATH9K_BEACON_PERIOD));
1790 TU_TO_USEC(bs->bs_intval));
1791
1792 REGWRITE_BUFFER_FLUSH(ah);
1793
1794 REG_RMW_FIELD(ah, AR_RSSI_THR,
1795 AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold);
1796
1791
1792 REGWRITE_BUFFER_FLUSH(ah);
1793
1794 REG_RMW_FIELD(ah, AR_RSSI_THR,
1795 AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold);
1796
1797 beaconintval = bs->bs_intval & ATH9K_BEACON_PERIOD;
1797 beaconintval = bs->bs_intval;
1798
1799 if (bs->bs_sleepduration > beaconintval)
1800 beaconintval = bs->bs_sleepduration;
1801
1802 dtimperiod = bs->bs_dtimperiod;
1803 if (bs->bs_sleepduration > dtimperiod)
1804 dtimperiod = bs->bs_sleepduration;
1805

--- 843 unchanged lines hidden ---
1798
1799 if (bs->bs_sleepduration > beaconintval)
1800 beaconintval = bs->bs_sleepduration;
1801
1802 dtimperiod = bs->bs_dtimperiod;
1803 if (bs->bs_sleepduration > dtimperiod)
1804 dtimperiod = bs->bs_sleepduration;
1805

--- 843 unchanged lines hidden ---