Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79123
b: refs/heads/master
c: c12bdc4
h: refs/heads/master
i:
  79121: 46cc86d
  79119: 4cf2d94
v: v3
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent 9f9c524 commit ca1829e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2df2efe96742b78454acdffe6d278ae334fc838
refs/heads/master: c12bdc45d9bc4e576ca54944b708cd45c738ec07
11 changes: 1 addition & 10 deletions trunk/drivers/net/wireless/libertas/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,14 +1122,6 @@ static int lbs_get_encode(struct net_device *dev,
break;
}

if ( adapter->secinfo.wep_enabled
|| adapter->secinfo.WPAenabled
|| adapter->secinfo.WPA2enabled) {
dwrq->flags &= ~IW_ENCODE_DISABLED;
} else {
dwrq->flags |= IW_ENCODE_DISABLED;
}

memset(extra, 0, 16);

mutex_lock(&adapter->lock);
Expand All @@ -1150,14 +1142,13 @@ static int lbs_get_encode(struct net_device *dev,
|| (adapter->secinfo.WPA2enabled)) {
/* return WPA enabled */
dwrq->flags &= ~IW_ENCODE_DISABLED;
dwrq->flags |= IW_ENCODE_NOKEY;
} else {
dwrq->flags |= IW_ENCODE_DISABLED;
}

mutex_unlock(&adapter->lock);

dwrq->flags |= IW_ENCODE_NOKEY;

lbs_deb_wext("key: %02x:%02x:%02x:%02x:%02x:%02x, keylen %d\n",
extra[0], extra[1], extra[2],
extra[3], extra[4], extra[5], dwrq->length);
Expand Down

0 comments on commit ca1829e

Please sign in to comment.