\hypertarget{ar5211__beacon_8c}{}\doxysection{dev/ath/ath\+\_\+hal/ar5211/ar5211\+\_\+beacon.c File Reference}
\label{ar5211__beacon_8c}\index{dev/ath/ath\_hal/ar5211/ar5211\_beacon.c@{dev/ath/ath\_hal/ar5211/ar5211\_beacon.c}}
{\ttfamily \#include \char`\"{}opt\+\_\+ah.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ah.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ah\+\_\+internal.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ar5211/ar5211.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ar5211/ar5211reg.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ar5211/ar5211desc.\+h\char`\"{}}\newline
Include dependency graph for ar5211\+\_\+beacon.\+c\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{df/d18/ar5211__beacon_8c__incl}
\end{center}
\end{figure}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{ar5211__beacon_8c_a133f5325fa74b3f7d706fa02cfa81a32}{TU\+\_\+\+TO\+\_\+\+TSF}}(\+\_\+tu)~(((uint64\+\_\+t)(\+\_\+tu)) $<$$<$ 10)
\item 
\#define \mbox{\hyperlink{ar5211__beacon_8c_a8ff621f3362085caeb55dba7a40659ed}{SLEEP\+\_\+\+SLOP}}~3
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
uint64\+\_\+t \mbox{\hyperlink{ar5211__beacon_8c_afb6bf730aafd54e1f31991048db2e9e2}{ar5211\+Get\+Next\+TBTT}} (struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$ah)
\item 
void \mbox{\hyperlink{ar5211__beacon_8c_ad3d9fde1696d0991e1141cca28bc79ca}{ar5211\+Set\+Beacon\+Timers}} (struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$ah, const \mbox{\hyperlink{structHAL__BEACON__TIMERS}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS}} $\ast$bt)
\item 
void \mbox{\hyperlink{ar5211__beacon_8c_a638161ae8c79ab69eec94c9cadc9f969}{ar5211\+Beacon\+Init}} (struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$ah, uint32\+\_\+t next\+\_\+beacon, uint32\+\_\+t beacon\+\_\+period)
\item 
void \mbox{\hyperlink{ar5211__beacon_8c_a50aaa8eb0fb914dec152607be1bbcd2c}{ar5211\+Reset\+Sta\+Beacon\+Timers}} (struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$ah)
\item 
void \mbox{\hyperlink{ar5211__beacon_8c_ab8acd789e76717707f5b521b727c8888}{ar5211\+Set\+Sta\+Beacon\+Timers}} (struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$ah, const \mbox{\hyperlink{structHAL__BEACON__STATE}{HAL\+\_\+\+BEACON\+\_\+\+STATE}} $\ast$bs)
\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{ar5211__beacon_8c_a8ff621f3362085caeb55dba7a40659ed}\label{ar5211__beacon_8c_a8ff621f3362085caeb55dba7a40659ed}} 
\index{ar5211\_beacon.c@{ar5211\_beacon.c}!SLEEP\_SLOP@{SLEEP\_SLOP}}
\index{SLEEP\_SLOP@{SLEEP\_SLOP}!ar5211\_beacon.c@{ar5211\_beacon.c}}
\doxysubsubsection{\texorpdfstring{SLEEP\_SLOP}{SLEEP\_SLOP}}
{\footnotesize\ttfamily \#define SLEEP\+\_\+\+SLOP~3}

\mbox{\Hypertarget{ar5211__beacon_8c_a133f5325fa74b3f7d706fa02cfa81a32}\label{ar5211__beacon_8c_a133f5325fa74b3f7d706fa02cfa81a32}} 
\index{ar5211\_beacon.c@{ar5211\_beacon.c}!TU\_TO\_TSF@{TU\_TO\_TSF}}
\index{TU\_TO\_TSF@{TU\_TO\_TSF}!ar5211\_beacon.c@{ar5211\_beacon.c}}
\doxysubsubsection{\texorpdfstring{TU\_TO\_TSF}{TU\_TO\_TSF}}
{\footnotesize\ttfamily \#define TU\+\_\+\+TO\+\_\+\+TSF(\begin{DoxyParamCaption}\item[{}]{\+\_\+tu }\end{DoxyParamCaption})~(((uint64\+\_\+t)(\+\_\+tu)) $<$$<$ 10)}



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{ar5211__beacon_8c_a638161ae8c79ab69eec94c9cadc9f969}\label{ar5211__beacon_8c_a638161ae8c79ab69eec94c9cadc9f969}} 
\index{ar5211\_beacon.c@{ar5211\_beacon.c}!ar5211BeaconInit@{ar5211BeaconInit}}
\index{ar5211BeaconInit@{ar5211BeaconInit}!ar5211\_beacon.c@{ar5211\_beacon.c}}
\doxysubsubsection{\texorpdfstring{ar5211BeaconInit()}{ar5211BeaconInit()}}
{\footnotesize\ttfamily void ar5211\+Beacon\+Init (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$}]{ah,  }\item[{uint32\+\_\+t}]{next\+\_\+beacon,  }\item[{uint32\+\_\+t}]{beacon\+\_\+period }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{ar5211__beacon_8c_source_l00066}{66}} of file \mbox{\hyperlink{ar5211__beacon_8c_source}{ar5211\+\_\+beacon.\+c}}.



