Openmoko Bug #2267: [wifi] kernel oops when starting wpa_supplicant
Openmoko Public Trac
bugs at docs.openmoko.org
Mon Apr 13 07:31:25 CEST 2009
#2267: [wifi] kernel oops when starting wpa_supplicant
---------------------+------------------------------------------------------
Reporter: tilman2 | Owner: openmoko-devel
Type: defect | Status: new
Priority: normal | Milestone:
Component: unknown | Version: unspecified
Severity: normal | Keywords:
Haspatch: 0 | Blockedby:
Estimated: | Patchreview:
Blocking: | Reproducible:
---------------------+------------------------------------------------------
Comment(by mwester@…):
The following patch seems to resolve this; I really can't say if this is
the correct resolution, but it seems to work for me:
diff --git a/drivers/ar6000/ar6000/wireless_ext.c
b/drivers/ar6000/ar6000/wireless_ext.c
index d9a5920..ecba5c9 100644
--- a/drivers/ar6000/ar6000/wireless_ext.c
+++ b/drivers/ar6000/ar6000/wireless_ext.c
@@ -976,6 +976,14 @@ static int ar6000_ioctl_giwpower(struct net_device
*dev,
{
AR_SOFTC_T *ar = (AR_SOFTC_T *)netdev_priv(dev);
+ if (ar->arWlanState == WLAN_DISABLED) {
+ return -EIO;
+ }
+
+ if (ar->arWmiReady == FALSE) {
+ return -EIO;
+ }
+
return wmi_get_power_mode_cmd(ar->arWmi);
}
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2267#comment:1>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
More information about the buglog
mailing list