Commit bb9f8692 authored by Zhu Yi's avatar Zhu Yi Committed by John W. Linville
Browse files

iwmc3200wifi: Add new Intel Wireless Multicomm 802.11 driver



This driver supports Intel's full MAC wireless multicomm 802.11 hardware.
Although the hardware is a 802.11agn device, we currently only support
802.11ag, in managed and ad-hoc mode (no AP mode for now).

Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarSamuel Ortiz <samuel.ortiz@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e31a16d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -501,5 +501,6 @@ source "drivers/net/wireless/zd1211rw/Kconfig"
source "drivers/net/wireless/rt2x00/Kconfig"
source "drivers/net/wireless/orinoco/Kconfig"
source "drivers/net/wireless/wl12xx/Kconfig"
source "drivers/net/wireless/iwmc3200wifi/Kconfig"

endmenu
+2 −0
Original line number Diff line number Diff line
@@ -60,3 +60,5 @@ obj-$(CONFIG_ATH_COMMON) += ath/
obj-$(CONFIG_MAC80211_HWSIM)	+= mac80211_hwsim.o

obj-$(CONFIG_WL12XX)	+= wl12xx/

obj-$(CONFIG_IWM)	+= iwmc3200wifi/
+23 −0
Original line number Diff line number Diff line
config IWM
	tristate "Intel Wireless Multicomm 3200 WiFi driver"
	depends on MMC && WLAN_80211 && EXPERIMENTAL
	select LIB80211
	select FW_LOADER
	select RFKILL

config IWM_DEBUG
	bool "Enable full debugging output in iwmc3200wifi"
	depends on IWM && DEBUG_FS
	---help---
	  This option will enable debug tracing and setting for iwm

	  You can set the debug level and module through debugfs. By
	  default all modules are set to the IWL_DL_ERR level.
	  To see the list of debug modules and levels, see iwm/debug.h

	  For example, if you want the full MLME debug output:
	  echo 0xff > /debug/iwm/phyN/debug/mlme

	  Or, if you want the full debug, for all modules:
	  echo 0xff > /debug/iwm/phyN/debug/level
	  echo 0xff > /debug/iwm/phyN/debug/modules
+5 −0
Original line number Diff line number Diff line
obj-$(CONFIG_IWM) := iwmc3200wifi.o
iwmc3200wifi-objs += main.o netdev.o rx.o tx.o sdio.o hal.o fw.o
iwmc3200wifi-objs += commands.o wext.o cfg80211.o eeprom.o rfkill.o

iwmc3200wifi-$(CONFIG_IWM_DEBUG) += debugfs.o
+57 −0
Original line number Diff line number Diff line
/*
 * Intel Wireless Multicomm 3200 WiFi driver
 *
 * Copyright (C) 2009 Intel Corporation <ilw@linux.intel.com>
 * Samuel Ortiz <samuel.ortiz@intel.com>
 * Zhu Yi <yi.zhu@intel.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version
 * 2 as published by the Free Software Foundation.
 *
 * 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; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 *
 */

#ifndef __IWM_BUS_H__
#define __IWM_BUS_H__

#include "iwm.h"

struct iwm_if_ops {
	int (*enable)(struct iwm_priv *iwm);
	int (*disable)(struct iwm_priv *iwm);
	int (*send_chunk)(struct iwm_priv *iwm, u8* buf, int count);

	int (*debugfs_init)(struct iwm_priv *iwm, struct dentry *parent_dir);
	void (*debugfs_exit)(struct iwm_priv *iwm);

	const char *umac_name;
	const char *calib_lmac_name;
	const char *lmac_name;
};

static inline int iwm_bus_send_chunk(struct iwm_priv *iwm, u8 *buf, int count)
{
	return iwm->bus_ops->send_chunk(iwm, buf, count);
}

static inline int iwm_bus_enable(struct iwm_priv *iwm)
{
	return iwm->bus_ops->enable(iwm);
}

static inline int iwm_bus_disable(struct iwm_priv *iwm)
{
	return iwm->bus_ops->disable(iwm);
}

#endif
Loading