# /space/home/slher/rel/Beken/v6_4_5/macsw/ip/lmac/src/vif/vif_mgmt.c File Reference

Virtual Interface Management implementation. More...

`#include "vif_mgmt.h"`
`#include "mm.h"`
`#include "chan.h"`
`#include "mm_bcn.h"`
`#include "co_utils.h"`
`#include "co_status.h"`
`#include "dbg.h"`
`#include "txl_cntrl.h"`
`#include "p2p.h"`
`#include "ps.h"`
`#include "td.h"`
`#include "mesh.h"`
`#include "me_utils.h"`
`#include "tpc.h"`

Go to the source code of this file.

## Functions
static void | vif_mgmt_bcn_to_evt (void *env)
| Handles the action to be performed just before beacon reception.
static void | vif_mgmt_entry_init (struct vif_info_tag *vif)
| Initializes (resets) the content of a VIF entry.
void | vif_mgmt_init (void)
| Initialize all the entries of the station table.
void | vif_mgmt_reset (void)
| Tries to send all the internal frames postponed during a reset procedure once the TX path has been fully reset.
uint8_t | vif_mgmt_register (struct mac_addr const *mac_addr, uint8_t vif_type, bool p2p, uint8_t *vif_idx)
| Allocates new VIF entry, initializes it and fills it with information passed as parameters.
void | vif_mgmt_unregister (uint8_t vif_idx)
| Deletes the VIF entry.
void | vif_mgmt_add_key (struct mm_key_add_req const *param, uint8_t hw_key_idx)
| Add a key for a VIF.
void | vif_mgmt_del_key (struct vif_info_tag *vif, uint8_t keyid)
| delete a key for a VIF
uint8_t | vif_mgmt_get_staid (const struct vif_info_tag *vif, const struct mac_addr *sta_addr)
| Return IDX of a STA linked to the vif.
void | vif_mgmt_send_postponed_frame (struct vif_info_tag *vif)
| Try to send TX frame whose transmission had been postponed due to bad current channel and peer absence.
void | vif_mgmt_bcn_to_prog (struct vif_info_tag *vif)
| Program TimeOut for beacon reception.
void | vif_mgmt_bcn_recv (struct vif_info_tag *vif)
| Update Channel status after reception of BEACON.
void | vif_mgmt_set_ap_bcn_int (struct vif_info_tag *vif, uint16_t bcn_int)
| Set the Beacon Interval value for an AP or a Mesh Point VIF (should have been verified before any call to this function).
void | vif_mgmt_switch_channel (struct vif_info_tag *vif)
| Execute Channel switch at the end of a CSA.
struct vif_info_tag * | vif_mgmt_get_single_sta_vif (void)
| Check if only one VIF is registered, and is of STA type.
void | vif_mgmt_set_bssid_mask (void)
| Set BSSID mask according to BSSID index and Maximum BSSID indicator.
## Variables
struct vif_mgmt_env_tag | vif_mgmt_env
| VIF management environment variable.
struct vif_info_tag | vif_info_tab [NX_VIRT_DEV_MAX]
| VIF information table.

## Detailed Description

Virtual Interface Management implementation.

Copyright (C) RivieraWaves 2011-2019

Definition in file vif_mgmt.c.