linux/drivers/net/wireless/ath/carl9170/main.c

/*
 * Atheros CARL9170 driver
 *
 * mac80211 interaction code
 *
 * Copyright 2008, Johannes Berg <[email protected]>
 * Copyright 2009, 2010, Christian Lamparter <[email protected]>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; see the file COPYING.  If not, see
 * http://www.gnu.org/licenses/.
 *
 * This file incorporates work covered by the following copyright and
 * permission notice:
 *    Copyright (c) 2007-2008 Atheros Communications, Inc.
 *
 *    Permission to use, copy, modify, and/or distribute this software for any
 *    purpose with or without fee is hereby granted, provided that the above
 *    copyright notice and this permission notice appear in all copies.
 *
 *    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 *    WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 *    MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 *    ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 *    WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 *    ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 *    OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#include <linux/slab.h>
#include <linux/module.h>
#include <linux/etherdevice.h>
#include <linux/random.h>
#include <net/mac80211.h>
#include <net/cfg80211.h>
#include "hw.h"
#include "carl9170.h"
#include "cmd.h"

static bool modparam_nohwcrypt;
module_param_named(nohwcrypt, modparam_nohwcrypt, bool, 0444);
MODULE_PARM_DESC();

int modparam_noht;
module_param_named(noht, modparam_noht, int, 0444);
MODULE_PARM_DESC();

#define RATE

struct ieee80211_rate __carl9170_ratetable[] =;
#undef RATE

#define carl9170_g_ratetable
#define carl9170_g_ratetable_size
#define carl9170_a_ratetable
#define carl9170_a_ratetable_size

/*
 * NB: The hw_value is used as an index into the carl9170_phy_freq_params
 *     array in phy.c so that we don't have to do frequency lookups!
 */
#define CHAN

static struct ieee80211_channel carl9170_2ghz_chantable[] =;

static struct ieee80211_channel carl9170_5ghz_chantable[] =;
#undef CHAN

#define CARL9170_HT_CAP

static struct ieee80211_supported_band carl9170_band_2GHz =;

static struct ieee80211_supported_band carl9170_band_5GHz =;

static void carl9170_ampdu_gc(struct ar9170 *ar)
{}

static void carl9170_flush(struct ar9170 *ar, bool drop_queued)
{}

static void carl9170_flush_ba(struct ar9170 *ar)
{}

static void carl9170_zap_queues(struct ar9170 *ar)
{}

#define CARL9170_FILL_QUEUE(queue, ai_fs, cwmin, cwmax, _txop)

static int carl9170_op_start(struct ieee80211_hw *hw)
{}

static void carl9170_cancel_worker(struct ar9170 *ar)
{}

static void carl9170_op_stop(struct ieee80211_hw *hw, bool suspend)
{}

static void carl9170_restart_work(struct work_struct *work)
{}

void carl9170_restart(struct ar9170 *ar, const enum carl9170_restart_reasons r)
{}

static void carl9170_ping_work(struct work_struct *work)
{}

static int carl9170_init_interface(struct ar9170 *ar,
				   struct ieee80211_vif *vif)
{}

static int carl9170_op_add_interface(struct ieee80211_hw *hw,
				     struct ieee80211_vif *vif)
{}

static void carl9170_op_remove_interface(struct ieee80211_hw *hw,
					 struct ieee80211_vif *vif)
{}

void carl9170_ps_check(struct ar9170 *ar)
{}

/* caller must hold ar->mutex */
static int carl9170_ps_update(struct ar9170 *ar)
{}

static void carl9170_ps_work(struct work_struct *work)
{}

static int carl9170_update_survey(struct ar9170 *ar, bool flush, bool noise)
{}

static void carl9170_stat_work(struct work_struct *work)
{}

static int carl9170_op_config(struct ieee80211_hw *hw, u32 changed)
{}

static u64 carl9170_op_prepare_multicast(struct ieee80211_hw *hw,
					 struct netdev_hw_addr_list *mc_list)
{}

static void carl9170_op_configure_filter(struct ieee80211_hw *hw,
					 unsigned int changed_flags,
					 unsigned int *new_flags,
					 u64 multicast)
{}


static void carl9170_op_bss_info_changed(struct ieee80211_hw *hw,
					 struct ieee80211_vif *vif,
					 struct ieee80211_bss_conf *bss_conf,
					 u64 changed)
{}

static u64 carl9170_op_get_tsf(struct ieee80211_hw *hw,
			       struct ieee80211_vif *vif)
{}

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

static int carl9170_op_sta_add(struct ieee80211_hw *hw,
			       struct ieee80211_vif *vif,
			       struct ieee80211_sta *sta)
{}

static int carl9170_op_sta_remove(struct ieee80211_hw *hw,
				struct ieee80211_vif *vif,
				struct ieee80211_sta *sta)
{}

static int carl9170_op_conf_tx(struct ieee80211_hw *hw,
			       struct ieee80211_vif *vif,
			       unsigned int link_id, u16 queue,
			       const struct ieee80211_tx_queue_params *param)
{}

static void carl9170_ampdu_work(struct work_struct *work)
{}

static int carl9170_op_ampdu_action(struct ieee80211_hw *hw,
				    struct ieee80211_vif *vif,
				    struct ieee80211_ampdu_params *params)
{}

#ifdef CONFIG_CARL9170_WPC
static int carl9170_register_wps_button(struct ar9170 *ar)
{}
#endif /* CONFIG_CARL9170_WPC */

#ifdef CONFIG_CARL9170_HWRNG
static int carl9170_rng_get(struct ar9170 *ar)
{}

static int carl9170_rng_read(struct hwrng *rng, u32 *data)
{}

static int carl9170_register_hwrng(struct ar9170 *ar)
{}
#endif /* CONFIG_CARL9170_HWRNG */

static int carl9170_op_get_survey(struct ieee80211_hw *hw, int idx,
				struct survey_info *survey)
{}

static void carl9170_op_flush(struct ieee80211_hw *hw,
			      struct ieee80211_vif *vif,
			      u32 queues, bool drop)
{}

static int carl9170_op_get_stats(struct ieee80211_hw *hw,
				 struct ieee80211_low_level_stats *stats)
{}

static void carl9170_op_sta_notify(struct ieee80211_hw *hw,
				   struct ieee80211_vif *vif,
				   enum sta_notify_cmd cmd,
				   struct ieee80211_sta *sta)
{}

static bool carl9170_tx_frames_pending(struct ieee80211_hw *hw)
{}

static const struct ieee80211_ops carl9170_ops =;

void *carl9170_alloc(size_t priv_size)
{}

static int carl9170_read_eeprom(struct ar9170 *ar)
{}

static int carl9170_parse_eeprom(struct ar9170 *ar)
{}

static void carl9170_reg_notifier(struct wiphy *wiphy,
				  struct regulatory_request *request)
{}

int carl9170_register(struct ar9170 *ar)
{}

void carl9170_unregister(struct ar9170 *ar)
{}

void carl9170_free(struct ar9170 *ar)
{}