From 30da09d9f4a70fc9bcaada7d799e90c9075a3dd8 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Mon, 6 Jan 2025 12:05:07 +0100 Subject: [PATCH] driver: net: wireless: cannot use NULL as integer The link ID parameter is defined as integer. So use 0 as parameter. Signed-off-by: Heinrich Schuchardt --- drivers/net/wireless/eswin/fullmac/ecrnx_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/eswin/fullmac/ecrnx_main.c b/drivers/net/wireless/eswin/fullmac/ecrnx_main.c index dcb8d9d3b50a6..85bab3e7f20c1 100644 --- a/drivers/net/wireless/eswin/fullmac/ecrnx_main.c +++ b/drivers/net/wireless/eswin/fullmac/ecrnx_main.c @@ -1347,7 +1347,7 @@ static int ecrnx_cfg80211_change_iface(struct wiphy *wiphy, { if((ECRNX_VIF_TYPE(vif) == NL80211_IFTYPE_AP) || (ECRNX_VIF_TYPE(vif) == NL80211_IFTYPE_P2P_GO)) { - ecrnx_cfg80211_stop_ap(wiphy, dev, NULL); + ecrnx_cfg80211_stop_ap(wiphy, dev, 0); } else if((ECRNX_VIF_TYPE(vif) == NL80211_IFTYPE_STATION) || (ECRNX_VIF_TYPE(vif) == NL80211_IFTYPE_P2P_CLIENT)) { @@ -1712,7 +1712,7 @@ static int ecrnx_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev, key_params.key_len = sme->key_len; key_params.seq_len = 0; key_params.cipher = sme->crypto.cipher_group; - ecrnx_cfg80211_add_key(wiphy, dev, NULL, sme->key_idx, false, NULL, &key_params); + ecrnx_cfg80211_add_key(wiphy, dev, 0, sme->key_idx, false, NULL, &key_params); } #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0) else if ((sme->auth_type == NL80211_AUTHTYPE_SAE) &&