]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix checking nl80211_send_station() return value
authorJohannes Berg <johannes.berg@intel.com>
Fri, 16 Jan 2015 20:05:02 +0000 (21:05 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 16 Jan 2015 20:05:52 +0000 (21:05 +0100)
commit02203007f3b6d1955c8ed516c9bfcd5d9c481dca
tree6182ff537e61976ac4669c09b8bba37a8cfdd248
parente523f0d632eb0a40efa73c3f5b7dbd21f44cd3e4
cfg80211: fix checking nl80211_send_station() return value

The return value from nl80211_send_station() is the length of the
skb, or a negative error, so abort sending the message only when
the return value was negative.

This fixes the ibss_rsn wpa_supplicant test case.

Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c