Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324731
b: refs/heads/master
c: 70a1fb1
h: refs/heads/master
i:
  324729: 7a88c1c
  324727: 7695ca5
v: v3
  • Loading branch information
Wei Yongjun authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent 3a30125 commit 42b8ab7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 4148aa2ce73ed7bc7afe8dab8382f653f6bfecf2
refs/heads/master: 70a1fb1933a3ecfc265444f954a8c0310cdf293a
8 changes: 2 additions & 6 deletions trunk/drivers/staging/vt6656/hostap.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,7 @@ static int hostap_set_encryption(PSDevice pDevice,
return -EINVAL;
}

if (param->sta_addr[0] == 0xff && param->sta_addr[1] == 0xff &&
param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff &&
param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff) {
if (is_broadcast_ether_addr(param->sta_addr)) {
if (param->u.crypt.idx >= MAX_GROUP_KEY)
return -EINVAL;
iNodeIndex = 0;
Expand Down Expand Up @@ -663,9 +661,7 @@ static int hostap_get_encryption(PSDevice pDevice,

param->u.crypt.err = 0;

if (param->sta_addr[0] == 0xff && param->sta_addr[1] == 0xff &&
param->sta_addr[2] == 0xff && param->sta_addr[3] == 0xff &&
param->sta_addr[4] == 0xff && param->sta_addr[5] == 0xff) {
if (is_broadcast_ether_addr(param->sta_addr)) {
iNodeIndex = 0;
} else {
if (BSSbIsSTAInNodeDB(pDevice, param->sta_addr, &iNodeIndex) == FALSE) {
Expand Down

0 comments on commit 42b8ab7

Please sign in to comment.