One other comment - all of that Criteria code is a waste of time in this case.
There is only one provider on this device - the chip. It can only do certain things, so asking for ANYTHING that it cannot do wil cause a failure, since it will pass and say "can't do that".
Just pass null as your criteria, it will give you the "default" provider, which in this case is the only one. |