keytable: Mask selected protocols with the supported ones
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 02:02:00 +0000 (23:02 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 02:02:00 +0000 (23:02 -0300)
commit72f0df1fd90b2ece5ce6c57433e36ec2386e262e
tree04287a872042181a6ca7eb5808aa61486dd060dc
parentdb13b6f812ba94c562f1ed61f1457844868c47a8
keytable: Mask selected protocols with the supported ones

It should never try to enable a protocol not supported, as
the Kernel will give an error and reset to none.

That's a problem when -p all option is used. So, mask the
protocols to make this option to work.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
utils/keytable/keytable.c