alistair23-linux/drivers/net/wireless/ti/wlcore/vendor_cmd.h
Eliad Peller e93e15fb47 wlcore/wl18xx: handle smart config events
add defintions and handling for smart config events
(SMART_CONFIG_SYNC_EVENT_ID and SMART_CONFIG_DECODE_EVENT_ID)

parse the relevant info and send it to userspace as
vendor event.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-07-15 15:59:57 -04:00

46 lines
1 KiB
C

/*
* This file is part of wlcore
*
* Copyright (C) 2014 Texas Instruments. All rights reserved.
*
* 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.
*/
#ifndef __WLCORE_VENDOR_H__
#define __WLCORE_VENDOR_H__
#ifdef __KERNEL__
void wlcore_set_vendor_commands(struct wiphy *wiphy);
#endif
#define TI_OUI 0x080028
enum wlcore_vendor_commands {
WLCORE_VENDOR_CMD_SMART_CONFIG_START,
WLCORE_VENDOR_CMD_SMART_CONFIG_STOP,
WLCORE_VENDOR_CMD_SMART_CONFIG_SET_GROUP_KEY,
NUM_WLCORE_VENDOR_CMD,
MAX_WLCORE_VENDOR_CMD = NUM_WLCORE_VENDOR_CMD - 1
};
enum wlcore_vendor_attributes {
WLCORE_VENDOR_ATTR_FREQ,
WLCORE_VENDOR_ATTR_PSK,
WLCORE_VENDOR_ATTR_SSID,
WLCORE_VENDOR_ATTR_GROUP_ID,
WLCORE_VENDOR_ATTR_GROUP_KEY,
NUM_WLCORE_VENDOR_ATTR,
MAX_WLCORE_VENDOR_ATTR = NUM_WLCORE_VENDOR_ATTR - 1
};
enum wlcore_vendor_events {
WLCORE_VENDOR_EVENT_SC_SYNC,
WLCORE_VENDOR_EVENT_SC_DECODE,
};
#endif /* __WLCORE_VENDOR_H__ */