linux/drivers/net/wireless/silabs/wfx/key.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Key management related functions.
 *
 * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
 * Copyright (c) 2010, ST-Ericsson
 */
#include <linux/etherdevice.h>
#include <net/mac80211.h>

#include "key.h"
#include "wfx.h"
#include "hif_tx_mib.h"

static int wfx_alloc_key(struct wfx_dev *wdev)
{}

static void wfx_free_key(struct wfx_dev *wdev, int idx)
{}

static u8 fill_wep_pair(struct wfx_hif_wep_pairwise_key *msg,
			struct ieee80211_key_conf *key, u8 *peer_addr)
{}

static u8 fill_wep_group(struct wfx_hif_wep_group_key *msg,
			 struct ieee80211_key_conf *key)
{}

static u8 fill_tkip_pair(struct wfx_hif_tkip_pairwise_key *msg,
			 struct ieee80211_key_conf *key, u8 *peer_addr)
{}

static u8 fill_tkip_group(struct wfx_hif_tkip_group_key *msg, struct ieee80211_key_conf *key,
			  struct ieee80211_key_seq *seq, enum nl80211_iftype iftype)
{}

static u8 fill_ccmp_pair(struct wfx_hif_aes_pairwise_key *msg,
			 struct ieee80211_key_conf *key, u8 *peer_addr)
{}

static u8 fill_ccmp_group(struct wfx_hif_aes_group_key *msg,
			  struct ieee80211_key_conf *key, struct ieee80211_key_seq *seq)
{}

static u8 fill_sms4_pair(struct wfx_hif_wapi_pairwise_key *msg,
			 struct ieee80211_key_conf *key, u8 *peer_addr)
{}

static u8 fill_sms4_group(struct wfx_hif_wapi_group_key *msg,
			  struct ieee80211_key_conf *key)
{}

static u8 fill_aes_cmac_group(struct wfx_hif_igtk_group_key *msg,
			      struct ieee80211_key_conf *key, struct ieee80211_key_seq *seq)
{}

static int wfx_add_key(struct wfx_vif *wvif, struct ieee80211_sta *sta,
		       struct ieee80211_key_conf *key)
{}

static int wfx_remove_key(struct wfx_vif *wvif, struct ieee80211_key_conf *key)
{}

int wfx_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, struct ieee80211_vif *vif,
		struct ieee80211_sta *sta, struct ieee80211_key_conf *key)
{}