Skip to content

Commit cf49c1c

Browse files
authored
Merge pull request #4 from xypron/bug_ecrnx_main
driver: net: wireless: eswin: cannot use NULL as integer
2 parents 9dd55a9 + 9ad65b1 commit cf49c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)