From 8091e28df815fa86ae9b56c354900f74062bc225 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 7 Jun 2008 18:04:00 +0000 Subject: Disable txpower display if Linux WE is too old. --- hardinfo2/arch/linux/common/net.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hardinfo2/arch') diff --git a/hardinfo2/arch/linux/common/net.h b/hardinfo2/arch/linux/common/net.h index bf29a5cc..de978ee1 100644 --- a/hardinfo2/arch/linux/common/net.h +++ b/hardinfo2/arch/linux/common/net.h @@ -148,6 +148,8 @@ void get_wireless_info(int fd, NetInfo *netinfo) memcpy(&netinfo->wi_txpower, &wi_req.u.txpower, sizeof(struct iw_param)); } +#else + netinfo->wi_has_txpower = FALSE; #endif /* WIRELESS_EXT >= 10 */ } #endif /* HAS_LINUX_WE */ -- cgit v1.2.3