]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix cmp_ies
authorJohannes Berg <johannes.berg@intel.com>
Fri, 4 Nov 2011 10:01:46 +0000 (11:01 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Nov 2011 18:19:14 +0000 (13:19 -0500)
commit9bb7018a7a80660e979793f5b34c3ab1247aea75
tree30f568f999c0ffd3a3011f0f495e759b7f19c2f7
parent5529486b744d2cb7fa8c6501e2be56614e3f1ced
cfg80211: fix cmp_ies

When comparing two items by IE, the sort order
wasn't stable, which could lead to issues in the
rbtree. Make it stable by making a missing IE
sort before a present IE.

Also sort by length first if it differs and then
by contents.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/scan.c