From 5f01c706267c595de92406a32e7f31ef5056c2d0 Mon Sep 17 00:00:00 2001 From: Lucas de Castro Borges Date: Mon, 22 Apr 2024 00:35:53 -0300 Subject: New upstream version 2.0.3pre --- modules/network/net.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/network/net.c') diff --git a/modules/network/net.c b/modules/network/net.c index a75cf8b6..9a5cb5f1 100644 --- a/modules/network/net.c +++ b/modules/network/net.c @@ -1,10 +1,10 @@ /* * HardInfo - Displays System Information - * Copyright (C) 2003-2008 Leandro A. F. Pereira + * Copyright (C) 2003-2008 L. A. F. Pereira * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, version 2. + * the Free Software Foundation, version 2 or later. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -146,7 +146,7 @@ void get_wireless_info(int fd, NetInfo *netinfo) if (ioctl(fd, SIOCGIWMODE, &wi_req) < 0) { netinfo->wi_mode = 0; } else { - if (wi_req.u.mode >= 0 && wi_req.u.mode < 6) { + if (wi_req.u.mode < 6) { netinfo->wi_mode = wi_req.u.mode; } else { netinfo->wi_mode = 6; -- cgit v1.2.3