Skip to content

Commit 9ad65b1

Browse files
committed
driver: net: wireless: eswin: cannot use NULL as integer
The link ID parameter is defined as integer. So use 0 as parameter. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
1 parent 9dd55a9 commit 9ad65b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/net/wireless/eswin/fullmac/ecrnx_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ static int ecrnx_cfg80211_change_iface(struct wiphy *wiphy,
13471347
{
13481348
if((ECRNX_VIF_TYPE(vif) == NL80211_IFTYPE_AP) || (ECRNX_VIF_TYPE(vif) == NL80211_IFTYPE_P2P_GO))
13491349
{
1350-
ecrnx_cfg80211_stop_ap(wiphy, dev, NULL);
1350+
ecrnx_cfg80211_stop_ap(wiphy, dev, 0);
13511351
}
13521352
else if((ECRNX_VIF_TYPE(vif) == NL80211_IFTYPE_STATION) || (ECRNX_VIF_TYPE(vif) == NL80211_IFTYPE_P2P_CLIENT))
13531353
{
@@ -1712,7 +1712,7 @@ static int ecrnx_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
17121712
key_params.key_len = sme->key_len;
17131713
key_params.seq_len = 0;
17141714
key_params.cipher = sme->crypto.cipher_group;
1715-
ecrnx_cfg80211_add_key(wiphy, dev, NULL, sme->key_idx, false, NULL, &key_params);
1715+
ecrnx_cfg80211_add_key(wiphy, dev, 0, sme->key_idx, false, NULL, &key_params);
17161716
}
17171717
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0)
17181718
else if ((sme->auth_type == NL80211_AUTHTYPE_SAE) &&

0 commit comments

Comments
 (0)