]> 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)
commit81fa24ca88c2ce6f6f9f70430ec62498cd4c6c1c
tree4ae4058d3bd46367166765d1a1ae9acaaac9bba9
parent620a9f605b1a841434db62c57a44723478fa34b3
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