]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: validate user rate mask before configuring driver
authorJohannes Berg <johannes.berg@intel.com>
Wed, 18 Oct 2017 07:36:51 +0000 (09:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 18 Oct 2017 07:39:56 +0000 (09:39 +0200)
commitcdb1a538691763d6b5ab2c17395c8ac2030043f7
tree9388b69528c728e03a5cb5b749b372ebf24e4593
parentb1ddd59d452c11e43a11f9e549fe646ba4271eb7
mac80211: validate user rate mask before configuring driver

Ben reported that when the user rate mask is rejected for not
matching any basic rate, the driver had already been configured.
This is clearly an oversight in my original change, fix this by
doing the validation before calling the driver.

Reported-by: Ben Greear <greearb@candelatech.com>
Fixes: 332a72adb21f ("mac80211: reject/clear user rate mask if not usable")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c