alistair23-linux/drivers/staging/csr/csr_wifi_nme_ap_sef.c
Greg Kroah-Hartman 635d2b00e5 Staging: add CSR wifi module
This consists of two modules, the driver, and a "helper" module that is
just a wrapper around common kernel functions.  The wrapper module will
be removed soon, but for now it's needed.

These files were based on the csr-linux-wifi-5.0.3-oss.tar.gz package
provided by CSR and Blue Giga, and is covered under the license
specified in the LICENSE.txt file (basically dual BSD and GPLv2).  The
files were flattened out of the deep directory mess they were originally
in, and a few EXPORT_SYMBOL_GPL() were added in order for everything to
link properly with the helper module setup.

Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-19 16:37:01 -07:00

31 lines
984 B
C

/*****************************************************************************
FILE: csr_wifi_nme_sef.c
(c) Cambridge Silicon Radio Limited 2010
Refer to LICENSE.txt included with this source for details
on the license terms.
*****************************************************************************/
#include "csr_wifi_nme_ap_sef.h"
#include "unifi_priv.h"
void CsrWifiNmeApUpstreamStateHandlers(void* drvpriv, CsrWifiFsmEvent* msg)
{
switch(msg->type) {
case CSR_WIFI_NME_AP_START_CFM:
CsrWifiNmeApStartCfmHandler(drvpriv, msg);
break;
case CSR_WIFI_NME_AP_STOP_CFM:
CsrWifiNmeApStopCfmHandler(drvpriv, msg);
break;
case CSR_WIFI_NME_AP_CONFIG_SET_CFM:
CsrWifiNmeApConfigSetCfmHandler(drvpriv,msg);
break;
default:
unifi_error(drvpriv, "CsrWifiNmeApUpstreamStateHandlers: unhandled NME_AP message type 0x%.4X\n",msg->type);
break;
}
}