linux/net/wireless/wext-compat.c

// SPDX-License-Identifier: GPL-2.0
/*
 * cfg80211 - wext compat code
 *
 * This is temporary code until all wireless functionality is migrated
 * into cfg80211, when that happens all the exports here go away and
 * we directly assign the wireless handlers of wireless interfaces.
 *
 * Copyright 2008-2009	Johannes Berg <[email protected]>
 * Copyright (C) 2019-2023 Intel Corporation
 */

#include <linux/export.h>
#include <linux/wireless.h>
#include <linux/nl80211.h>
#include <linux/if_arp.h>
#include <linux/etherdevice.h>
#include <linux/slab.h>
#include <net/iw_handler.h>
#include <net/cfg80211.h>
#include <net/cfg80211-wext.h>
#include "wext-compat.h"
#include "core.h"
#include "rdev-ops.h"

int cfg80211_wext_giwname(struct net_device *dev,
			  struct iw_request_info *info,
			  union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();

int cfg80211_wext_siwmode(struct net_device *dev, struct iw_request_info *info,
			  union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();

int cfg80211_wext_giwmode(struct net_device *dev, struct iw_request_info *info,
			  union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();


int cfg80211_wext_giwrange(struct net_device *dev,
			   struct iw_request_info *info,
			   union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();


/**
 * cfg80211_wext_freq - get wext frequency for non-"auto"
 * @freq: the wext freq encoding
 *
 * Returns: a frequency, or a negative error code, or 0 for auto.
 */
int cfg80211_wext_freq(struct iw_freq *freq)
{}

int cfg80211_wext_siwrts(struct net_device *dev,
			 struct iw_request_info *info,
			 union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();

int cfg80211_wext_giwrts(struct net_device *dev,
			 struct iw_request_info *info,
			 union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();

int cfg80211_wext_siwfrag(struct net_device *dev,
			  struct iw_request_info *info,
			  union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();

int cfg80211_wext_giwfrag(struct net_device *dev,
			  struct iw_request_info *info,
			  union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();

static int cfg80211_wext_siwretry(struct net_device *dev,
				  struct iw_request_info *info,
				  union iwreq_data *wrqu, char *extra)
{}

int cfg80211_wext_giwretry(struct net_device *dev,
			   struct iw_request_info *info,
			   union iwreq_data *wrqu, char *extra)
{}
EXPORT_WEXT_HANDLER();

static int cfg80211_set_encryption(struct cfg80211_registered_device *rdev,
				   struct net_device *dev, bool pairwise,
				   const u8 *addr, bool remove, bool tx_key,
				   int idx, struct key_params *params)
{}

static int cfg80211_wext_siwencode(struct net_device *dev,
				   struct iw_request_info *info,
				   union iwreq_data *wrqu, char *keybuf)
{}

static int cfg80211_wext_siwencodeext(struct net_device *dev,
				      struct iw_request_info *info,
				      union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_giwencode(struct net_device *dev,
				   struct iw_request_info *info,
				   union iwreq_data *wrqu, char *keybuf)
{}

static int cfg80211_wext_siwfreq(struct net_device *dev,
				 struct iw_request_info *info,
				 union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_giwfreq(struct net_device *dev,
				 struct iw_request_info *info,
				 union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_siwtxpower(struct net_device *dev,
				    struct iw_request_info *info,
				    union iwreq_data *data, char *extra)
{}

static int cfg80211_wext_giwtxpower(struct net_device *dev,
				    struct iw_request_info *info,
				    union iwreq_data *data, char *extra)
{}

static int cfg80211_set_auth_alg(struct wireless_dev *wdev,
				 s32 auth_alg)
{}

static int cfg80211_set_wpa_version(struct wireless_dev *wdev, u32 wpa_versions)
{}

static int cfg80211_set_cipher_group(struct wireless_dev *wdev, u32 cipher)
{}

static int cfg80211_set_cipher_pairwise(struct wireless_dev *wdev, u32 cipher)
{}


static int cfg80211_set_key_mgt(struct wireless_dev *wdev, u32 key_mgt)
{}

static int cfg80211_wext_siwauth(struct net_device *dev,
				 struct iw_request_info *info,
				 union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_giwauth(struct net_device *dev,
				 struct iw_request_info *info,
				 union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_siwpower(struct net_device *dev,
				  struct iw_request_info *info,
				  union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_giwpower(struct net_device *dev,
				  struct iw_request_info *info,
				  union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_siwrate(struct net_device *dev,
				 struct iw_request_info *info,
				 union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_giwrate(struct net_device *dev,
				 struct iw_request_info *info,
				 union iwreq_data *wrqu, char *extra)
{}

/* Get wireless statistics.  Called by /proc/net/wireless and by SIOCGIWSTATS */
static struct iw_statistics *cfg80211_wireless_stats(struct net_device *dev)
{}

static int cfg80211_wext_siwap(struct net_device *dev,
			       struct iw_request_info *info,
			       union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_giwap(struct net_device *dev,
			       struct iw_request_info *info,
			       union iwreq_data *wrqu, char *extra)
{}

static int cfg80211_wext_siwessid(struct net_device *dev,
				  struct iw_request_info *info,
				  union iwreq_data *wrqu, char *ssid)
{}

static int cfg80211_wext_giwessid(struct net_device *dev,
				  struct iw_request_info *info,
				  union iwreq_data *wrqu, char *ssid)
{}

static int cfg80211_wext_siwpmksa(struct net_device *dev,
				  struct iw_request_info *info,
				  union iwreq_data *wrqu, char *extra)
{}

static const iw_handler cfg80211_handlers[] =;

const struct iw_handler_def cfg80211_wext_handler =;