Merge set_key and hapd_set_key driver_ops into a single function