Browse Source

qcacld-3.0: Don't send the wext event during interface down

Currently driver sends the wext event on interface down. Kernel
internally generates the  IFF UP event on receiving this wext
event and send to the userspace.
Userspace application takes the wrong decision based on this
spurious IFF UP event.

To avoid this issue, avoid sending the WEXT event to kernel
on IFF down.

Change-Id: I3ce0de50b3c41fe45d8d1a0d0ea47af73595cdda
CRs-Fixed: 3558158
SACHIN AHUJA 1 year ago
parent
commit
3aef654312
1 changed files with 0 additions and 6 deletions
  1. 0 6
      core/hdd/src/wlan_hdd_main.c

+ 0 - 6
core/hdd/src/wlan_hdd_main.c

@@ -9064,7 +9064,6 @@ static void hdd_stop_station_adapter(struct hdd_adapter *adapter)
 	struct wlan_objmgr_vdev *vdev;
 	enum QDF_OPMODE mode;
 	struct wlan_hdd_link_info *link_info;
-	union iwreq_data wrqu;
 
 	mode = adapter->device_mode;
 	hdd_adapter_for_each_active_link_info(adapter, link_info) {
@@ -9090,11 +9089,6 @@ static void hdd_stop_station_adapter(struct hdd_adapter *adapter)
 		hdd_vdev_destroy(link_info);
 	}
 
-	memset(&wrqu, '\0', sizeof(wrqu));
-	wrqu.ap_addr.sa_family = ARPHRD_ETHER;
-	memset(wrqu.ap_addr.sa_data, '\0', ETH_ALEN);
-	hdd_wext_send_event(adapter->dev, SIOCGIWAP, &wrqu, NULL);
-
 	hdd_disable_nan_active_disc(adapter);
 	hdd_adapter_deregister_fc(adapter);
 	hdd_cancel_ip_notifier_work(adapter);