diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-08-24 21:16:13 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-08-28 14:49:39 -0400 |
commit | 4c7e9aee2d3f738924ba04baecf7bf854e72f07c (patch) | |
tree | 3554c5ea700f665b40ea2893e5aa1365d03b3ce7 /drivers/net/wireless/ath/ath9k/main.c | |
parent | 86162d497d4ceb995b268fc9c7756ae7bdb0bc71 (diff) | |
download | lwn-4c7e9aee2d3f738924ba04baecf7bf854e72f07c.tar.gz lwn-4c7e9aee2d3f738924ba04baecf7bf854e72f07c.zip |
ath9k: Fix channel context creation
If a new context is being added in addition to the current one,
then send the ASSIGN event to abort a running scan since
the addition of a context is usually followed by VIF
assignment and further operations.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index da63487279df..2fcafa6f4eb9 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -2236,6 +2236,8 @@ static int ath9k_add_chanctx(struct ieee80211_hw *hw, conf->def.chan->center_freq); ath_chanctx_set_channel(sc, ctx, &conf->def); + ath_chanctx_event(sc, NULL, ATH_CHANCTX_EVENT_ASSIGN); + mutex_unlock(&sc->mutex); return 0; } |