← Back to team overview

sony-vaio-z-series team mailing list archive

Re: vaio Z 3G Modem

 

here is a better version

--- sony-laptop.c-orig    2009-11-10 05:50:38.000000000 -0500
+++ sony-laptop.c    2009-11-15 16:36:09.000000000 -0500
@@ -1466,20 +1466,20 @@
     if (sony_find_snc_handle(0x124) == -1)
         return -1;
 
-    ret = sony_call_snc_handle(0x124, 0xb00, &result);
+    ret = sony_call_snc_handle(0x124, 0x00, &result);
     if (ret) {
         printk(KERN_INFO DRV_PFX
                "Unable to enumerate rfkill devices: %x\n", ret);
         return ret;
     }
 
-    if (result & 0x1)
+    if ((result & 0xff) == 0x00)
         sony_nc_setup_rfkill(device, SONY_WIFI);
-    if (result & 0x2)
+    if (((result & 0xff00) >> 8) == 0x10)
         sony_nc_setup_rfkill(device, SONY_BLUETOOTH);
-    if (result & 0x1c)
+    if (((result & 0xff0000) >> 20) == 0x2)
         sony_nc_setup_rfkill(device, SONY_WWAN);
-    if (result & 0x20)
+    if ((result >> 24) == 0x30)
         sony_nc_setup_rfkill(device, SONY_WIMAX);
 
     return 0;

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



Follow ups

References