Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v5.9 50 lines 945 B view raw
1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. 4 * All rights reserved. 5 * 6 * File: wcmd.h 7 * 8 * Purpose: Handles the management command interface functions 9 * 10 * Author: Lyndon Chen 11 * 12 * Date: May 8, 2002 13 * 14 */ 15 16#ifndef __WCMD_H__ 17#define __WCMD_H__ 18 19#include "device.h" 20 21/* Command code */ 22enum vnt_cmd { 23 WLAN_CMD_INIT_MAC80211, 24 WLAN_CMD_SETPOWER, 25 WLAN_CMD_TBTT_WAKEUP, 26 WLAN_CMD_BECON_SEND, 27 WLAN_CMD_CHANGE_ANTENNA 28}; 29 30#define CMD_Q_SIZE 32 31 32/* Command state */ 33enum vnt_cmd_state { 34 WLAN_CMD_INIT_MAC80211_START, 35 WLAN_CMD_SETPOWER_START, 36 WLAN_CMD_TBTT_WAKEUP_START, 37 WLAN_CMD_BECON_SEND_START, 38 WLAN_CMD_CHANGE_ANTENNA_START, 39 WLAN_CMD_IDLE 40}; 41 42struct vnt_private; 43 44void vnt_reset_command_timer(struct vnt_private *priv); 45 46int vnt_schedule_command(struct vnt_private *priv, enum vnt_cmd); 47 48void vnt_run_command(struct work_struct *work); 49 50#endif /* __WCMD_H__ */