linux/drivers/staging/ks7010/ks_hostif.c

// SPDX-License-Identifier: GPL-2.0
/*
 *   Driver for KeyStream wireless LAN cards.
 *
 *   Copyright (C) 2005-2008 KeyStream Corp.
 *   Copyright (C) 2009 Renesas Technology Corp.
 */

#include <crypto/hash.h>
#include <linux/circ_buf.h>
#include <linux/if_arp.h>
#include <net/iw_handler.h>
#include <uapi/linux/llc.h>
#include "eap_packet.h"
#include "ks_wlan.h"
#include "ks_hostif.h"

#define MICHAEL_MIC_KEY_LEN
#define MICHAEL_MIC_LEN

static inline void inc_smeqhead(struct ks_wlan_private *priv)
{}

static inline void inc_smeqtail(struct ks_wlan_private *priv)
{}

static inline unsigned int cnt_smeqbody(struct ks_wlan_private *priv)
{}

static inline u8 get_byte(struct ks_wlan_private *priv)
{}

static inline u16 get_word(struct ks_wlan_private *priv)
{}

static inline u32 get_dword(struct ks_wlan_private *priv)
{}

static void ks_wlan_hw_wakeup_task(struct work_struct *work)
{}

static void ks_wlan_do_power_save(struct ks_wlan_private *priv)
{}

static
int get_current_ap(struct ks_wlan_private *priv, struct link_ap_info *ap_info)
{}

static u8 read_ie(unsigned char *bp, u8 max, u8 *body)
{}

static int
michael_mic(u8 *key, u8 *data, unsigned int len, u8 priority, u8 *result)
{}

static
int get_ap_information(struct ks_wlan_private *priv, struct ap_info *ap_info,
		       struct local_ap *ap)
{}

static
int hostif_data_indication_wpa(struct ks_wlan_private *priv,
			       unsigned short auth_type)
{}

static
void hostif_data_indication(struct ks_wlan_private *priv)
{}

static
void hostif_mib_get_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_mib_set_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_power_mgmt_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_sleep_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_start_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_connect_indication(struct ks_wlan_private *priv)
{}

static
void hostif_scan_indication(struct ks_wlan_private *priv)
{}

static
void hostif_stop_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_ps_adhoc_set_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_infrastructure_set_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_adhoc_set_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_associate_indication(struct ks_wlan_private *priv)
{}

static
void hostif_bss_scan_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_phy_information_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_mic_failure_confirm(struct ks_wlan_private *priv)
{}

static
void hostif_event_check(struct ks_wlan_private *priv)
{}

/* allocate size bytes, set header size and event */
static void *hostif_generic_request(size_t size, int event)
{}

int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *skb)
{}

static inline void ps_confirm_wait_inc(struct ks_wlan_private *priv)
{}

static inline void send_request_to_device(struct ks_wlan_private *priv,
					  void *data, size_t size)
{}

static void hostif_mib_get_request(struct ks_wlan_private *priv,
				   u32 mib_attribute)
{}

static void hostif_mib_set_request(struct ks_wlan_private *priv,
				   enum mib_attribute attr,
				   enum mib_data_type type,
				   void *data, size_t size)
{}

static inline void hostif_mib_set_request_int(struct ks_wlan_private *priv,
					      enum mib_attribute attr, int val)
{}

static inline void hostif_mib_set_request_bool(struct ks_wlan_private *priv,
					       enum mib_attribute attr,
					       bool val)
{}

static inline void hostif_mib_set_request_ostring(struct ks_wlan_private *priv,
						  enum mib_attribute attr,
						  void *data, size_t size)
{}

static
void hostif_start_request(struct ks_wlan_private *priv, unsigned char mode)
{}

static __le16 ks_wlan_cap(struct ks_wlan_private *priv)
{}

static void init_request(struct ks_wlan_private *priv,
			 struct hostif_request *req)
{}

static
void hostif_ps_adhoc_set_request(struct ks_wlan_private *priv)
{}

static
void hostif_infrastructure_set_request(struct ks_wlan_private *priv, int event)
{}

static
void hostif_adhoc_set_request(struct ks_wlan_private *priv)
{}

static
void hostif_adhoc_set2_request(struct ks_wlan_private *priv)
{}

static
void hostif_stop_request(struct ks_wlan_private *priv)
{}

static
void hostif_phy_information_request(struct ks_wlan_private *priv)
{}

static
void hostif_power_mgmt_request(struct ks_wlan_private *priv,
			       u32 mode, u32 wake_up, u32 receive_dtims)
{}

static
void hostif_sleep_request(struct ks_wlan_private *priv,
			  enum sleep_mode_type mode)
{}

static
void hostif_bss_scan_request(struct ks_wlan_private *priv,
			     unsigned long scan_type, u8 *scan_ssid,
			     u8 scan_ssid_len)
{}

static
void hostif_mic_failure_request(struct ks_wlan_private *priv,
				u16 failure_count, u16 timer)
{}

/* Device I/O Receive indicate */
static void devio_rec_ind(struct ks_wlan_private *priv, unsigned char *p,
			  unsigned int size)
{}

void hostif_receive(struct ks_wlan_private *priv, unsigned char *p,
		    unsigned int size)
{}

static void hostif_sme_set_wep(struct ks_wlan_private *priv, int type)
{}

struct wpa_suite {} __packed;

struct rsn_mode {} __packed;

static void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
{}

static
void hostif_sme_mode_setup(struct ks_wlan_private *priv)
{}

static
void hostif_sme_multicast_set(struct ks_wlan_private *priv)
{}

static void hostif_sme_power_mgmt_set(struct ks_wlan_private *priv)
{}

static void hostif_sme_sleep_set(struct ks_wlan_private *priv)
{}

static
void hostif_sme_set_key(struct ks_wlan_private *priv, int type)
{}

static
void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
{}

/* execute sme */
static void hostif_sme_execute(struct ks_wlan_private *priv, int event)
{}

static void hostif_sme_work(struct work_struct *work)
{}

/* send to Station Management Entity module */
void hostif_sme_enqueue(struct ks_wlan_private *priv, u16 event)
{}

static inline void hostif_aplist_init(struct ks_wlan_private *priv)
{}

static inline void hostif_status_init(struct ks_wlan_private *priv)
{}

static inline void hostif_sme_init(struct ks_wlan_private *priv)
{}

static inline void hostif_wpa_init(struct ks_wlan_private *priv)
{}

static inline void hostif_power_save_init(struct ks_wlan_private *priv)
{}

static inline void hostif_pmklist_init(struct ks_wlan_private *priv)
{}

static inline void hostif_counters_init(struct ks_wlan_private *priv)
{}

int hostif_init(struct ks_wlan_private *priv)
{}

void hostif_exit(struct ks_wlan_private *priv)
{}