TDLS: Work around interop issues with supported operating class
authorSunil Dutt Undekari <usdutt@qti.qualcomm.com>
Tue, 25 Feb 2014 08:50:48 +0000 (14:20 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 27 Feb 2014 14:38:14 +0000 (16:38 +0200)
commit1578796a31b4a2d2f0e8a83cf0d714cf7763ddba
treed4268320ef66ae05e323ae456d5b6ecfc9ed69f2
parenta96066a5d3a6c0cf45bcc8f29199469a7cdf4d99
TDLS: Work around interop issues with supported operating class

It looks like some deployed devices may send an invalid supported
operating class element (length = 0) in TDLS Setup messages. With
cfg80211, this results in the NL80211_CMD_SET_STATION command failing
due to an invalid argument (cfg80211 mandates supported operating
classes information to have a length of 2..253 octets).

Work around this interop issue by ignoring the Supported Operating Class
element if it has invalid length.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/rsn_supp/wpa_ie.c