Message ID | 20210211124129.3661993-1-adolf.belka@ipfire.org |
---|---|
State | Accepted |
Commit | f90b0f24a21e95fea350262967558557b89145b8 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4DbxH72ckMz3wps for <patchwork@web04.haj.ipfire.org>; Thu, 11 Feb 2021 12:47:31 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4DbxH56dT1zB4; Thu, 11 Feb 2021 12:47:29 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4Dbx8D6Y8Zz2yrS; Thu, 11 Feb 2021 12:41:32 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature RSA-PSS (4096 bits)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4Dbx8D0QRZz2xSc for <development@lists.ipfire.org>; Thu, 11 Feb 2021 12:41:32 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4Dbx8C2qlMzlh; Thu, 11 Feb 2021 12:41:31 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1613047291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4OrpGOM+NhoSTjIewFfVSv67zhvdQBvM0/XHGBw9q0o=; b=Qz2wehsa70VZv7JS9aDQqIs+Xi3FxJmDQfzIcy2s1m4oXbsTuB/2ENLdMmmgbACSq00FsN tIuiTZfDnoVnIrDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1613047291; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=4OrpGOM+NhoSTjIewFfVSv67zhvdQBvM0/XHGBw9q0o=; b=MY5fo6L9KZpxduaAlylqe7T/6u50Zf5OnPatVhTfRaYIb/Vfq1nwnwwVtHSN7uEBTnQWS7 Sv878b4YvzDMeVgnG0F5lReYGXBUZ/zhvcJ9VoV8GvQOMFeLY3BNsf+q//JwXSA9UMNejy l+XultO3ZErf3vv2SyFz4rNJc5UM9MpF3Xb/HIRh6m3wTq4LNGPdaOLv2Sx1UFVWmg6Jcs /L39cDYQl9qmRp5nzTDgXLFSjZgZXXrunT630EsOZNCnt5xWwGLKbDdJXiBDRxUmSKsgC8 bhgCaGokUXdTBfSw2CknIijF/3f7ovd/PhHxXcgcyq5Sw1jvM1l3SgKtHjLDrw== From: Adolf Belka <adolf.belka@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] wirelessclient.cgi: Fix for bug #12571 Date: Thu, 11 Feb 2021 13:41:29 +0100 Message-Id: <20210211124129.3661993-1-adolf.belka@ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
Series |
wirelessclient.cgi: Fix for bug #12571
|
|
Commit Message
Adolf Belka
Feb. 11, 2021, 12:41 p.m. UTC
- Wirelessclient shows priority 0 to be most preferred and priority 4 as
least preferred. Based on forum posters experience and the wpa_supplicant
man page it is the other way round.
- This patch moves the least preferred title to priority 0 and vice versa
- Will ask bug reporter to test out the patch and confirm it works. The page
is only shown if you have a wifi connection on red.
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
---
html/cgi-bin/wirelessclient.cgi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Hi, This patch looks good. What would help me a little bit more when writing the change log is to put what it does in the subject line (i.e. first line of the Git message). In this case it could have been something along the lines of (Correct order of priority). I noticed this when I wrote the change log for Core Update 154 and I had to go and lookup the bug number which took me some extra time. So, not a big issue here, but it is easier to spot what the patch does when it is in the headline. The bug number should be in the body with in a “Fixes: #12571” style. Best, -Michael > On 11 Feb 2021, at 12:41, Adolf Belka <adolf.belka@ipfire.org> wrote: > > - Wirelessclient shows priority 0 to be most preferred and priority 4 as > least preferred. Based on forum posters experience and the wpa_supplicant > man page it is the other way round. > - This patch moves the least preferred title to priority 0 and vice versa > - Will ask bug reporter to test out the patch and confirm it works. The page > is only shown if you have a wifi connection on red. > > Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> > --- > html/cgi-bin/wirelessclient.cgi | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/html/cgi-bin/wirelessclient.cgi b/html/cgi-bin/wirelessclient.cgi > index e8c3c9628..b1679c128 100644 > --- a/html/cgi-bin/wirelessclient.cgi > +++ b/html/cgi-bin/wirelessclient.cgi > @@ -602,11 +602,11 @@ sub showEditBox() { > </td> > <td width='40%'> > <select name='PRIO'> > - <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'most preferred'})</option> > + <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'least preferred'})</option> > <option value="1" $selected{'PRIO'}{'1'}>1</option> > <option value="2" $selected{'PRIO'}{'2'}>2</option> > <option value="3" $selected{'PRIO'}{'3'}>3</option> > - <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'least preferred'})</option> > + <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'most preferred'})</option> > </select> > </td> > <td colspan="2" width='40%'></td> > -- > 2.30.1 >
Hi Michael, On 12/02/2021 12:48, Michael Tremer wrote: > Hi, > > This patch looks good. > > What would help me a little bit more when writing the change log is to put what it does in the subject line (i.e. first line of the Git message). > > In this case it could have been something along the lines of (Correct order of priority). > > I noticed this when I wrote the change log for Core Update 154 and I had to go and lookup the bug number which took me some extra time. > > So, not a big issue here, but it is easier to spot what the patch does when it is in the headline. > > The bug number should be in the body with in a “Fixes: #12571” style. Makes sense. If you have a few bug fixes in the update you don't want to have to go to bugzilla for each one to find out what it does. I will keep that in mind. Thanks for the input. Regards, Adolf. > > Best, > -Michael > >> On 11 Feb 2021, at 12:41, Adolf Belka <adolf.belka@ipfire.org> wrote: >> >> - Wirelessclient shows priority 0 to be most preferred and priority 4 as >> least preferred. Based on forum posters experience and the wpa_supplicant >> man page it is the other way round. >> - This patch moves the least preferred title to priority 0 and vice versa >> - Will ask bug reporter to test out the patch and confirm it works. The page >> is only shown if you have a wifi connection on red. >> >> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> >> --- >> html/cgi-bin/wirelessclient.cgi | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/html/cgi-bin/wirelessclient.cgi b/html/cgi-bin/wirelessclient.cgi >> index e8c3c9628..b1679c128 100644 >> --- a/html/cgi-bin/wirelessclient.cgi >> +++ b/html/cgi-bin/wirelessclient.cgi >> @@ -602,11 +602,11 @@ sub showEditBox() { >> </td> >> <td width='40%'> >> <select name='PRIO'> >> - <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'most preferred'})</option> >> + <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'least preferred'})</option> >> <option value="1" $selected{'PRIO'}{'1'}>1</option> >> <option value="2" $selected{'PRIO'}{'2'}>2</option> >> <option value="3" $selected{'PRIO'}{'3'}>3</option> >> - <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'least preferred'})</option> >> + <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'most preferred'})</option> >> </select> >> </td> >> <td colspan="2" width='40%'></td> >> -- >> 2.30.1 >> >
Yes, and I suppose other people who read the git change log do not need to do the same thing :) > On 12 Feb 2021, at 12:05, Adolf Belka (ipfire-dev) <adolf.belka@ipfire.org> wrote: > > Hi Michael, > > On 12/02/2021 12:48, Michael Tremer wrote: >> Hi, >> This patch looks good. >> What would help me a little bit more when writing the change log is to put what it does in the subject line (i.e. first line of the Git message). >> In this case it could have been something along the lines of (Correct order of priority). >> I noticed this when I wrote the change log for Core Update 154 and I had to go and lookup the bug number which took me some extra time. >> So, not a big issue here, but it is easier to spot what the patch does when it is in the headline. >> The bug number should be in the body with in a “Fixes: #12571” style. > > Makes sense. If you have a few bug fixes in the update you don't want to have to go to bugzilla for each one to find out what it does. > > I will keep that in mind. > > Thanks for the input. > > Regards, > Adolf. >> Best, >> -Michael >>> On 11 Feb 2021, at 12:41, Adolf Belka <adolf.belka@ipfire.org> wrote: >>> >>> - Wirelessclient shows priority 0 to be most preferred and priority 4 as >>> least preferred. Based on forum posters experience and the wpa_supplicant >>> man page it is the other way round. >>> - This patch moves the least preferred title to priority 0 and vice versa >>> - Will ask bug reporter to test out the patch and confirm it works. The page >>> is only shown if you have a wifi connection on red. >>> >>> Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> >>> --- >>> html/cgi-bin/wirelessclient.cgi | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/html/cgi-bin/wirelessclient.cgi b/html/cgi-bin/wirelessclient.cgi >>> index e8c3c9628..b1679c128 100644 >>> --- a/html/cgi-bin/wirelessclient.cgi >>> +++ b/html/cgi-bin/wirelessclient.cgi >>> @@ -602,11 +602,11 @@ sub showEditBox() { >>> </td> >>> <td width='40%'> >>> <select name='PRIO'> >>> - <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'most preferred'})</option> >>> + <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'least preferred'})</option> >>> <option value="1" $selected{'PRIO'}{'1'}>1</option> >>> <option value="2" $selected{'PRIO'}{'2'}>2</option> >>> <option value="3" $selected{'PRIO'}{'3'}>3</option> >>> - <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'least preferred'})</option> >>> + <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'most preferred'})</option> >>> </select> >>> </td> >>> <td colspan="2" width='40%'></td> >>> -- >>> 2.30.1 >>>
diff --git a/html/cgi-bin/wirelessclient.cgi b/html/cgi-bin/wirelessclient.cgi index e8c3c9628..b1679c128 100644 --- a/html/cgi-bin/wirelessclient.cgi +++ b/html/cgi-bin/wirelessclient.cgi @@ -602,11 +602,11 @@ sub showEditBox() { </td> <td width='40%'> <select name='PRIO'> - <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'most preferred'})</option> + <option value="0" $selected{'PRIO'}{'0'}>0 ($Lang::tr{'least preferred'})</option> <option value="1" $selected{'PRIO'}{'1'}>1</option> <option value="2" $selected{'PRIO'}{'2'}>2</option> <option value="3" $selected{'PRIO'}{'3'}>3</option> - <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'least preferred'})</option> + <option value="4" $selected{'PRIO'}{'4'}>4 ($Lang::tr{'most preferred'})</option> </select> </td> <td colspan="2" width='40%'></td>