mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacld-3.0: Ignore ndo_set_features failure from upper stack
Change I0e44cb1789516e1bcee619be3581d826f45f265b register ndo_set_features API, and upper stack will invoke it during driver loading phase, which is not expected. Return success with debug level log printed if DSC check failure. Change-Id: Iba35a6c3ed6394794c9be7332e0243d975ba37bd CRs-Fixed: 2747343
This commit is contained in:
parent
40a5888d95
commit
e416f4d256
1 changed files with 10 additions and 2 deletions
|
|
@ -5030,8 +5030,16 @@ static int hdd_set_features(struct net_device *net_dev,
|
|||
struct osif_vdev_sync *vdev_sync;
|
||||
|
||||
errno = osif_vdev_sync_op_start(net_dev, &vdev_sync);
|
||||
if (errno)
|
||||
return errno;
|
||||
if (errno) {
|
||||
/*
|
||||
* Only invoke from netdev_feature_update_work expected,
|
||||
* which is from CLD inside.
|
||||
* Ignore others from upper stack during loading phase,
|
||||
* and return success to avoid failure print from kernel.
|
||||
*/
|
||||
hdd_debug("VDEV in transition, ignore set_features");
|
||||
return 0;
|
||||
}
|
||||
|
||||
errno = __hdd_set_features(net_dev, features);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue