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)
commit5ce543d148bf7590294e76bc30f4c4d6777fe094
tree4ae4058d3bd46367166765d1a1ae9acaaac9bba9
parent061acaae76dfb760f4f3fddf0cde43915b7d673c
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