Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85820
b: refs/heads/master
c: a1a98b7
h: refs/heads/master
v: v3
  • Loading branch information
Chuck Ebbert authored and Jeff Garzik committed Feb 15, 2008
1 parent 5a565fb commit 86bd4ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 4a75834644ae32ded9bed14db39834d6d3bc4793
refs/heads/master: a1a98b72dbd17e53cd92b8e78f404525ebcfd981
12 changes: 10 additions & 2 deletions trunk/drivers/net/pcmcia/smc91c92_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,16 @@ static int mhz_setup(struct pcmcia_device *link)

/* Read the station address from the CIS. It is stored as the last
(fourth) string in the Version 1 Version/ID tuple. */
if (link->prod_id[3]) {
station_addr = link->prod_id[3];
tuple->DesiredTuple = CISTPL_VERS_1;
if (first_tuple(link, tuple, parse) != CS_SUCCESS) {
rc = -1;
goto free_cfg_mem;
}
/* Ugh -- the EM1144 card has two VERS_1 tuples!?! */
if (next_tuple(link, tuple, parse) != CS_SUCCESS)
first_tuple(link, tuple, parse);
if (parse->version_1.ns > 3) {
station_addr = parse->version_1.str + parse->version_1.ofs[3];
if (cvt_ascii_address(dev, station_addr) == 0) {
rc = 0;
goto free_cfg_mem;
Expand Down

0 comments on commit 86bd4ef

Please sign in to comment.