Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2018, The Linux Foundation. All rights reserved.
0003  *
0004  * Permission to use, copy, modify, and/or distribute this software for any
0005  * purpose with or without fee is hereby granted, provided that the above
0006  * copyright notice and this permission notice appear in all copies.
0007  *
0008  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0009  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0010  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
0011  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0012  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
0013  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
0014  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0015  */
0016 
0017 #include "wcn36xx.h"
0018 
0019 struct ftm_rsp_msg {
0020     u16 msg_id;
0021     u16 msg_body_length;
0022     u32 resp_status;
0023     u8 msg_response[];
0024 } __packed;
0025 
0026 /* The request buffer of FTM which contains a byte of command and the request */
0027 struct ftm_payload {
0028     u16 ftm_cmd_type;
0029     struct ftm_rsp_msg ftm_cmd_msg;
0030 } __packed;
0031 
0032 #define MSG_GET_BUILD_RELEASE_NUMBER 0x32A2
0033 
0034 #ifdef CONFIG_NL80211_TESTMODE
0035 int wcn36xx_tm_cmd(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
0036            void *data, int len);
0037 
0038 #else
0039 static inline int wcn36xx_tm_cmd(struct ieee80211_hw *hw,
0040                  struct ieee80211_vif *vif,
0041                 void *data, int len)
0042 {
0043     return 0;
0044 }
0045 
0046 #endif