wlan_bearer/wlanldd/wlan_symbian/wlanldd_symbian/src/WlanLogicalChannel.cpp
branchRCL_3
changeset 34 13838cf40350
parent 10 0abc8c98be24
child 42 a828660c511c
--- a/wlan_bearer/wlanldd/wlan_symbian/wlanldd_symbian/src/WlanLogicalChannel.cpp	Tue May 25 14:40:09 2010 +0300
+++ b/wlan_bearer/wlanldd/wlan_symbian/wlanldd_symbian/src/WlanLogicalChannel.cpp	Mon Jun 21 17:43:00 2010 +0300
@@ -16,7 +16,7 @@
 */
 
 /*
-* %version: 59 %
+* %version: 59.1.1 %
 */
 
 #include "WlLddWlanLddConfig.h"
@@ -633,7 +633,6 @@
 #else
     iOsa->MutexAcquire();
 #endif
-    NKern::ThreadLeaveCS();
     
     TraceDump(MUTEX, 
         (("WLANLDD: DWlanLogicalChannel::DoControlFast: mutex acquired")));
@@ -705,14 +704,12 @@
         }
     
     // release mutex
-    // Enter critical section before releasing the mutex as
-    // we are executing in the context of a user mode thread
-    NKern::ThreadEnterCS();    
 #ifndef RD_WLAN_DDK
     Kern::MutexSignal( iMutex );
 #else
     iOsa->MutexRelease();
 #endif 
+    // and exit from critical section
     NKern::ThreadLeaveCS();
     
     TraceDump(MUTEX,