def METHOD_NAME(params: WIDParams):
    stack = get_stack()
    if stack.gap.io_cap == IOCap.keyboard_only:
        bd_addr = btp.pts_addr_get()
        bd_addr_type = btp.pts_addr_type_get()
        passkey = stack.gap.get_passkey()
        btp.gap_passkey_entry_rsp(bd_addr, bd_addr_type, passkey)
    return btp.var_store_get_passkey(params.description)