References \mbox{\hyperlink{ah_8h_source_l01243}{ath\+\_\+hal\+::ah\+\_\+config}}, \mbox{\hyperlink{ah_8h_source_l01159}{HAL\+\_\+\+OPS\+\_\+\+CONFIG\+::ah\+\_\+dma\+\_\+beacon\+\_\+response\+\_\+time}}, \mbox{\hyperlink{ah__internal_8h_source_l00442}{AH\+\_\+\+PRIVATE}}, \mbox{\hyperlink{ah_8h_source_l01160}{HAL\+\_\+\+OPS\+\_\+\+CONFIG\+::ah\+\_\+sw\+\_\+beacon\+\_\+response\+\_\+time}}, \mbox{\hyperlink{ar5211__beacon_8c_source_l00049}{ar5211\+Set\+Beacon\+Timers()}}, \mbox{\hyperlink{ar5210reg_8h_source_l00352}{AR\+\_\+\+BEACON\+\_\+\+EN}}, \mbox{\hyperlink{ar5210reg_8h_source_l00348}{AR\+\_\+\+BEACON\+\_\+\+PERIOD}}, \mbox{\hyperlink{ar5210reg_8h_source_l00353}{AR\+\_\+\+BEACON\+\_\+\+RESET\+\_\+\+TSF}}, \mbox{\hyperlink{ah_8h_source_l00857}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+intval}}, \mbox{\hyperlink{ah_8h_source_l00859}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+nextatim}}, \mbox{\hyperlink{ah_8h_source_l00860}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+nextdba}}, \mbox{\hyperlink{ah_8h_source_l00861}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+nextswba}}, \mbox{\hyperlink{ah_8h_source_l00858}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+nexttbtt}}, \mbox{\hyperlink{ah_8h_source_l00767}{HAL\+\_\+\+M\+\_\+\+HOSTAP}}, \mbox{\hyperlink{ah_8h_source_l00766}{HAL\+\_\+\+M\+\_\+\+IBSS}}, \mbox{\hyperlink{ah_8h_source_l00768}{HAL\+\_\+\+M\+\_\+\+MONITOR}}, and \mbox{\hyperlink{ah_8h_source_l00765}{HAL\+\_\+\+M\+\_\+\+STA}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d4/d46/ar5211__beacon_8c_a638161ae8c79ab69eec94c9cadc9f969_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{ar5211__beacon_8c_afb6bf730aafd54e1f31991048db2e9e2}\label{ar5211__beacon_8c_afb6bf730aafd54e1f31991048db2e9e2}} 
\index{ar5211\_beacon.c@{ar5211\_beacon.c}!ar5211GetNextTBTT@{ar5211GetNextTBTT}}
\index{ar5211GetNextTBTT@{ar5211GetNextTBTT}!ar5211\_beacon.c@{ar5211\_beacon.c}}
\doxysubsubsection{\texorpdfstring{ar5211GetNextTBTT()}{ar5211GetNextTBTT()}}
{\footnotesize\ttfamily uint64\+\_\+t ar5211\+Get\+Next\+TBTT (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$}]{ah }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{ar5211__beacon_8c_source_l00038}{38}} of file \mbox{\hyperlink{ar5211__beacon_8c_source}{ar5211\+\_\+beacon.\+c}}.



