瀏覽代碼

qcacmn: Add net device operation in os dependent device

Add net device operation in os dependent device structure

Change-Id: Ic519b5731a34c8e3e1a04b73c09ed6cbae21a7c0
CRs-Fixed: 3288210
nobelj 2 年之前
父節點
當前提交
878aebaac1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      qdf/linux/src/i_osdep.h

+ 3 - 0
qdf/linux/src/i_osdep.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2019-2022 Qualcomm Innovation Center, Inc. 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
@@ -139,6 +140,7 @@ typedef struct {
  * @qdf_dev: qdf device
  * @bdev: bus device handle
  * @netdev: net device handle (wifi%d)
+ * @ops: net device operation
  * @intr_tq: tasklet
  * @devstats: net device statistics
  * @bc: hal bus context
@@ -157,6 +159,7 @@ struct _NIC_DEV {
 	qdf_device_t qdf_dev;
 	void *bdev;
 	struct net_device *netdev;
+	struct net_device_ops ops;
 	qdf_bh_t intr_tq;
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36)
 	struct rtnl_link_stats64 devstats;