From c3ba70f4d0e69884c7fe60af8bea9e04b937f9cf Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Sat, 22 Mar 2014 12:50:55 -0700 Subject: [PATCH] P2P: Update op_reg_class in random social channel case Commit 94b84bc7253680a2b201d5c88d36ada91a3e20b4 missed one path where p2p->op_reg_class should have been updated. Set this to 81 during operating channel selection from 2.4 GHz. Signed-off-by: Jouni Malinen --- src/p2p/p2p.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index b2186e787..01b067b7e 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -1230,6 +1230,7 @@ static void p2p_prepare_channel_best(struct p2p_data *p2p) if (num_channels) { p2p_dbg(p2p, "Select random available social channel from 2.4 GHz band as operating channel preference"); + p2p->op_reg_class = 81; op_chan = op_chans; } else { struct p2p_reg_class *class;