Loading CORE/HDD/src/wlan_hdd_cfg80211.c +26 −10 Original line number Diff line number Diff line Loading @@ -12491,6 +12491,7 @@ int __wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy, eMib_dot11DesiredBssType connectedBssType; VOS_STATUS status; long ret; bool iff_up = ndev->flags & IFF_UP; ENTER(); Loading Loading @@ -12763,13 +12764,21 @@ int __wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy, return -EINVAL; } } if (iff_up) { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: SAP interface is already up", __func__); status = hdd_init_ap_mode(pAdapter, false); if(status != VOS_STATUS_SUCCESS) { hddLog(VOS_TRACE_LEVEL_FATAL, "%s: Error initializing the ap mode", __func__); "%s: Error initializing the ap mode", __func__); return -EINVAL; } } else { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: SAP interface is down", __func__); } hdd_set_conparam(1); status = hdd_sta_id_hash_attach(pAdapter); Loading Loading @@ -12855,9 +12864,16 @@ int __wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy, #ifdef FEATURE_WLAN_TDLS mutex_unlock(&pHddCtx->tdls_lock); #endif if (iff_up) { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: STA interface is already up", __func__); status = hdd_init_station_mode( pAdapter ); if( VOS_STATUS_SUCCESS != status ) return -EOPNOTSUPP; } else { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: STA interface is down", __func__); } /* In case of JB, for P2P-GO, only change interface will be called, * This is the right place to enable back bmps_imps() */ Loading CORE/HDD/src/wlan_hdd_hostapd.c +18 −13 Original line number Diff line number Diff line Loading @@ -223,13 +223,14 @@ int __hdd_hostapd_open (struct net_device *dev) } } if (!test_bit(SME_SESSION_OPENED, &pAdapter->event_flags)) { status = hdd_init_ap_mode( pAdapter, false); if( VOS_STATUS_SUCCESS != status ) { hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Failed to create session for station mode", hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Failed to create session for station mode", __func__); return -EINVAL; } set_bit(DEVICE_IFACE_OPENED, &pAdapter->event_flags); //Turn ON carrier state Loading @@ -237,6 +238,10 @@ int __hdd_hostapd_open (struct net_device *dev) //Enable all Tx queues hddLog(VOS_TRACE_LEVEL_INFO, FL("Enabling queues")); netif_tx_start_all_queues(dev); } else { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: session already exist for AP mode", __func__); } EXIT(); return 0; Loading CORE/HDD/src/wlan_hdd_main.c +11 −5 Original line number Diff line number Diff line Loading @@ -8264,12 +8264,18 @@ int __hdd_open(struct net_device *dev) } } if (!test_bit(SME_SESSION_OPENED, &pAdapter->event_flags)) { status = hdd_init_station_mode( pAdapter ); if( VOS_STATUS_SUCCESS != status ) { hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Failed to create session for station mode", hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Failed to create session for station mode", __func__); return -EINVAL; } } else { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: session already exist for station mode", __func__); } hdd_sysfs_bt_profile_create(pHddCtx); Loading Loading
CORE/HDD/src/wlan_hdd_cfg80211.c +26 −10 Original line number Diff line number Diff line Loading @@ -12491,6 +12491,7 @@ int __wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy, eMib_dot11DesiredBssType connectedBssType; VOS_STATUS status; long ret; bool iff_up = ndev->flags & IFF_UP; ENTER(); Loading Loading @@ -12763,13 +12764,21 @@ int __wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy, return -EINVAL; } } if (iff_up) { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: SAP interface is already up", __func__); status = hdd_init_ap_mode(pAdapter, false); if(status != VOS_STATUS_SUCCESS) { hddLog(VOS_TRACE_LEVEL_FATAL, "%s: Error initializing the ap mode", __func__); "%s: Error initializing the ap mode", __func__); return -EINVAL; } } else { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: SAP interface is down", __func__); } hdd_set_conparam(1); status = hdd_sta_id_hash_attach(pAdapter); Loading Loading @@ -12855,9 +12864,16 @@ int __wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy, #ifdef FEATURE_WLAN_TDLS mutex_unlock(&pHddCtx->tdls_lock); #endif if (iff_up) { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: STA interface is already up", __func__); status = hdd_init_station_mode( pAdapter ); if( VOS_STATUS_SUCCESS != status ) return -EOPNOTSUPP; } else { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: STA interface is down", __func__); } /* In case of JB, for P2P-GO, only change interface will be called, * This is the right place to enable back bmps_imps() */ Loading
CORE/HDD/src/wlan_hdd_hostapd.c +18 −13 Original line number Diff line number Diff line Loading @@ -223,13 +223,14 @@ int __hdd_hostapd_open (struct net_device *dev) } } if (!test_bit(SME_SESSION_OPENED, &pAdapter->event_flags)) { status = hdd_init_ap_mode( pAdapter, false); if( VOS_STATUS_SUCCESS != status ) { hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Failed to create session for station mode", hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Failed to create session for station mode", __func__); return -EINVAL; } set_bit(DEVICE_IFACE_OPENED, &pAdapter->event_flags); //Turn ON carrier state Loading @@ -237,6 +238,10 @@ int __hdd_hostapd_open (struct net_device *dev) //Enable all Tx queues hddLog(VOS_TRACE_LEVEL_INFO, FL("Enabling queues")); netif_tx_start_all_queues(dev); } else { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: session already exist for AP mode", __func__); } EXIT(); return 0; Loading
CORE/HDD/src/wlan_hdd_main.c +11 −5 Original line number Diff line number Diff line Loading @@ -8264,12 +8264,18 @@ int __hdd_open(struct net_device *dev) } } if (!test_bit(SME_SESSION_OPENED, &pAdapter->event_flags)) { status = hdd_init_station_mode( pAdapter ); if( VOS_STATUS_SUCCESS != status ) { hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Failed to create session for station mode", hddLog(VOS_TRACE_LEVEL_ERROR, "%s: Failed to create session for station mode", __func__); return -EINVAL; } } else { hddLog(VOS_TRACE_LEVEL_DEBUG, "%s: session already exist for station mode", __func__); } hdd_sysfs_bt_profile_create(pHddCtx); Loading