From: Dan Williams Date: Sat, 26 May 2007 02:19:59 +0000 (-0400) Subject: [PATCH] libertas: fix default adhoc channel X-Git-Tag: v2.6.22-rc5~44^2~2^2~20 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac26f81ccecc23ad5d8c20ebe1dd482fa395298b;p=linux-2.6 [PATCH] libertas: fix default adhoc channel Inadvertently removed on a previous commit; causes the first adhoc start to fail if a channel has not been set or no other association has been made. Signed-off-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/fw.c b/drivers/net/wireless/libertas/fw.c index eea18725bb..5463ee618a 100644 --- a/drivers/net/wireless/libertas/fw.c +++ b/drivers/net/wireless/libertas/fw.c @@ -201,6 +201,7 @@ static void wlan_init_adapter(wlan_private * priv) adapter->prescan = 1; memset(&adapter->curbssparams, 0, sizeof(adapter->curbssparams)); + adapter->curbssparams.channel = DEFAULT_AD_HOC_CHANNEL; /* PnP and power profile */ adapter->surpriseremoved = 0;