nl80211: Always register management frames handler
authorAvraham Stern <avraham.stern@intel.com>
Mon, 29 Dec 2014 02:14:57 +0000 (21:14 -0500)
committerJouni Malinen <j@w1.fi>
Sun, 4 Jan 2015 16:28:03 +0000 (18:28 +0200)
commit730a0d16bf2dd6f3d7450fd6ee7b27b0533f3696
treeffd5b0f6e1b12c426680ca6234a41143b89e4ecf
parent4e8f31e2ef599fbe350f4cf39ecc8f2a2e818bd6
nl80211: Always register management frames handler

If registering WMM-AC ADDTS response action frame or WMM-AC DELTS
action frame fails, the management frame handler is not being
registered. This results with a segmentation fault when trying to
unsubscribe the handler when the interface is removed.
Fix it by always registering the handler and just returning a negative
value to note that the action frame could not be registered.

This fixes an issue introduced in the commit
dfa8787833f0b237f954b01233cad3527f3d4805 ('nl80211: Implement
add_ts/del_ts ops').

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
src/drivers/driver_nl80211.c