On 2010-09-16 7:17 AM, Vasanthakumar Thiagarajan wrote: > On Wed, Sep 15, 2010 at 08:53:34PM +0530, Felix Fietkau wrote: >> On 2010-09-15 4:22 PM, Vasanthakumar Thiagarajan wrote: >> > Signed-off-by: Vasanthakumar Thiagarajan <vasanth@xxxxxxxxxxx> >> NACK. The point of the caldata struct is to keep calibration data for >> the operating channel and reset it whenever that changes (but not just >> for off-channel activity). >> Since the PAPRD data uses quite a bit of memory and doesn't take that >> long to generate, we don't really need to make it per-channel. > > Yes, it takes some memory, this looked clean and simple. It is not > unusual case that we would be operating on different channels > (think about roaming,dfs,p2p and etc). Roaming is fine, since the driver is unlikely to switch back and forth often enough for the re-calibration to matter. As far as I know, the plan for p2p is to have a per-vif channel in the long run. Once that is implemented, the calibration data will also be made per-vif. > The existing implementation > does not do paprd calibration when the operating channel is changed. > Having a single caldata might require us depend on SC_OP_SCANNING/ > SC_OP_OFFCHANNEL, but we are already dealing with some bugs in those > flags. I completely agree that it takes memory, would try to fix > existing issues in paprd rather than keeping channel specific data. > thanks for the review. If PAPRD is not started after the return to the operating channel, then other calibrations will be affected as well. In that case, we definitely need to fix the root cause and not paper over the bug by moving the PAPRD state. - Felix -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html