]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: Restore orig channel values upon disconnect
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Wed, 7 Dec 2011 16:20:08 +0000 (21:50 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Dec 2011 14:30:43 +0000 (09:30 -0500)
commit3e6cc79d61f875dbd37a311d6927e58dec989d06
tree4ae4058d3bd46367166765d1a1ae9acaaac9bba9
parenta2769c720251251460f0251f1d935a5fa44ae392
cfg80211: Restore orig channel values upon disconnect

When we restore regulatory settings the world regulatory domain
is properly reset on cfg80211 (or user prefered regulatory domain)
but we were never setting back channel values for drivers that use
WIPHY_FLAG_CUSTOM_REGULATORY. Set these values up again by using
the orig_ channel parameters.

This fixes restoring custom regulatory settings upon disconnect
events.

Cc: compat@orbit-lab.org
Cc: Paul Stewart <pstew@google.com>
Cc: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Cc: Senthilkumar Balasubramanian <senthilb@qca.qualcomm.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c