lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200612071547.05987.uberlord@gentoo.org>
Date:	Thu, 7 Dec 2006 15:47:05 +0000
From:	Roy Marples <uberlord@...too.org>
To:	netdev@...r.kernel.org
Cc:	linville@...driver.com
Subject: [PATCH] prism54: set carrier flags correctly

prism54 should set the carrier flags correctly when it thinks the link can be used.

Signed-off-by: Roy Marples <uberlord@...too.org>

--- a/drivers/net/wireless/prism54/isl_ioctl.c	2006-08-24 10:48:50.000000000 +0100
+++ b/drivers/net/wireless/prism54/isl_ioctl.c	2006-08-24 10:29:32.000000000 +0100
@@ -1573,8 +1573,11 @@
 		} else
 			send_simple_event(netdev_priv(ndev),
 					  "Link established");
-	} else
+		netif_carrier_on(ndev);
+	} else {
 		send_simple_event(netdev_priv(ndev), "Link lost");
+		netif_carrier_off(ndev);
+	}
 }
 
 /* Beacon/ProbeResp payload header */
--- a/drivers/net/wireless/prism54/islpci_dev.c	2006-08-24 10:48:50.000000000 +0100
+++ b/drivers/net/wireless/prism54/islpci_dev.c	2006-08-24 10:30:31.000000000 +0100
@@ -387,7 +387,9 @@
 	}
 
 	netif_start_queue(ndev);
-/*      netif_mark_up( ndev ); */
+
+	/* Turn off carrier unless we know we have associated */
+	netif_carrier_off(ndev);
 
 	return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