Background
It is well known that if we take a container separated into two volumes $V_1$ and $V_2$ by an insulating membrane and containing some moles $n_1$ and $n_2$ of the same gas at the same temperature $T$ and pressure $P$, then removing the membrane doesn't produce any change in entropy. Intuitively we can explain this by taking into account the fact that the particles are not distinguishable, so putting the membrane back is a reversible process, while classically we would have an increase of entropy (Gibbs paradox).
Question
I am trying to understand what happens if we have the same situation with identical gases but they are in two different states now, namely $n_1 \neq n_2$, $ P_1 \neq P_2$ and $T_1 \neq T_2$. What would be the change in entropy when removing the membrane?
My attempt
My attempt would be to compute the classical change in entropy using the formula
$$ \Delta S_{tot} = \Delta S_A + \Delta S_B = nR\log\Big(\frac{V_f}{V_i}\Big) + nc_v\log\Big(\frac{T_f}{T_i}\Big) $$
for both gases and then subtract the error made by not taking into account that the particles are not distinguishable: for this, I would take the final state and imagine to insert a membrane, then compute the entropy when mixing back the two gases just by using the classical (wrong) reasoning with distinguishable particles and subtract this amount.
Are there any flaws in my reasoning? Would this work? Thanks!