summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
diff options
context:
space:
mode:
authorPatrick Boettcher <devnull@localhost>2005-03-31 18:55:37 +0000
committerPatrick Boettcher <devnull@localhost>2005-03-31 18:55:37 +0000
commit1d6c24e8bb867fb63c46b1be11c08dde5d9c6b9b (patch)
treeb4e1c3f4ddff0cd8ec1ca312c139aebe42ac9544 /linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c
parent4ae33e4f5ab7230b6a4650fc00536f17ee5875a4 (diff)
downloadmediapointer-dvb-s2-1d6c24e8bb867fb63c46b1be11c08dde5d9c6b9b.tar.gz
mediapointer-dvb-s2-1d6c24e8bb867fb63c46b1be11c08dde5d9c6b9b.tar.bz2
- added read_mac_address-callback
- filling the MAC address into dvb_adapter->proposed_mac Thanks to Andreas Oberritter for pointing out.
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/dvb-usb-dvb.c11
1 files changed, 11 insertions, 0 deletions
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;