Hi Marcel, >> + unsigned int notify_id, indic_id; > > I have never seen indication shorted into indic. I have to say that I do not like it that much. However I do not have any good suggestion either. > Perhaps "indicn_id"? I could just spell out "indication_id" :P. >> + assert(notify_data->chrc->ccc_handle); > > You are going heavy on the asserts. I am not convinced that is always a good idea. If remote devices can exploit such an assert, we have a problem. Gracefully disconnect might be better in many cases. > There are certain invariants that go with how the reference count is managed and I chose to add asserts in certain places to help catch potential bugs. I used them only for things that should never ever fail: i.e. if any of these assertions fails then there is a bug in the code and we should fix them. I don't mind removing them, but all the asserts that I added here (and in the previous patch that you responded to) try to capture the logical state and assumptions that are made in the code from which there isn't really a good way to recover if these assumptions do not hold. In short, these assertions should always succeed in non-buggy code. Does BlueZ have debug-mode-only assert macros? Maybe such a thing might be useful to make the code self document these assumptions. Otherwise, I can remove them and replace them with comments instead? -Arman -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html