![Eliad Peller](/assets/img/avatar_default.png)
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>
46 lines
1 KiB
C
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__ */
|