mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
qcacmn: Add timeout QDF_STATUS to errno mappings
QDF_STATUS_E_TIMEOUT is currently mapped to the default -EPERM in qdf_status_to_os_return(). Add a mappings to -ETIMEDOUT instead. Change-Id: I61af2fb00ee83118ba09b2c3fbc5995b14212d87 CRs-Fixed: 2275459
This commit is contained in:
parent
0757caeff0
commit
98b7303494
1 changed files with 4 additions and 0 deletions
|
|
@ -136,6 +136,8 @@ static inline int __qdf_status_to_os_return(QDF_STATUS status)
|
|||
return -ENETRESET;
|
||||
case QDF_STATUS_E_PENDING:
|
||||
return -EINPROGRESS;
|
||||
case QDF_STATUS_E_TIMEOUT:
|
||||
return -ETIMEDOUT;
|
||||
default:
|
||||
return -EPERM;
|
||||
}
|
||||
|
|
@ -186,6 +188,8 @@ static inline QDF_STATUS __qdf_status_from_os_return(int rc)
|
|||
return QDF_STATUS_E_NETRESET;
|
||||
case -EINPROGRESS:
|
||||
return QDF_STATUS_E_PENDING;
|
||||
case -ETIMEDOUT:
|
||||
return QDF_STATUS_E_TIMEOUT;
|
||||
default:
|
||||
return QDF_STATUS_E_PERM;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue