qcacmn: Define os private structure in pdev object

-Define OS private memory structure and provide pointer
 to store the private data of each umac module's os specific data
-Initialize pdev's os private structure member 'wiphy'.
-Move vendor command definition to common project.

Change-Id: I2033bfbf0fe38e82c3a14942ac9f9bfda45e2c6c
CRs-Fixed: 2002991
This commit is contained in:
Vivek
2017-02-20 18:13:57 +05:30
committed by qcabuildsw
parent 282e024fe1
commit 3e5a3ba077
8 changed files with 3537 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016 The Linux Foundation. All rights reserved.
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the
@@ -20,10 +20,14 @@
* DOC: declares driver functions interfacing with linux kernel
*/
#ifndef _WLAN_CFG80211_H_
#define _WLAN_CFG80211_H_
#include <linux/version.h>
#include <linux/netdevice.h>
#include <net/cfg80211.h>
#include <qca-vendor.h>
#include <qca_vendor.h>
#define COMMON_VENDOR_COMMANDS \
{ \
@@ -41,22 +45,4 @@
.doit = NULL \
},
/**
* wlan_cfg80211_scan() - API to process cfg80211 scan request
* @wiphy: Pointer to wiphy
* @dev: Pointer to net device
* @request: Pointer to scan request
*
* API to trigger scan and update cfg80211 scan database.
* scan dump command can be used to fetch scan results
* on receipt of scan complete event.
*
* Return: 0 for success, non zero for failure
*/
int wlan_cfg80211_scan(struct wiphy *wiphy,
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 6, 0))
struct net_device *dev,
#endif
struct cfg80211_scan_request *request);