Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[kura-dev] Small fixes for Java6 reflection and certain Linux wifi drivers

Hi all,

I had these two patches against Kura 1.0.0 flying around for a while now. They still apply cleanly against the develop branch as of today, so I thought Iā€™d post them before they bitrot again.

Patch 1 was needed to compile kura core on my system. As far as I can tell sslParams.setEndpointIdentificationAlgorithm is from Java 7, so the code uses reflection to see if the method is available. But it still gets called directly instead of using the reference to the method obtained by reflection, which caused a compilation error on my machine.

Patch 2 fixes a problem the network configuration web servlet had with my particular wifi dongle on RasPi, a RT2700 based one if I remember correctly. The signal strength parsing expects a value in dBm, but this driver reported signal strength in the form of ā€œ39/100ā€ or similar. The simple patch detects this and also adds error handling in case it cannot parse it at all.

All the best,
Kevin

Attachment: patch-kura-1-build-fix.diff
Description: Binary data

Attachment: patch-kura-2-wifi-dbm.diff
Description: Binary data


Back to the top