X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Fkernel%2Facx-mac80211%2Fpatches%2F200-initial-macaddr.patch;h=c0fdd433b35efe11c66ce89ffc999c55352fe33c;hb=8c2f74cb0ac9bd1ccadf421cb7f62e1acecf0e1b;hp=cc82fecbb319836fac71f1051c37b62bf1b6494a;hpb=f1b4824c865b228039d84b2605b2e7e4f34cddeb;p=openwrt-github%2F.git diff --git a/package/kernel/acx-mac80211/patches/200-initial-macaddr.patch b/package/kernel/acx-mac80211/patches/200-initial-macaddr.patch index cc82fecbb3..c0fdd433b3 100644 --- a/package/kernel/acx-mac80211/patches/200-initial-macaddr.patch +++ b/package/kernel/acx-mac80211/patches/200-initial-macaddr.patch @@ -1,15 +1,13 @@ --- a/cardsetting.c +++ b/cardsetting.c -@@ -710,12 +710,27 @@ static int acx1xx_get_station_id(acx_dev - u8 stationID[4 + acx_ie_descs[ACX1xx_IE_DOT11_STATION_ID].len]; +@@ -715,10 +715,25 @@ int acx1xx_get_station_id(acx_device_t * + u8 *stationID = adev->ie_cmd_buf; const u8 *paddr; int i, res; + const char *prom_addr; + char *prom_getenv(const char *name); - - - res = acx_interrogate(adev, &stationID, ACX1xx_IE_DOT11_STATION_ID); + res = acx_interrogate(adev, stationID, ACX1xx_IE_DOT11_STATION_ID); paddr = &stationID[4]; - for (i = 0; i < ETH_ALEN; i++) { + prom_addr = NULL;