mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2024-05-14 09:09:20 +00:00
33d9f8e4f3
Add initial MxM (multi-chip-multi-interface) wifi driver. The driver target is to support 88w8987/88w8997/88w9098, currently it only supports 88w8987. The MxM wifi driver is merged from below repo and applied some patches for block and build issues. ssh://git@bitbucket.sw.nxp.com/wcswrel/ rel-nxp-wifi-fp92-bt-fp85-linux-android-mxm4x17169-gpl.git The sdk only includes application, the driver already is merged into linux kernel. Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
61 lines
2 KiB
C
61 lines
2 KiB
C
/** @file timestamp.h
|
|
*
|
|
* @brief This file contains definitions used for timestamp feature
|
|
*
|
|
*
|
|
* Copyright 2014-2020 NXP
|
|
*
|
|
* NXP CONFIDENTIAL
|
|
* The source code contained or described herein and all documents related to
|
|
* the source code (Materials) are owned by NXP, its
|
|
* suppliers and/or its licensors. Title to the Materials remains with NXP,
|
|
* its suppliers and/or its licensors. The Materials contain
|
|
* trade secrets and proprietary and confidential information of NXP, its
|
|
* suppliers and/or its licensors. The Materials are protected by worldwide copyright
|
|
* and trade secret laws and treaty provisions. No part of the Materials may be
|
|
* used, copied, reproduced, modified, published, uploaded, posted,
|
|
* transmitted, distributed, or disclosed in any way without NXP's prior
|
|
* express written permission.
|
|
*
|
|
* No license under any patent, copyright, trade secret or other intellectual
|
|
* property right is granted to or conferred upon you by disclosure or delivery
|
|
* of the Materials, either expressly, by implication, inducement, estoppel or
|
|
* otherwise. Any license under such intellectual property rights must be
|
|
* express and approved by NXP in writing.
|
|
*
|
|
*/
|
|
|
|
#ifndef _TIMESTAMP_H_
|
|
#define _TIMESTAMP_H_
|
|
|
|
#include "mlanutl.h"
|
|
#include <linux/if_packet.h>
|
|
#include <netinet/ether.h>
|
|
#include <linux/net_tstamp.h>
|
|
|
|
#define BUF_SIZ 1024
|
|
#define ARP_FORMAT "%s %*s %*s %s %*s %s"
|
|
#define ARP_FILE_BUFFER_LEN (1024)
|
|
|
|
struct interface_data {
|
|
char ip[20];
|
|
int mac[20];
|
|
char interface[20];
|
|
};
|
|
|
|
/**
|
|
* 802.1 Local Experimental 1.
|
|
*/
|
|
#ifndef ETH_P_802_EX1
|
|
#define ETH_P_802_EX1 0x88B5
|
|
#endif
|
|
|
|
void receive_timestamp(int argc, char *argv[]);
|
|
int send_timestamp(int argc, char *argv[]);
|
|
void get_mac(char *ifc, char *ip);
|
|
void recvpacket(int sock, int recvmsg_flags, int siocgstamp, int siocgstampns);
|
|
void printpacket(struct msghdr *msg, int res, int sock,
|
|
int recvmsg_flags, int siocgstamp, int siocgstampns);
|
|
|
|
#endif //_TIMESTAMP_H_
|