linux/drivers/net/wireless/st/cw1200/main.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * mac80211 glue code for mac80211 ST-Ericsson CW1200 drivers
 *
 * Copyright (c) 2010, ST-Ericsson
 * Author: Dmitry Tarnyagin <[email protected]>
 *
 * Based on:
 * Copyright (c) 2006, Michael Wu <[email protected]>
 * Copyright (c) 2007-2009, Christian Lamparter <[email protected]>
 * Copyright 2008, Johannes Berg <[email protected]>
 *
 * Based on:
 * - the islsm (softmac prism54) driver, which is:
 *   Copyright 2004-2006 Jean-Baptiste Note <[email protected]>, et al.
 * - stlc45xx driver
 *   Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
 */

#include <linux/module.h>
#include <linux/firmware.h>
#include <linux/etherdevice.h>
#include <linux/vmalloc.h>
#include <linux/random.h>
#include <linux/sched.h>
#include <net/mac80211.h>

#include "cw1200.h"
#include "txrx.h"
#include "hwbus.h"
#include "fwio.h"
#include "hwio.h"
#include "bh.h"
#include "sta.h"
#include "scan.h"
#include "debug.h"
#include "pm.h"

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();

/* Accept MAC address of the form macaddr=0x00,0x80,0xE1,0x30,0x40,0x50 */
static u8 cw1200_mac_template[ETH_ALEN] =;
module_param_array_named();
MODULE_PARM_DESC();

static char *cw1200_sdd_path;
module_param(cw1200_sdd_path, charp, 0644);
MODULE_PARM_DESC();
static int cw1200_refclk;
module_param(cw1200_refclk, int, 0644);
MODULE_PARM_DESC();

int cw1200_power_mode =;
module_param(cw1200_power_mode, int, 0644);
MODULE_PARM_DESC();

#define RATETAB_ENT(_rate, _rateid, _flags)

static struct ieee80211_rate cw1200_rates[] =;

static struct ieee80211_rate cw1200_mcs_rates[] =;

#define cw1200_a_rates
#define cw1200_a_rates_size
#define cw1200_g_rates
#define cw1200_g_rates_size
#define cw1200_n_rates
#define cw1200_n_rates_size


#define CHAN2G(_channel, _freq, _flags)

#define CHAN5G(_channel, _flags)

static struct ieee80211_channel cw1200_2ghz_chantable[] =;

static struct ieee80211_channel cw1200_5ghz_chantable[] =;

static struct ieee80211_supported_band cw1200_band_2ghz =;

static struct ieee80211_supported_band cw1200_band_5ghz =;

static const unsigned long cw1200_ttl[] =;

static const struct ieee80211_ops cw1200_ops =;

static int cw1200_ba_rx_tids =;
static int cw1200_ba_tx_tids =;
module_param(cw1200_ba_rx_tids, int, 0644);
module_param(cw1200_ba_tx_tids, int, 0644);
MODULE_PARM_DESC();
MODULE_PARM_DESC();

#ifdef CONFIG_PM
static const struct wiphy_wowlan_support cw1200_wowlan_support =;
#endif


static struct ieee80211_hw *cw1200_init_common(const u8 *macaddr,
						const bool have_5ghz)
{}

static int cw1200_register_common(struct ieee80211_hw *dev)
{}

static void cw1200_free_common(struct ieee80211_hw *dev)
{}

static void cw1200_unregister_common(struct ieee80211_hw *dev)
{}

/* Clock is in KHz */
u32 cw1200_dpll_from_clk(u16 clk_khz)
{}

int cw1200_core_probe(const struct hwbus_ops *hwbus_ops,
		      struct hwbus_priv *hwbus,
		      struct device *pdev,
		      struct cw1200_common **core,
		      int ref_clk, const u8 *macaddr,
		      const char *sdd_path, bool have_5ghz)
{}
EXPORT_SYMBOL_GPL();

void cw1200_core_release(struct cw1200_common *self)
{}
EXPORT_SYMBOL_GPL();