From: Sujith Manoharan Date: Fri, 3 Apr 2015 07:47:18 +0530 Subject: [ath9k-devel] ar9330 autosleep In-Reply-To: References: <20150402181745.GB2953@localhost> Message-ID: <21789.63534.378525.962484@gargle.gargle.HOWL> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Adrian Chadd wrote: > I'm still debugging some of the sleep stuff with the AR9380 on > FreeBSD. The later chips do the right thing, but the AR9380 beacon > programming for /some/ reason is not hearing beacons in network sleep > mode and eventually the BMISS interrupts cause a rescan/reassociation. > IT doesn't happen on the later chips (AR9485, AR9462, .etc.) sigh. Relying on the HW TIM interrupt wasn't reliable, IIRC. Instead of using ATH9K_INT_TIM to process a beacon which has the TIM bit set for our station, ath9k uses ATH9K_INT_TIM_TIMER. AR_TIM_TIMER_EN is always enabled in station mode, so power-saving has lots of room for improvement, since we completely ignore DTIM and always wake up to receive every beacon. Beacon/TIM processing is done in mac80211, for drivers that set IEEE80211_HW_PS_NULLFUNC_STACK. I am not sure why parsing beacons in the HW for the TIM IE is unreliable. Sujith