diff mbox

[6/6] cfg80211: Fix setting channel in mgmt_tx parameters

Message ID 1384794166-10906-6-git-send-email-egrumbach@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Emmanuel Grumbach Nov. 18, 2013, 5:02 p.m. UTC
From: Andrei Otcheretianski <andrei.otcheretianski@intel.com>

The cfg80211_mgmt_tx_params.chan member wasn't set which
caused a bug in offchan operations.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
---
 net/wireless/nl80211.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Emmanuel Grumbach Nov. 18, 2013, 5:04 p.m. UTC | #1
On Mon, Nov 18, 2013 at 7:02 PM, Emmanuel Grumbach <egrumbach@gmail.com> wrote:
> From: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
>
> The cfg80211_mgmt_tx_params.chan member wasn't set which
> caused a bug in offchan operations.
>
> Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
> Reviewed-by: Johannes Berg <johannes.berg@intel.com>

this one should be folded into the previous one - will resend
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index c2627ba..73ca4fc 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -7505,6 +7505,7 @@  static int nl80211_tx_mgmt(struct sk_buff *skb, struct genl_info *info)
 
 	params.buf = nla_data(info->attrs[NL80211_ATTR_FRAME]);
 	params.len = nla_len(info->attrs[NL80211_ATTR_FRAME]);
+	params.chan = chandef.chan;
 	err = cfg80211_mlme_mgmt_tx(rdev, wdev, &params, &cookie);
 	if (err)
 		goto free_msg;