Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

b43legacy: Replace HTTP links with HTTPS ones

Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.

Deterministic algorithm:
For each file:
If not .svg:
For each line:
If doesn't contain `\bxmlns\b`:
For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
If both the HTTP and HTTPS versions
return 200 OK and serve the same content:
Replace HTTP with HTTPS.

Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200719111124.58167-1-grandmaster@al2klimov.de

authored by

Alexander A. Klimov and committed by
Kalle Valo
140c6026 2d96c1ed

+12 -12
+4 -4
drivers/net/wireless/broadcom/b43legacy/main.c
··· 591 591 } 592 592 593 593 /* DummyTransmission function, as documented on 594 - * http://bcm-specs.sipsolutions.net/DummyTransmission 594 + * https://bcm-specs.sipsolutions.net/DummyTransmission 595 595 */ 596 596 void b43legacy_dummy_transmission(struct b43legacy_wldev *dev) 597 597 { ··· 1870 1870 } 1871 1871 1872 1872 /* Initialize the GPIOs 1873 - * http://bcm-specs.sipsolutions.net/GPIO 1873 + * https://bcm-specs.sipsolutions.net/GPIO 1874 1874 */ 1875 1875 static int b43legacy_gpio_init(struct b43legacy_wldev *dev) 1876 1876 { ··· 1960 1960 } 1961 1961 } 1962 1962 1963 - /* http://bcm-specs.sipsolutions.net/SuspendMAC */ 1963 + /* https://bcm-specs.sipsolutions.net/SuspendMAC */ 1964 1964 void b43legacy_mac_suspend(struct b43legacy_wldev *dev) 1965 1965 { 1966 1966 int i; ··· 2141 2141 } 2142 2142 2143 2143 /* Initialize the chip 2144 - * http://bcm-specs.sipsolutions.net/ChipInit 2144 + * https://bcm-specs.sipsolutions.net/ChipInit 2145 2145 */ 2146 2146 static int b43legacy_chip_init(struct b43legacy_wldev *dev) 2147 2147 {
+4 -4
drivers/net/wireless/broadcom/b43legacy/phy.c
··· 129 129 } 130 130 131 131 /* initialize B PHY power control 132 - * as described in http://bcm-specs.sipsolutions.net/InitPowerControl 132 + * as described in https://bcm-specs.sipsolutions.net/InitPowerControl 133 133 */ 134 134 static void b43legacy_phy_init_pctl(struct b43legacy_wldev *dev) 135 135 { ··· 1461 1461 b43legacy_phy_write(dev, 0x0060, value); 1462 1462 } 1463 1463 1464 - /* http://bcm-specs.sipsolutions.net/LocalOscillator/Measure */ 1464 + /* https://bcm-specs.sipsolutions.net/LocalOscillator/Measure */ 1465 1465 void b43legacy_phy_lo_g_measure(struct b43legacy_wldev *dev) 1466 1466 { 1467 1467 static const u8 pairorder[10] = { 3, 1, 5, 7, 9, 2, 0, 4, 6, 8 }; ··· 1721 1721 } 1722 1722 } 1723 1723 1724 - /* http://bcm-specs.sipsolutions.net/EstimatePowerOut 1724 + /* https://bcm-specs.sipsolutions.net/EstimatePowerOut 1725 1725 * This function converts a TSSI value to dBm in Q5.2 1726 1726 */ 1727 1727 static s8 b43legacy_phy_estimate_power_out(struct b43legacy_wldev *dev, s8 tssi) ··· 1747 1747 return dbm; 1748 1748 } 1749 1749 1750 - /* http://bcm-specs.sipsolutions.net/RecalculateTransmissionPower */ 1750 + /* https://bcm-specs.sipsolutions.net/RecalculateTransmissionPower */ 1751 1751 void b43legacy_phy_xmitpower(struct b43legacy_wldev *dev) 1752 1752 { 1753 1753 struct b43legacy_phy *phy = &dev->phy;
+4 -4
drivers/net/wireless/broadcom/b43legacy/radio.c
··· 313 313 return ret[channel - 1]; 314 314 } 315 315 316 - /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ 316 + /* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ 317 317 void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val) 318 318 { 319 319 b43legacy_phy_write(dev, B43legacy_PHY_NRSSILT_CTRL, offset); 320 320 b43legacy_phy_write(dev, B43legacy_PHY_NRSSILT_DATA, (u16)val); 321 321 } 322 322 323 - /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ 323 + /* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ 324 324 s16 b43legacy_nrssi_hw_read(struct b43legacy_wldev *dev, u16 offset) 325 325 { 326 326 u16 val; ··· 331 331 return (s16)val; 332 332 } 333 333 334 - /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ 334 + /* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ 335 335 void b43legacy_nrssi_hw_update(struct b43legacy_wldev *dev, u16 val) 336 336 { 337 337 u16 i; ··· 345 345 } 346 346 } 347 347 348 - /* http://bcm-specs.sipsolutions.net/NRSSILookupTable */ 348 + /* https://bcm-specs.sipsolutions.net/NRSSILookupTable */ 349 349 void b43legacy_nrssi_mem_update(struct b43legacy_wldev *dev) 350 350 { 351 351 struct b43legacy_phy *phy = &dev->phy;