Search Linux Wireless

Re: [PATCH v3 11/12] wifi: rtlwifi: Add rtl8192du/sw.{c,h}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2024-03-27 at 16:07 +0200, Bitterblue Smith wrote:
> 
> I couldn't think of a sufficiently short name, like
> "lock_mac0_2g_mac1_5g", so I used mutex_is_locked(). That's probably
> a bad idea. It should be like this:
> 
>         /* Let the first starting mac load RF parameters and do LCK */
>         if (rtlhal->macphymode == DUALMAC_DUALPHY &&
>             ((rtlhal->interfaceindex == 0 && rtlhal->bandset == BAND_ON_2_4G) ||
>              (rtlhal->interfaceindex == 1 && rtlhal->bandset == BAND_ON_5G))) {

After tracing the code, I feel here can only check rtlhal->macphymode. 


>                 mutex_lock(&globalmutex_for_mac0_2g_mac1_5g);
>                 lock_mac0_2g_mac1_5g = true;
>         }
> 
>         ....
> 
>         if (lock_mac0_2g_mac1_5g)
>                 mutex_unlock(&globalmutex_for_mac0_2g_mac1_5g);
> 




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux