![]() |
|
|||
0001 /* SPDX-License-Identifier: (GPL-2.0 OR MPL-1.1) */ 0002 /* 0003 * 0004 * Declares constants and types for the p80211 ioctls 0005 * 0006 * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved. 0007 * -------------------------------------------------------------------- 0008 * 0009 * linux-wlan 0010 * 0011 * The contents of this file are subject to the Mozilla Public 0012 * License Version 1.1 (the "License"); you may not use this file 0013 * except in compliance with the License. You may obtain a copy of 0014 * the License at http://www.mozilla.org/MPL/ 0015 * 0016 * Software distributed under the License is distributed on an "AS 0017 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 0018 * implied. See the License for the specific language governing 0019 * rights and limitations under the License. 0020 * 0021 * Alternatively, the contents of this file may be used under the 0022 * terms of the GNU Public License version 2 (the "GPL"), in which 0023 * case the provisions of the GPL are applicable instead of the 0024 * above. If you wish to allow the use of your version of this file 0025 * only under the terms of the GPL and not to allow others to use 0026 * your version of this file under the MPL, indicate your decision 0027 * by deleting the provisions above and replace them with the notice 0028 * and other provisions required by the GPL. If you do not delete 0029 * the provisions above, a recipient may use your version of this 0030 * file under either the MPL or the GPL. 0031 * 0032 * -------------------------------------------------------------------- 0033 * 0034 * Inquiries regarding the linux-wlan Open Source project can be 0035 * made directly to: 0036 * 0037 * AbsoluteValue Systems Inc. 0038 * info@linux-wlan.com 0039 * http://www.linux-wlan.com 0040 * 0041 * -------------------------------------------------------------------- 0042 * 0043 * Portions of the development of this software were funded by 0044 * Intersil Corporation as part of PRISM(R) chipset product development. 0045 * 0046 * -------------------------------------------------------------------- 0047 * 0048 * While this file is called 'ioctl' is purpose goes a little beyond 0049 * that. This file defines the types and contants used to implement 0050 * the p80211 request/confirm/indicate interfaces on Linux. The 0051 * request/confirm interface is, in fact, normally implemented as an 0052 * ioctl. The indicate interface on the other hand, is implemented 0053 * using the Linux 'netlink' interface. 0054 * 0055 * The reason I say that request/confirm is 'normally' implemented 0056 * via ioctl is that we're reserving the right to be able to send 0057 * request commands via the netlink interface. This will be necessary 0058 * if we ever need to send request messages when there aren't any 0059 * wlan network devices present (i.e. sending a message that only p80211 0060 * cares about. 0061 * -------------------------------------------------------------------- 0062 */ 0063 0064 #ifndef _P80211IOCTL_H 0065 #define _P80211IOCTL_H 0066 0067 /* p80211 ioctl "request" codes. See argument 2 of ioctl(2). */ 0068 0069 #define P80211_IFTEST (SIOCDEVPRIVATE + 0) 0070 #define P80211_IFREQ (SIOCDEVPRIVATE + 1) 0071 0072 /*----------------------------------------------------------------*/ 0073 /* Magic number, a quick test to see we're getting the desired struct */ 0074 0075 #define P80211_IOCTL_MAGIC (0x4a2d464dUL) 0076 0077 /*----------------------------------------------------------------*/ 0078 /* A ptr to the following structure type is passed as the third */ 0079 /* argument to the ioctl system call when issuing a request to */ 0080 /* the p80211 module. */ 0081 0082 struct p80211ioctl_req { 0083 char name[WLAN_DEVNAMELEN_MAX]; 0084 char __user *data; 0085 u32 magic; 0086 u16 len; 0087 u32 result; 0088 } __packed; 0089 0090 #endif /* _P80211IOCTL_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |