wlan_bearer/wlanldd/wlan_symbian/wlanldd_symbian/src/WlanLogicalChannel.cpp
branchRCL_3
changeset 34 13838cf40350
parent 10 0abc8c98be24
child 42 a828660c511c
equal deleted inserted replaced
21:af3fb27c7511 34:13838cf40350
    14 * Description:   Implementation of the DWlanLogicalChannel class.
    14 * Description:   Implementation of the DWlanLogicalChannel class.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 59 %
    19 * %version: 59.1.1 %
    20 */
    20 */
    21 
    21 
    22 #include "WlLddWlanLddConfig.h"
    22 #include "WlLddWlanLddConfig.h"
    23 #include "wlanlddcommon.h"
    23 #include "wlanlddcommon.h"
    24 #include "WlanLogicalChannel.h"
    24 #include "WlanLogicalChannel.h"
   631 #ifndef RD_WLAN_DDK
   631 #ifndef RD_WLAN_DDK
   632     Kern::MutexWait( iMutex );
   632     Kern::MutexWait( iMutex );
   633 #else
   633 #else
   634     iOsa->MutexAcquire();
   634     iOsa->MutexAcquire();
   635 #endif
   635 #endif
   636     NKern::ThreadLeaveCS();
       
   637     
   636     
   638     TraceDump(MUTEX, 
   637     TraceDump(MUTEX, 
   639         (("WLANLDD: DWlanLogicalChannel::DoControlFast: mutex acquired")));
   638         (("WLANLDD: DWlanLogicalChannel::DoControlFast: mutex acquired")));
   640     
   639     
   641     switch ( aFunction )
   640     switch ( aFunction )
   703 #endif
   702 #endif
   704             break;
   703             break;
   705         }
   704         }
   706     
   705     
   707     // release mutex
   706     // release mutex
   708     // Enter critical section before releasing the mutex as
       
   709     // we are executing in the context of a user mode thread
       
   710     NKern::ThreadEnterCS();    
       
   711 #ifndef RD_WLAN_DDK
   707 #ifndef RD_WLAN_DDK
   712     Kern::MutexSignal( iMutex );
   708     Kern::MutexSignal( iMutex );
   713 #else
   709 #else
   714     iOsa->MutexRelease();
   710     iOsa->MutexRelease();
   715 #endif 
   711 #endif 
       
   712     // and exit from critical section
   716     NKern::ThreadLeaveCS();
   713     NKern::ThreadLeaveCS();
   717     
   714     
   718     TraceDump(MUTEX, 
   715     TraceDump(MUTEX, 
   719         ("WLANLDD: DWlanLogicalChannel::DoControlFast: mutex released"));
   716         ("WLANLDD: DWlanLogicalChannel::DoControlFast: mutex released"));
   720 
   717