mac80211: fix current vs. operating channel in preq/beacon
authorJohannes Berg <johannes.berg@intel.com>
Mon, 23 Jul 2012 12:53:27 +0000 (14:53 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 31 Jul 2012 14:18:56 +0000 (16:18 +0200)
commit6b77863b719a4e32909c218c0d5a83a14f4d98c5
treed259001a7b7c4963de72cd6b3b9bf8d350d2f1c8
parent679ef4eadde1f8e55074427c0d8de2da55ca81f9
mac80211: fix current vs. operating channel in preq/beacon

When sending probe requests, e.g. during software scanning,
these will go out on the *current* channel, so their IEs
need to be built from the current channel. At other times,
e.g. for beacons or probe request templates, the IEs will
be used on the *operating* channel and using the current
channel instead might result in errors.

Add the appropriate parameters to respect the difference.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/mesh_plink.c
net/mac80211/mlme.c
net/mac80211/tx.c
net/mac80211/util.c