aboutsummaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorShanyu Zhao <[email protected]>2010-07-28 13:40:39 -0700
committerJohn W. Linville <[email protected]>2010-08-24 16:32:01 -0400
commitaa2dc6b529d781a375f7ad3185198f6315865b06 (patch)
tree86941fc4b57927321c2f8f96630aec4574b1212d /scripts/objdiff
parent81e95430aaa898799421617c2db2882386bab69a (diff)
iwlwifi: avoid race condition in channel change
When iwl_mac_config() is called by mac80211, the channel pointer hw->conf->channel can potentially change, resulting in mismatch band and channel number when configuring RXON command. To avoid this situation, save the channel pointer in local variables and validate the channel before using it. Note that priv->mutex is locked during the whole function so the local variables are safe. Same change is applied to iwl_mac_channel_switch() since basically it copies code from iwl_mac_config(). Also removed an outdated comment in the flow. Signed-off-by: Shanyu Zhao <[email protected]> Signed-off-by: Wey-Yi Guy <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions