瀏覽代碼

qcacmn: Make API that informs about scan status non-static

The API wlan_cfg80211_scan_done() abstracts the kernel
API cfg80211_scan_done().This should be made accessible
throughout the driver by making it non-static.

Change-Id: Ic1a882a115d11339909e62e53f040774d5370981
Debasis Das 4 年之前
父節點
當前提交
10aab5f245
共有 2 個文件被更改,包括 19 次插入6 次删除
  1. 13 0
      os_if/linux/scan/inc/wlan_cfg80211_scan.h
  2. 6 6
      os_if/linux/scan/src/wlan_cfg80211_scan.c

+ 13 - 0
os_if/linux/scan/inc/wlan_cfg80211_scan.h

@@ -429,4 +429,17 @@ void wlan_config_sched_scan_plans_to_wiphy(struct wiphy *wiphy,
 }
 #endif /* FEATURE_WLAN_SCAN_PNO */
 
+/**
+ * wlan_cfg80211_scan_done() - Scan completed callback to cfg80211
+ * @netdev: Net device
+ * @req : Scan request
+ * @aborted : true scan aborted false scan success
+ *
+ * This function notifies scan done to cfg80211
+ *
+ * Return: none
+ */
+void wlan_cfg80211_scan_done(struct net_device *netdev,
+			     struct cfg80211_scan_request *req,
+			     bool aborted);
 #endif

+ 6 - 6
os_if/linux/scan/src/wlan_cfg80211_scan.c

@@ -806,9 +806,9 @@ static QDF_STATUS wlan_scan_request_dequeue(
  *
  * Return: none
  */
-static void wlan_cfg80211_scan_done(struct net_device *netdev,
-				    struct cfg80211_scan_request *req,
-				    bool aborted)
+void wlan_cfg80211_scan_done(struct net_device *netdev,
+			     struct cfg80211_scan_request *req,
+			     bool aborted)
 {
 	struct cfg80211_scan_info info = {
 		.aborted = aborted
@@ -828,9 +828,9 @@ static void wlan_cfg80211_scan_done(struct net_device *netdev,
  *
  * Return: none
  */
-static void wlan_cfg80211_scan_done(struct net_device *netdev,
-				    struct cfg80211_scan_request *req,
-				    bool aborted)
+void wlan_cfg80211_scan_done(struct net_device *netdev,
+			     struct cfg80211_scan_request *req,
+			     bool aborted)
 {
 	if (netdev->flags & IFF_UP)
 		cfg80211_scan_done(req, aborted);