if (status != MGMT_STATUS_SUCCESS) {
error("mgmt fail: %s (0x%02x)", mgmt_errstr(status), status);
- reply = btd_error_failed(request->msg, mgmt_errstr(status));
+ if (status == MGMT_STATUS_UNKNOWN_COMMAND)
+ reply = btd_error_not_supported(request->msg);
+ else
+ reply = btd_error_failed(request->msg, mgmt_errstr(status));
goto done;
}
DBG("");
if (status != MGMT_STATUS_SUCCESS) {
error("mgmt fail: %s (0x%02x)", mgmt_errstr(status), status);
- reply = btd_error_failed(request->msg, mgmt_errstr(status));
+ if (status == MGMT_STATUS_UNKNOWN_COMMAND)
+ reply = btd_error_not_supported(request->msg);
+ else
+ reply = btd_error_failed(request->msg, mgmt_errstr(status));
goto done;
}
if (status != MGMT_STATUS_SUCCESS) {
error("mgmt fail: %s (0x%02x)", mgmt_errstr(status), status);
- reply = btd_error_failed(request->msg, mgmt_errstr(status));
+ if (status == MGMT_STATUS_UNKNOWN_COMMAND)
+ reply = btd_error_not_supported(request->msg);
+ else
+ reply = btd_error_failed(request->msg, mgmt_errstr(status));
goto done;
}