Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166574
b: refs/heads/master
c: 50fab07
h: refs/heads/master
v: v3
  • Loading branch information
Alan Jenkins authored and John W. Linville committed Sep 28, 2009
1 parent ddb2ba0 commit b9f7216
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8f1546cadf7ac5e9a40d54089a1c7302264ec49b
refs/heads/master: 50fab0760a6c07cded229357a1351c325a575770
6 changes: 6 additions & 0 deletions trunk/drivers/platform/x86/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,8 @@ static int sony_nc_setup_rfkill(struct acpi_device *device,
struct rfkill *rfk;
enum rfkill_type type;
const char *name;
int result;
bool hwblock;

switch (nc_type) {
case SONY_WIFI:
Expand Down Expand Up @@ -1105,6 +1107,10 @@ static int sony_nc_setup_rfkill(struct acpi_device *device,
if (!rfk)
return -ENOMEM;

sony_call_snc_handle(0x124, 0x200, &result);
hwblock = !(result & 0x1);
rfkill_set_hw_state(rfk, hwblock);

err = rfkill_register(rfk);
if (err) {
rfkill_destroy(rfk);
Expand Down

0 comments on commit b9f7216

Please sign in to comment.