Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79097
b: refs/heads/master
c: 2236761
h: refs/heads/master
i:
  79095: 40e9589
v: v3
  • Loading branch information
Dan Williams authored and David S. Miller committed Jan 28, 2008
1 parent 6e348e1 commit f5affff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: ef3122463d18c0a05b85654473b855a2af494221
refs/heads/master: 2236761b8c53b2e352808576ff51f108b01a0ea8
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ static int orinoco_process_scan_results(struct net_device *dev,
/* Read the entries one by one */
for (; offset + atom_len <= len; offset += atom_len) {
int found = 0;
bss_element *bss;
bss_element *bss = NULL;

/* Get next atom */
atom = (union hermes_scan_info *) (buf + offset);
Expand All @@ -1209,7 +1209,6 @@ static int orinoco_process_scan_results(struct net_device *dev,
if (memcmp(bss->bss.a.essid, atom->a.essid,
le16_to_cpu(atom->a.essid_len)))
continue;
bss->last_scanned = jiffies;
found = 1;
break;
}
Expand All @@ -1220,10 +1219,14 @@ static int orinoco_process_scan_results(struct net_device *dev,
bss_element, list);
list_del(priv->bss_free_list.next);

memcpy(bss, atom, sizeof(bss->bss));
bss->last_scanned = jiffies;
list_add_tail(&bss->list, &priv->bss_list);
}

if (bss) {
/* Always update the BSS to get latest beacon info */
memcpy(&bss->bss, atom, sizeof(bss->bss));
bss->last_scanned = jiffies;
}
}

return 0;
Expand Down

0 comments on commit f5affff

Please sign in to comment.