References \mbox{\hyperlink{ar5210reg_8h_source_l00081}{AR\+\_\+\+TIMER0}}, \mbox{\hyperlink{ah__osdep_8h_source_l00140}{OS\+\_\+\+REG\+\_\+\+READ}}, and \mbox{\hyperlink{ar5211__beacon_8c_a133f5325fa74b3f7d706fa02cfa81a32}{TU\+\_\+\+TO\+\_\+\+TSF}}.

\mbox{\Hypertarget{ar5211__beacon_8c_a50aaa8eb0fb914dec152607be1bbcd2c}\label{ar5211__beacon_8c_a50aaa8eb0fb914dec152607be1bbcd2c}} 
\index{ar5211\_beacon.c@{ar5211\_beacon.c}!ar5211ResetStaBeaconTimers@{ar5211ResetStaBeaconTimers}}
\index{ar5211ResetStaBeaconTimers@{ar5211ResetStaBeaconTimers}!ar5211\_beacon.c@{ar5211\_beacon.c}}
\doxysubsubsection{\texorpdfstring{ar5211ResetStaBeaconTimers()}{ar5211ResetStaBeaconTimers()}}
{\footnotesize\ttfamily void ar5211\+Reset\+Sta\+Beacon\+Timers (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$}]{ah }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{ar5211__beacon_8c_source_l00105}{105}} of file \mbox{\hyperlink{ar5211__beacon_8c_source}{ar5211\+\_\+beacon.\+c}}.



References \mbox{\hyperlink{ar5210reg_8h_source_l00079}{AR\+\_\+\+BEACON}}, \mbox{\hyperlink{ar5210reg_8h_source_l00348}{AR\+\_\+\+BEACON\+\_\+\+PERIOD}}, \mbox{\hyperlink{ar5210reg_8h_source_l00071}{AR\+\_\+\+STA\+\_\+\+ID1}}, \mbox{\hyperlink{ar5210reg_8h_source_l00311}{AR\+\_\+\+STA\+\_\+\+ID1\+\_\+\+DEFAULT\+\_\+\+ANTENNA}}, \mbox{\hyperlink{ar5210reg_8h_source_l00309}{AR\+\_\+\+STA\+\_\+\+ID1\+\_\+\+PCF}}, \mbox{\hyperlink{ar5211reg_8h_source_l00763}{AR\+\_\+\+STA\+\_\+\+ID1\+\_\+\+PWR\+\_\+\+SAV}}, \mbox{\hyperlink{ar5210reg_8h_source_l00081}{AR\+\_\+\+TIMER0}}, \mbox{\hyperlink{ah__osdep_8h_source_l00140}{OS\+\_\+\+REG\+\_\+\+READ}}, and \mbox{\hyperlink{ah__osdep_8h_source_l00139}{OS\+\_\+\+REG\+\_\+\+WRITE}}.

\mbox{\Hypertarget{ar5211__beacon_8c_ad3d9fde1696d0991e1141cca28bc79ca}\label{ar5211__beacon_8c_ad3d9fde1696d0991e1141cca28bc79ca}} 
\index{ar5211\_beacon.c@{ar5211\_beacon.c}!ar5211SetBeaconTimers@{ar5211SetBeaconTimers}}
\index{ar5211SetBeaconTimers@{ar5211SetBeaconTimers}!ar5211\_beacon.c@{ar5211\_beacon.c}}
\doxysubsubsection{\texorpdfstring{ar5211SetBeaconTimers()}{ar5211SetBeaconTimers()}}
{\footnotesize\ttfamily void ar5211\+Set\+Beacon\+Timers (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$}]{ah,  }\item[{const \mbox{\hyperlink{structHAL__BEACON__TIMERS}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS}} $\ast$}]{bt }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{ar5211__beacon_8c_source_l00049}{49}} of file \mbox{\hyperlink{ar5211__beacon_8c_source}{ar5211\+\_\+beacon.\+c}}.



