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
Dieser Commit ist enthalten in:
VIJAY RAJ
2022-04-07 20:16:38 +05:30
committet von Madan Koyyalamudi
Ursprung 79b5add636
Commit 867ce29f88

Datei anzeigen

@@ -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;