From 1d6c24e8bb867fb63c46b1be11c08dde5d9c6b9b Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Thu, 31 Mar 2005 18:55:37 +0000 Subject: - added read_mac_address-callback - filling the MAC address into dvb_adapter->proposed_mac Thanks to Andreas Oberritter for pointing out. --- linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c') diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c index 55864a891..643aeb3d2 100644 --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c @@ -87,6 +87,17 @@ int dvb_usb_dvb_init(struct dvb_usb_device *d) } d->dvb_adap.priv = d; + if (d->props.read_mac_address) { + if (d->props.read_mac_address(d,d->dvb_adap.proposed_mac) == 0) + info("MAC address: %02x:%02x:%02x:%02x:%02x:%02x",d->dvb_adap.proposed_mac[0], + d->dvb_adap.proposed_mac[1],d->dvb_adap.proposed_mac[2], + d->dvb_adap.proposed_mac[3],d->dvb_adap.proposed_mac[4], + d->dvb_adap.proposed_mac[5]); + else + err("MAC reading failed."); + } + + d->demux.dmx.capabilities = DMX_TS_FILTERING | DMX_SECTION_FILTERING; d->demux.priv = d; -- cgit v1.2.3