nl80211: send deauth reason if locally generated
authorDavid Spinadel <david.spinadel@intel.com>
Mon, 18 Dec 2017 10:14:05 +0000 (12:14 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 19 Dec 2017 09:13:01 +0000 (10:13 +0100)
commit86b6c465727cc917ec8367fef29b20ccf8ffa081
treebca6194ca0be959610730801a376a1292c430563
parente7881bd5942df7df2fc450fd2aaa753fc4c4e125
nl80211: send deauth reason if locally generated

Send disconnection reason code to user space even if it's locally
generated, since some tests that check reason code may fail because of
the current behavior.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c