References \mbox{\hyperlink{ar5210reg_8h_source_l00079}{AR\+\_\+\+BEACON}}, \mbox{\hyperlink{ar5210reg_8h_source_l00081}{AR\+\_\+\+TIMER0}}, \mbox{\hyperlink{ar5210reg_8h_source_l00082}{AR\+\_\+\+TIMER1}}, \mbox{\hyperlink{ar5210reg_8h_source_l00083}{AR\+\_\+\+TIMER2}}, \mbox{\hyperlink{ar5210reg_8h_source_l00084}{AR\+\_\+\+TIMER3}}, \mbox{\hyperlink{ah_8h_source_l00857}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+intval}}, \mbox{\hyperlink{ah_8h_source_l00859}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+nextatim}}, \mbox{\hyperlink{ah_8h_source_l00860}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+nextdba}}, \mbox{\hyperlink{ah_8h_source_l00861}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+nextswba}}, \mbox{\hyperlink{ah_8h_source_l00858}{HAL\+\_\+\+BEACON\+\_\+\+TIMERS\+::bt\+\_\+nexttbtt}}, and \mbox{\hyperlink{ah__osdep_8h_source_l00139}{OS\+\_\+\+REG\+\_\+\+WRITE}}.



Referenced by \mbox{\hyperlink{ar5211__beacon_8c_source_l00066}{ar5211\+Beacon\+Init()}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d4/d46/ar5211__beacon_8c_ad3d9fde1696d0991e1141cca28bc79ca_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{ar5211__beacon_8c_ab8acd789e76717707f5b521b727c8888}\label{ar5211__beacon_8c_ab8acd789e76717707f5b521b727c8888}} 
\index{ar5211\_beacon.c@{ar5211\_beacon.c}!ar5211SetStaBeaconTimers@{ar5211SetStaBeaconTimers}}
\index{ar5211SetStaBeaconTimers@{ar5211SetStaBeaconTimers}!ar5211\_beacon.c@{ar5211\_beacon.c}}
\doxysubsubsection{\texorpdfstring{ar5211SetStaBeaconTimers()}{ar5211SetStaBeaconTimers()}}
{\footnotesize\ttfamily void ar5211\+Set\+Sta\+Beacon\+Timers (\begin{DoxyParamCaption}\item[{struct \mbox{\hyperlink{structath__hal}{ath\+\_\+hal}} $\ast$}]{ah,  }\item[{const \mbox{\hyperlink{structHAL__BEACON__STATE}{HAL\+\_\+\+BEACON\+\_\+\+STATE}} $\ast$}]{bs }\end{DoxyParamCaption})}



Definition at line \mbox{\hyperlink{ar5211__beacon_8c_source_l00124}{124}} of file \mbox{\hyperlink{ar5211__beacon_8c_source}{ar5211\+\_\+beacon.\+c}}.



