From: Alexander Aring <alex.ar...@gmail.com>
Date: Sat, 28 Jun 2014 20:33:39 +0200

> This patch adds new mac802154 hw flags for transmit power, csma and
> listen before transmit (lbt). These flags indicates that the transceiver
> supports these features. In ieee802154_register_device the callbacks are
> setted by hw flags instead of checking of null.
> 
> This patch merges also all at86rf230 operations into one operations structure
> and set the right hw flags for the at86rf230 transceivers.
> 
> Signed-off-by: Alexander Aring <alex.ar...@gmail.com>

I don't like this, now you've created a situation where a driver crash
is easy to introduce, ie. setting the capability flag but not providing
the operations pointer properly.

You have two choices:

1) Keep the pointer test mechanism

2) Add the flags, but validate the pointer at driver registration time
   and fail the register if the pointers for set flags are NULL.

When you fix this up, don't just submit this one patch, resubmit the
entire series.

Thank you.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel

Reply via email to