[Prism54-devel] [PATCH] Support standard SIOCGIWAP event when connecting

Jens Maurer Jens.Maurer@gmx.net
Wed, 31 Dec 2003 18:23:28 +0100


This is a multi-part message in MIME format.
--------------080802090601090406090608
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hello!

We're using custom events throughout, although sometimes
standard events are available.

I've attached a patch that uses a standard event when
a link is estabished.  "iwevent" now reports:

16:30:14.172061    eth1     New Access Point/Cell address:00:30:F1:zz:xx:yy

Jens Maurer

--------------080802090601090406090608
Content-Type: text/plain;
 name="std-link-event.patch"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="std-link-event.patch"

LS0tIC4uLy4uL3ByaXNtNTQtbmcuYmFja3VwL2tzcmMvaXNsX2lvY3RsLmMJTW9uIERlYyAy
OSAyMjo0ODoxMCAyMDAzCisrKyBpc2xfaW9jdGwuYwlXZWQgRGVjIDMxIDE4OjA1OjE5IDIw
MDMKQEAgLTk1NSw3ICs5NTUsNyBAQAogCiBpbnQKIHByaXNtNTRfZ2V0X3dhcChzdHJ1Y3Qg
bmV0X2RldmljZSAqbmRldiwgc3RydWN0IGl3X3JlcXVlc3RfaW5mbyAqaW5mbywKLQkJc3Ry
dWN0IHNvY2thZGRyICphd3JxLCBjaGFyICpleHRyYSkKKwkJdW5pb24gaXdyZXFfZGF0YSAq
YXdycSwgY2hhciAqZXh0cmEpCiB7CiAJaXNscGNpX3ByaXZhdGUgKnByaXYgPSBuZGV2LT5w
cml2OwogCWlzbHBjaV9xZW50cnlfdCAqZW50cnk7CkBAIC05NjYsOCArOTY2LDggQEAKIAkg
ICAgICAgIGJzc2lkLCAmZW50cnkpOwogCiAJLyogcmV0dXJuIHRoZSBkYXRhICovCi0JbWVt
Y3B5KGF3cnEtPnNhX2RhdGEsIGRhdGEsIDYpOwotCWF3cnEtPnNhX2ZhbWlseSA9IEFSUEhS
RF9FVEhFUjsKKwltZW1jcHkoYXdycS0+YXBfYWRkci5zYV9kYXRhLCBkYX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