Jelajahi Sumber

qcacld-3.0: Add support for source mac address in add key

Add support for source mac address in add key

Change-Id: Ia16346aecdc40474c31c2f1b187533b7c651acdd
CRs-Fixed: 3169925
VIJAY RAJ 3 tahun lalu
induk
melakukan
867ce29f88
1 mengubah file dengan 18 tambahan dan 0 penghapusan
  1. 18 0
      core/hdd/src/wlan_hdd_cfg80211.c

+ 18 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -19738,11 +19738,20 @@ static int __wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
 }
 
 #ifdef CFG80211_KEY_INSTALL_SUPPORT_ON_WDEV
+#ifdef CFG80211_SET_KEY_WITH_SRC_MAC
 static int wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
 				     struct wireless_dev *wdev,
 				     u8 key_index, bool pairwise,
+				     const u8 *src_addr,
 				     const u8 *mac_addr,
 				     struct key_params *params)
+#else
+static int wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
+				     struct wireless_dev *wdev,
+				     u8 key_index, bool pairwise,
+				     const u8 *mac_addr,
+				     struct key_params *params)
+#endif
 {
 	int errno = -EINVAL;
 	struct osif_vdev_sync *vdev_sync;
@@ -19765,11 +19774,20 @@ static int wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
 	return errno;
 }
 #else
+#ifdef CFG80211_SET_KEY_WITH_SRC_MAC
 static int wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
 				     struct net_device *ndev,
 				     u8 key_index, bool pairwise,
+				     const u8 *src_addr,
 				     const u8 *mac_addr,
 				     struct key_params *params)
+#else
+static int wlan_hdd_cfg80211_add_key(struct wiphy *wiphy,
+				     struct net_device *ndev,
+				     u8 key_index, bool pairwise,
+				     const u8 *mac_addr,
+				     struct key_params *params)
+#endif
 {
 	int errno;
 	struct osif_vdev_sync *vdev_sync;