linux-next: build failure after merge of the staging tree
Subsystems (4)
Hi Greg,
After merging the staging tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:681:3: error: too few arguments to function 'cfg80211_disconnected'
cfg80211_disconnected(dev, pstrDisconnectNotifInfo->u16reason, pstrDisconnectNotifInfo->ie,
^
In file included from drivers/staging/wilc1000/wilc_wfi_netdevice.h:40:0,
from drivers/staging/wilc1000/wilc_wfi_cfgoperations.h:11,
from drivers/staging/wilc1000/wilc_wfi_cfgoperations.c:13:include/net/cfg80211.h:4584:6: note: declared here
void cfg80211_disconnected(struct net_device *dev, u16 reason,
^
Caused by commit c5c77ba18ea6 ("staging: wilc1000: Add SDIO/SPI 802.11 driver") from the staging tree interacting with commit 80279fb7ba5b ("cfg80211: properly send NL80211_ATTR_DISCONNECTED_BY_AP in disconnect") from the net-next tree.
I applied the below merge fix patch (I didn't know if it should be "true" or "false" - advise would be nice). However, there are still way to many warnings from this driver, so I have disabled it again.
From: Stephen Rothwell <[email protected]>
Date: Wed, 3 Jun 2015 17:09:03 +1000
Subject: [PATCH] staging: wilc1000: fix call to cfg80211_disconnecteddue to API change
--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +1 -1
@@ -679,7 +679,7 @@ static void CfgConnectResult(tenuConnDisconnEvent enuConnDisconnEvent, pstrDisconnectNotifInfo->u16reason =1 ; }cfg80211_disconnected (dev, pstrDisconnectNotifInfo->u16reason, pstrDisconnectNotifInfo->ie, - pstrDisconnectNotifInfo->ie_len,GFP_KERNEL ); + pstrDisconnectNotifInfo->ie_len, false,GFP_KERNEL ); }
Signature · 5 lines
2.1.4 -- Cheers, Stephen Rothwell [email protected]
Hi Stephen, all,
Quoted 4 lines
Caused by commit
c5c77ba18ea6("staging: wilc1000: Add SDIO/SPI 802.11 driver") from the staging tree interacting with commit80279fb7ba5b("cfg80211: properly sendNL80211_ATTR_DISCONNECTED_BY_APin disconnect") from the net-next tree.
I thought I fixed it all, but it looks like this is a new driver.
Quoted 2 lines
I applied the below merge fix patch (I didn't know if it should be "true" or "false" - advise would be nice).
As far as I can tell from looking at a few lines of context it's handling a disconnect event from the firmware, which presumably sends the event upon deauth from the AP; thus it should be 'true' instead, since the argument says "from_ap".
johannes