References \mbox{\hyperlink{ar5211_8h_source_l00144}{AH5211}}, \mbox{\hyperlink{ar5211_8h_source_l00131}{ath\+\_\+hal\+\_\+5211\+::ah\+\_\+rssi\+Thr}}, \mbox{\hyperlink{ar5210reg_8h_source_l00079}{AR\+\_\+\+BEACON}}, \mbox{\hyperlink{ar5210reg_8h_source_l00348}{AR\+\_\+\+BEACON\+\_\+\+PERIOD}}, \mbox{\hyperlink{ar5210reg_8h_source_l00350}{AR\+\_\+\+BEACON\+\_\+\+TIM}}, \mbox{\hyperlink{ar5210reg_8h_source_l00087}{AR\+\_\+\+CFP\+\_\+\+DUR}}, \mbox{\hyperlink{ar5210reg_8h_source_l00080}{AR\+\_\+\+CFP\+\_\+\+PERIOD}}, \mbox{\hyperlink{ar5210reg_8h_source_l00076}{AR\+\_\+\+RSSI\+\_\+\+THR}}, \mbox{\hyperlink{ar5210reg_8h_source_l00325}{AR\+\_\+\+RSSI\+\_\+\+THR\+\_\+\+BM\+\_\+\+THR}}, \mbox{\hyperlink{ar5210reg_8h_source_l00056}{AR\+\_\+\+SCR}}, \mbox{\hyperlink{ar5210reg_8h_source_l00247}{AR\+\_\+\+SCR\+\_\+\+SLDUR}}, \mbox{\hyperlink{ar5210reg_8h_source_l00071}{AR\+\_\+\+STA\+\_\+\+ID1}}, \mbox{\hyperlink{ar5210reg_8h_source_l00309}{AR\+\_\+\+STA\+\_\+\+ID1\+\_\+\+PCF}}, \mbox{\hyperlink{ar5210reg_8h_source_l00081}{AR\+\_\+\+TIMER0}}, \mbox{\hyperlink{ar5210reg_8h_source_l00083}{AR\+\_\+\+TIMER2}}, \mbox{\hyperlink{ah_8h_source_l00847}{HAL\+\_\+\+BEACON\+\_\+\+STATE\+::bs\+\_\+bmissthreshold}}, \mbox{\hyperlink{ah_8h_source_l00844}{HAL\+\_\+\+BEACON\+\_\+\+STATE\+::bs\+\_\+cfpmaxduration}}, \mbox{\hyperlink{ah_8h_source_l00845}{HAL\+\_\+\+BEACON\+\_\+\+STATE\+::bs\+\_\+cfpnext}}, \mbox{\hyperlink{ah_8h_source_l00843}{HAL\+\_\+\+BEACON\+\_\+\+STATE\+::bs\+\_\+cfpperiod}}, \mbox{\hyperlink{ah_8h_source_l00831}{HAL\+\_\+\+BEACON\+\_\+\+STATE\+::bs\+\_\+intval}}, \mbox{\hyperlink{ah_8h_source_l00829}{HAL\+\_\+\+BEACON\+\_\+\+STATE\+::bs\+\_\+nexttbtt}}, \mbox{\hyperlink{ah_8h_source_l00848}{HAL\+\_\+\+BEACON\+\_\+\+STATE\+::bs\+\_\+sleepduration}}, \mbox{\hyperlink{ah_8h_source_l00846}{HAL\+\_\+\+BEACON\+\_\+\+STATE\+::bs\+\_\+timoffset}}, \mbox{\hyperlink{ah__debug_8h_source_l00045}{HAL\+\_\+\+DEBUG\+\_\+\+BEACON}}, \mbox{\hyperlink{ah__internal_8h_source_l00683}{HALASSERT}}, \mbox{\hyperlink{ah__internal_8h_source_l00658}{HALDEBUG}}, \mbox{\hyperlink{ah__internal_8h_source_l00588}{MS}}, \mbox{\hyperlink{ah__osdep_8h_source_l00140}{OS\+\_\+\+REG\+\_\+\+READ}}, \mbox{\hyperlink{ah__internal_8h_source_l00591}{OS\+\_\+\+REG\+\_\+\+RMW\+\_\+\+FIELD}}, \mbox{\hyperlink{ah__osdep_8h_source_l00139}{OS\+\_\+\+REG\+\_\+\+WRITE}}, \mbox{\hyperlink{ar5211__beacon_8c_a8ff621f3362085caeb55dba7a40659ed}{SLEEP\+\_\+\+SLOP}}, and \mbox{\hyperlink{ah__internal_8h_source_l00587}{SM}}.

