# /space/home/slher/rel/Beken/v6_4_5/macsw/ip/umac/src/apm/apm.h File Reference

Copyright (C) RivieraWaves 2011-2019. More...

`#include "mac.h"`
`#include "co_list.h"`
`#include "rwnx_config.h"`
`#include "tx_swdesc.h"`
`#include "sta_mgmt.h"`

Go to the source code of this file.

## Data Structures
struct | apm
| APM environment declaration. More...
## Defines
#define | AGING_DURATION 25 * TU_DURATION * TU_DURATION
| Aging Duration : The time period is 100 sec.
#define | MAC_AGING_STA 10
| number of stations to be checked for aging
#define | STAID_NOTRAFFIC_THRESHOLD_NULL 3
| the threshold for null frame
#define | QOS_CAPA_VALUE 0x10
| the value of the QOS capability info
## Functions
void | apm_init (void)
| Initialize the APM context.
void | apm_start_cfm (uint8_t status)
| Send the AP starting confirmation to the upper layers.
void | apm_set_bss_param (void)
| Set the BSS parameters to the LMAC/MACHW.
void | apm_bss_config_send (void)
| Send the next BSS parameter message present in the list.
void | apm_bcn_set (void)
| Send the AP beacon information to the Lower MAC.
void | apm_stop (struct vif_info_tag *vif)
| Stop the AP.
bool | apm_tx_int_ps_check (struct txdesc *txdesc)
| Checks if an internal frame can be sent.
void | apm_tx_int_ps_postpone (struct txdesc *txdesc, struct sta_info_tag *sta)
| Updates status after postponing an internal frame.
void | apm_tx_int_ps_sent (struct txdesc *txdesc, struct sta_info_tag *sta)
| Updates status after sending a postponed frame.
struct txdesc * | apm_tx_int_ps_get_postpone (struct vif_info_tag *vif, struct sta_info_tag *sta, int *stop)
| Get the next txdesc to push from postpone queue.
void | apm_tx_int_ps_clear (struct vif_info_tag *vif, uint8_t sta_idx)
| Clears PS status regarding internal frame.
## Variables
struct apm | apm_env
| APM module environment declaration.

## Detailed Description

Copyright (C) RivieraWaves 2011-2019.

Declaration of the APM module environment.

Definition in file apm.h.